Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001607/0.001607, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001749/0.001749, allocations: 214.1 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 55.92 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.24, allocations: 53.37 MB / 432.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003411/0.2434, allocations: 2.006 MB / 434.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.2458, allocations: 1.002 MB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001231/0.2459, allocations: 3.938 kB / 435.3 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002006/0.2461, allocations: 39.64 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001326/0.2463, allocations: 55.52 kB / 435.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000439/0.2467, allocations: 135.8 kB / 435.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005028/0.2472, allocations: 399.1 kB / 436 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.2474, allocations: 70.48 kB / 436 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.2484, allocations: 0.9708 MB / 437 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000272/0.2487, allocations: 187.3 kB / 437.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.925e-05/0.2488, allocations: 32 kB / 437.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.157e-05/0.2489, allocations: 39.94 kB / 437.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.2491, allocations: 163.4 kB / 437.4 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002251/0.2493, allocations: 202.4 kB / 437.6 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009983/0.2503, allocations: 0.9881 MB / 438.6 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.2503, allocations: 0 / 438.6 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2503, allocations: 4 kB / 438.6 MB, free: 428 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.2503, allocations: 0 / 438.6 MB, free: 428 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001407/0.2517, allocations: 1.074 MB / 439.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.2518, allocations: 12.03 kB / 439.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001417/0.2519, allocations: 84.42 kB / 439.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005213/0.2524, allocations: 370.9 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.2525, allocations: 20.38 kB / 440.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.962e-05/0.2525, allocations: 20.38 kB / 440.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007195/0.2532, allocations: 432.3 kB / 440.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.2533, allocations: 0 / 440.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.2533, allocations: 16 kB / 440.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2533, allocations: 0 / 440.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005618/0.2539, allocations: 346.6 kB / 440.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.2553, allocations: 0.7379 MB / 441.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005409/0.2558, allocations: 309.2 kB / 442 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.2562, allocations: 243.6 kB / 442.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2562, allocations: 4 kB / 442.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007252/0.2569, allocations: 0.5165 MB / 442.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.2569, allocations: 3.938 kB / 442.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001589/0.2585, allocations: 0.9949 MB / 443.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.2586, allocations: 178.2 kB / 443.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001475/0.2601, allocations: 1 MB / 444.9 MB, free: 9.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.624e-05/0.2602, allocations: 37.7 kB / 445 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.2604, allocations: 153.9 kB / 445.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.829e-05/0.2604, allocations: 63.52 kB / 445.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.2607, allocations: 169.3 kB / 445.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.2608, allocations: 334.8 kB / 445.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004186/0.2613, allocations: 258.7 kB / 445.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000412/0.2617, allocations: 299.8 kB / 446.2 MB, free: 8.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006509/0.2623, allocations: 489.7 kB / 446.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2623, allocations: 0 / 446.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00114/0.2635, allocations: 0.7292 MB / 447.4 MB, free: 6.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.2636, allocations: 134.8 kB / 447.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2636, allocations: 0 / 447.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.2636, allocations: 4 kB / 447.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.901e-05/0.2637, allocations: 19.94 kB / 447.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.2637, allocations: 8.047 kB / 447.6 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002303/0.2639, allocations: 19.89 kB / 447.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.2641, allocations: 111.9 kB / 447.7 MB, free: 6.652 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006734/0.2648, allocations: 0.5379 MB / 448.2 MB, free: 6.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.2649, allocations: 79.53 kB / 448.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002163/0.2651, allocations: 126.5 kB / 448.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2651, allocations: 4 kB / 448.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2651, allocations: 144 / 448.4 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.2651, allocations: 19.78 kB / 448.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007023/0.2658, allocations: 0.4968 MB / 449 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.2658, allocations: 0 / 449 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-05/0.2659, allocations: 11.98 kB / 449 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.2659, allocations: 0 / 449 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.779e-05/0.2659, allocations: 27.98 kB / 449 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.225e-06/0.2659, allocations: 0 / 449 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2659, allocations: 0 / 449 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/0.2672, allocations: 0.8452 MB / 449.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009423/0.2681, allocations: 0.5046 MB / 450.4 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.2682, allocations: 20 kB / 450.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.2684, allocations: 19.98 kB / 450.4 MB, free: 3.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.2686, allocations: 47.95 kB / 450.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001403/0.2687, allocations: 115.9 kB / 450.6 MB, free: 3.664 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.2699, allocations: 0.7251 MB / 451.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2699, allocations: 0 / 451.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003943/0.2703, allocations: 84 kB / 451.4 MB, free: 2.863 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001772/0.2704, allocations: 134.7 kB / 451.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.2716, allocations: 0.8115 MB / 452.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2716, allocations: 0 / 452.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005973/0.2722, allocations: 0.5237 MB / 452.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009131/0.2731, allocations: 207.7 kB / 453 MB, free: 1.023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.2756, allocations: 1.543 MB / 454.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.2762, allocations: 369.3 kB / 454.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002573/0.2764, allocations: 95.23 kB / 455 MB, free: 14.95 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.2764, allocations: 0 / 455 MB, free: 14.95 MB / 366.1 MB Notification: Performance of Templates: time 0.009045/0.2855, allocations: 5.467 MB / 460.5 MB, free: 9.453 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.03356156591326]