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.0007763/0.0007763, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001142/0.001918, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007523/0.0007523, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009891/0.001741, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.01/1.01, allocations: 177.2 MB / 189.8 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09064/1.101, allocations: 53.65 MB / 243.4 MB, free: 15.48 MB / 250.7 MB " [Timeout remaining time 179] 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 1.172e-06/1.172e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.959e-05/2.076e-05, allocations: 9.828 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002435/0.002455, allocations: 2.129 MB / 246.8 MB, free: 12.05 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.004052, allocations: 1.076 MB / 247.9 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.288e-05/0.004135, allocations: 7.938 kB / 247.9 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.004245, allocations: 35.64 kB / 248 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.004399, allocations: 59.53 kB / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003133/0.004712, allocations: 135.7 kB / 248.2 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003681/0.00508, allocations: 399 kB / 248.5 MB, free: 10.34 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001561/0.005236, allocations: 74.25 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008532/0.006089, allocations: 0.9832 MB / 249.6 MB, free: 9.285 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.006278, allocations: 175.5 kB / 249.8 MB, free: 9.113 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.106e-05/0.006339, allocations: 32 kB / 249.8 MB, free: 9.082 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.712e-05/0.006396, allocations: 40 kB / 249.8 MB, free: 9.043 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.006503, allocations: 151.4 kB / 250 MB, free: 8.895 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001103/0.006613, allocations: 115.6 kB / 250.1 MB, free: 8.781 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004028/0.007016, allocations: 0.6229 MB / 250.7 MB, free: 8.156 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.008e-05/0.007026, allocations: 0 / 250.7 MB, free: 8.156 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.007026, allocations: 0 / 250.7 MB, free: 8.156 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.007037, allocations: 0 / 250.7 MB, free: 8.156 MB / 250.7 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.0008686/0.007906, allocations: 1.111 MB / 251.8 MB, free: 6.992 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.853e-05/0.007935, allocations: 12.03 kB / 251.8 MB, free: 6.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.364e-05/0.008028, allocations: 64.88 kB / 251.9 MB, free: 6.918 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.008551, allocations: 338.3 kB / 252.2 MB, free: 6.562 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.008577, allocations: 20.38 kB / 252.3 MB, free: 6.543 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/0.008612, allocations: 20.38 kB / 252.3 MB, free: 6.523 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.008981, allocations: 345.2 kB / 252.6 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.008989, allocations: 192 / 252.6 MB, free: 6.152 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.009014, allocations: 12.31 kB / 252.6 MB, free: 6.141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.009022, allocations: 7.938 kB / 252.6 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.009187, allocations: 210.7 kB / 252.8 MB, free: 5.902 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000639/0.009826, allocations: 470.3 kB / 253.3 MB, free: 5.426 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.01007, allocations: 233.3 kB / 253.5 MB, free: 5.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.01021, allocations: 198.4 kB / 253.7 MB, free: 4.945 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.29e-05/0.01022, allocations: 0 / 253.7 MB, free: 4.945 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.01051, allocations: 465.5 kB / 254.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.132e-06/0.01051, allocations: 0 / 254.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004649/0.01097, allocations: 0.6836 MB / 254.9 MB, free: 3.668 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001596/0.01113, allocations: 321 kB / 255.2 MB, free: 3.293 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004682/0.0116, allocations: 0.6442 MB / 255.8 MB, free: 2.637 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.028e-05/0.01163, allocations: 33.7 kB / 255.9 MB, free: 2.598 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.01168, allocations: 134.4 kB / 256 MB, free: 2.465 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.186e-05/0.01174, allocations: 67.55 kB / 256 MB, free: 2.398 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.01184, allocations: 141.3 kB / 256.2 MB, free: 2.254 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.99e-05/0.01191, allocations: 338.7 kB / 256.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002456/0.01216, allocations: 194.8 kB / 256.7 MB, free: 1.699 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.01237, allocations: 223 kB / 256.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.01275, allocations: 428.5 kB / 257.3 MB, free: 0.957 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.01275, allocations: 4 kB / 257.3 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004155/0.01317, allocations: 470.9 kB / 257.8 MB, free: 448 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.656e-05/0.01324, allocations: 142.7 kB / 257.9 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.01325, allocations: 0 / 257.9 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.01326, allocations: 4 kB / 258 MB, free: 276 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.139e-05/0.01332, allocations: 11.98 kB / 258 MB, free: 264 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.01333, allocations: 8.047 kB / 258 MB, free: 256 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/0.01345, allocations: 23.94 kB / 258 MB, free: 232 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.516e-05/0.01352, allocations: 99.88 kB / 258.1 MB, free: 132 kB / 250.7 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.0004022/0.01393, allocations: 497.7 kB / 258.6 MB, free: 15.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.014, allocations: 67.88 kB / 258.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001522/0.01415, allocations: 114.4 kB / 258.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.01415, allocations: 4 kB / 258.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.01415, allocations: 0 / 258.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.01416, allocations: 0 / 258.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002964/0.01445, allocations: 313.4 kB / 259.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01446, allocations: 0 / 259.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.061e-05/0.01449, allocations: 4 kB / 259.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003248/0.01481, allocations: 285.2 kB / 259.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.01481, allocations: 4 kB / 259.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.01484, allocations: 11.92 kB / 259.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01484, allocations: 4 kB / 259.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01484, allocations: 0 / 259.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003808/0.01522, allocations: 0.5608 MB / 259.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.67e-05/0.01528, allocations: 20 kB / 259.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.105e-05/0.01536, allocations: 19.98 kB / 260 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.908e-05/0.01544, allocations: 35.89 kB / 260 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.495e-05/0.0155, allocations: 104 kB / 260.1 MB, free: 13.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002734/0.01578, allocations: 324.3 kB / 260.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01578, allocations: 0 / 260.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002437/0.01602, allocations: 95.89 kB / 260.5 MB, free: 13.56 MB / 266.7 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.0001192/0.01614, allocations: 116.4 kB / 260.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004468/0.01659, allocations: 0.702 MB / 261.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.01659, allocations: 8 kB / 261.3 MB, free: 12.63 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.01685, allocations: 496.1 kB / 261.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005587/0.01741, allocations: 0.7126 MB / 262.5 MB, free: 11.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.0188, allocations: 1.394 MB / 263.9 MB, free: 9.809 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001025/0.0189, allocations: 151.8 kB / 264.1 MB, free: 9.641 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.01911, allocations: 157.1 kB / 264.2 MB, free: 9.488 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000375/0.01948, allocations: 235.2 kB / 264.5 MB, free: 9.258 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01948, allocations: 7.938 kB / 264.5 MB, free: 9.25 MB / 266.7 MB Notification: Performance of Templates: time 0.008266/0.02775, allocations: 8.095 MB / 272.6 MB, free: 1.285 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6905315071344376]