Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0007416/0.0007416, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001018/0.00176, allocations: 445.7 kB / 10.37 MB, free: 328 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.0009706/0.0009706, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009851/0.001956, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9703/0.9703, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1489/1.119, allocations: 49.48 MB / 220.5 MB, free: 1.453 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.455e-05/1.585e-05, allocations: 2.312 kB / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003291/0.003307, allocations: 2.108 MB / 223.9 MB, free: 14.05 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.005843, allocations: 1.08 MB / 225 MB, free: 12.96 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.362e-05/0.005937, allocations: 4 kB / 225 MB, free: 12.95 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.00605, allocations: 47.59 kB / 225.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.892e-05/0.006139, allocations: 59.5 kB / 225.1 MB, free: 12.85 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.006416, allocations: 127.7 kB / 225.3 MB, free: 12.72 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003592/0.006775, allocations: 407 kB / 225.7 MB, free: 12.32 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.006913, allocations: 70.23 kB / 225.7 MB, free: 12.26 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007202/0.007633, allocations: 0.9831 MB / 226.7 MB, free: 11.27 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.00781, allocations: 175.5 kB / 226.9 MB, free: 11.1 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.385e-05/0.007864, allocations: 36 kB / 226.9 MB, free: 11.07 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.499e-05/0.007909, allocations: 36 kB / 226.9 MB, free: 11.03 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.008019, allocations: 151.4 kB / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.008137, allocations: 115.5 kB / 227.2 MB, free: 10.77 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004422/0.008579, allocations: 0.6151 MB / 227.8 MB, free: 10.15 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-05/0.008597, allocations: 0 / 227.8 MB, free: 10.15 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.008597, allocations: 0 / 227.8 MB, free: 10.15 MB / 234.7 MB Notification: Performance of Transformations before backend: time 2.18e-05/0.008619, allocations: 3.984 kB / 227.8 MB, free: 10.15 MB / 234.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.001006/0.009625, allocations: 1.111 MB / 228.9 MB, free: 8.984 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.009659, allocations: 8.031 kB / 228.9 MB, free: 8.977 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.00977, allocations: 68.86 kB / 229 MB, free: 8.91 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/0.01005, allocations: 350.2 kB / 229.4 MB, free: 8.543 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.01008, allocations: 16.38 kB / 229.4 MB, free: 8.527 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.01011, allocations: 24.36 kB / 229.4 MB, free: 8.504 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.01053, allocations: 349.2 kB / 229.7 MB, free: 8.129 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.01054, allocations: 192 / 229.7 MB, free: 8.129 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.856e-05/0.01056, allocations: 8.375 kB / 229.7 MB, free: 8.121 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.01057, allocations: 7.938 kB / 229.8 MB, free: 8.113 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.01074, allocations: 206.7 kB / 230 MB, free: 7.887 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006286/0.01137, allocations: 478.3 kB / 230.4 MB, free: 7.402 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002439/0.01162, allocations: 233.2 kB / 230.6 MB, free: 7.141 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.01174, allocations: 195.6 kB / 230.8 MB, free: 6.922 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.01176, allocations: 4 kB / 230.8 MB, free: 6.918 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002946/0.01205, allocations: 460.6 kB / 231.3 MB, free: 6.406 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.242e-06/0.01205, allocations: 0 / 231.3 MB, free: 6.406 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005112/0.01256, allocations: 0.6814 MB / 232 MB, free: 5.645 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.01261, allocations: 122.8 kB / 232.1 MB, free: 5.5 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005628/0.01318, allocations: 0.6481 MB / 232.7 MB, free: 4.836 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.01321, allocations: 37.7 kB / 232.8 MB, free: 4.793 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.529e-05/0.01329, allocations: 134.4 kB / 232.9 MB, free: 4.66 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.171e-05/0.01335, allocations: 63.5 kB / 233 MB, free: 4.598 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.01348, allocations: 137.3 kB / 233.1 MB, free: 4.457 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.0136, allocations: 346.7 kB / 233.4 MB, free: 4.109 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.01375, allocations: 190.8 kB / 233.6 MB, free: 3.898 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000155/0.0139, allocations: 227 kB / 233.9 MB, free: 3.637 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.0142, allocations: 428.5 kB / 234.3 MB, free: 3.152 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.0142, allocations: 0 / 234.3 MB, free: 3.152 MB / 234.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003391/0.01454, allocations: 471 kB / 234.7 MB, free: 2.637 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.019e-05/0.01462, allocations: 142.7 kB / 234.9 MB, free: 2.473 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.01463, allocations: 0 / 234.9 MB, free: 2.473 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.01464, allocations: 4 kB / 234.9 MB, free: 2.469 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.876e-05/0.01471, allocations: 23.98 kB / 234.9 MB, free: 2.445 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.307e-06/0.01471, allocations: 0 / 234.9 MB, free: 2.445 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.01482, allocations: 19.94 kB / 234.9 MB, free: 2.426 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-05/0.01489, allocations: 103.8 kB / 235 MB, free: 2.324 MB / 234.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.0003919/0.01529, allocations: 497.8 kB / 235.5 MB, free: 1.801 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.213e-05/0.01535, allocations: 59.94 kB / 235.6 MB, free: 1.742 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001508/0.0155, allocations: 118.4 kB / 235.7 MB, free: 1.625 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.0155, allocations: 0 / 235.7 MB, free: 1.625 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.01551, allocations: 0 / 235.7 MB, free: 1.625 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.01551, allocations: 4 kB / 235.7 MB, free: 1.621 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.01582, allocations: 309.3 kB / 236 MB, free: 1.301 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.01583, allocations: 3.984 kB / 236 MB, free: 1.297 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.974e-05/0.01587, allocations: 8 kB / 236 MB, free: 1.289 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003553/0.01622, allocations: 289.2 kB / 236.3 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.01622, allocations: 0 / 236.3 MB, free: 0.9922 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.01625, allocations: 19.92 kB / 236.3 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.01625, allocations: 0 / 236.3 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.01625, allocations: 4 kB / 236.3 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000628/0.01688, allocations: 0.5574 MB / 236.9 MB, free: 352 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.01699, allocations: 24 kB / 236.9 MB, free: 328 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.01715, allocations: 15.98 kB / 236.9 MB, free: 312 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.01729, allocations: 31.89 kB / 236.9 MB, free: 280 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.01743, allocations: 103.9 kB / 237 MB, free: 176 kB / 234.7 MB Notification: Performance of sorting global known variables: time 0.000582/0.01801, allocations: 316.3 kB / 237.3 MB, free: 15.86 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.01801, allocations: 0 / 237.3 MB, free: 15.86 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003469/0.01836, allocations: 95.89 kB / 237.4 MB, free: 15.77 MB / 250.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.0001593/0.01852, allocations: 120.3 kB / 237.6 MB, free: 15.64 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000654/0.01917, allocations: 0.6954 MB / 238.2 MB, free: 14.85 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/0.01919, allocations: 11.98 kB / 238.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003883/0.01958, allocations: 488.1 kB / 238.7 MB, free: 14.28 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006412/0.02022, allocations: 246.9 kB / 239 MB, free: 14.05 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002094/0.02231, allocations: 1.389 MB / 240.4 MB, free: 12.6 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.02246, allocations: 143.8 kB / 240.5 MB, free: 12.44 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003278/0.02279, allocations: 165.2 kB / 240.7 MB, free: 12.27 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005692/0.02336, allocations: 247.1 kB / 240.9 MB, free: 12.03 MB / 250.7 MB Notification: Performance of SimCode: time 8.21e-07/0.02336, allocations: 0 / 240.9 MB, free: 12.03 MB / 250.7 MB Notification: Performance of Templates: time 0.01312/0.03648, allocations: 8.099 MB / 249 MB, free: 3.953 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.661421937867999]