Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009968/0.0009968, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009449/0.0009449, allocations: 143.7 kB / 24.98 MB, free: 8.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.089/1.089, allocations: 173.4 MB / 201.5 MB, free: 9.312 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.331e-05/2.514e-05, allocations: 2.312 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002893/0.002918, allocations: 2.068 MB / 270.1 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.005009, allocations: 0.99 MB / 271.1 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.005154, allocations: 11.94 kB / 271.1 MB, free: 3.629 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.005342, allocations: 43.58 kB / 271.2 MB, free: 3.586 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.516e-05/0.005427, allocations: 59.5 kB / 271.2 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.005796, allocations: 131.8 kB / 271.4 MB, free: 3.398 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00035/0.006146, allocations: 399 kB / 271.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.006312, allocations: 71.56 kB / 271.8 MB, free: 2.934 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007162/0.007028, allocations: 1.026 MB / 272.8 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.0072, allocations: 175.5 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.619e-05/0.007256, allocations: 36 kB / 273.1 MB, free: 1.699 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.81e-05/0.007304, allocations: 36 kB / 273.1 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.007431, allocations: 171.3 kB / 273.3 MB, free: 1.496 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.007575, allocations: 143.4 kB / 273.4 MB, free: 1.355 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005292/0.008104, allocations: 0.654 MB / 274 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.008107, allocations: 0 / 274 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.008107, allocations: 4 kB / 274.1 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.008115, allocations: 0 / 274.1 MB, free: 0.6953 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.001097/0.009212, allocations: 1.217 MB / 275.3 MB, free: 15.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.009252, allocations: 11.97 kB / 275.3 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.009379, allocations: 112.3 kB / 275.4 MB, free: 15.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.009701, allocations: 369 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.009735, allocations: 12.38 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.009768, allocations: 20.38 kB / 275.8 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.01023, allocations: 393.2 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.01024, allocations: 192 / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.01027, allocations: 8.375 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.01028, allocations: 7.938 kB / 276.2 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002441/0.01052, allocations: 246.7 kB / 276.4 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.01154, allocations: 0.897 MB / 277.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003524/0.01189, allocations: 281.7 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.01208, allocations: 217.7 kB / 277.8 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.0121, allocations: 4 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004042/0.0125, allocations: 0.4944 MB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.784e-06/0.0125, allocations: 0 / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.000907/0.01341, allocations: 0.9217 MB / 279.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.01348, allocations: 174.2 kB / 279.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.0146, allocations: 1.166 MB / 280.6 MB, free: 9.738 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.01463, allocations: 33.7 kB / 280.6 MB, free: 9.699 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.01474, allocations: 204.6 kB / 280.8 MB, free: 9.492 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.022e-05/0.0148, allocations: 63.58 kB / 280.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.01496, allocations: 167 kB / 281 MB, free: 9.258 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.01513, allocations: 0.5118 MB / 281.5 MB, free: 8.734 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.01533, allocations: 214.7 kB / 281.7 MB, free: 8.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.01553, allocations: 269.2 kB / 282 MB, free: 8.191 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000338/0.01587, allocations: 447.8 kB / 282.4 MB, free: 7.684 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.01587, allocations: 0 / 282.4 MB, free: 7.684 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006101/0.01648, allocations: 0.6667 MB / 283.1 MB, free: 6.961 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.064e-05/0.01655, allocations: 142.7 kB / 283.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.01655, allocations: 0 / 283.3 MB, free: 6.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.01657, allocations: 4 kB / 283.3 MB, free: 6.793 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-05/0.01664, allocations: 12.06 kB / 283.3 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.01665, allocations: 7.984 kB / 283.3 MB, free: 6.773 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001262/0.01677, allocations: 15.95 kB / 283.3 MB, free: 6.758 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.415e-05/0.01686, allocations: 116 kB / 283.4 MB, free: 6.645 MB / 266.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.0003925/0.01725, allocations: 0.5211 MB / 283.9 MB, free: 6.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.703e-05/0.01734, allocations: 111.5 kB / 284 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001283/0.01747, allocations: 110.5 kB / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.01747, allocations: 0 / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.01747, allocations: 0 / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.01748, allocations: 0 / 284.1 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005902/0.01807, allocations: 0.5975 MB / 284.7 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.01807, allocations: 0 / 284.7 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.85e-05/0.0181, allocations: 11.94 kB / 284.8 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.0181, allocations: 11.92 kB / 284.8 MB, free: 5.215 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.01814, allocations: 23.98 kB / 284.8 MB, free: 5.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.01814, allocations: 4 kB / 284.8 MB, free: 5.188 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.01814, allocations: 7.938 kB / 284.8 MB, free: 5.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007005/0.01884, allocations: 0.7942 MB / 285.6 MB, free: 4.312 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004667/0.01931, allocations: 464.9 kB / 286 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.222e-05/0.01938, allocations: 27.94 kB / 286.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.09e-05/0.01947, allocations: 15.98 kB / 286.1 MB, free: 3.805 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.01959, allocations: 43.94 kB / 286.1 MB, free: 3.762 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.653e-05/0.01966, allocations: 115.9 kB / 286.2 MB, free: 3.648 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007113/0.02038, allocations: 0.7678 MB / 287 MB, free: 2.887 MB / 266.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.02038, allocations: 0 / 287 MB, free: 2.887 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002368/0.02061, allocations: 95.89 kB / 287.1 MB, free: 2.793 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.0001203/0.02073, allocations: 131.2 kB / 287.2 MB, free: 2.652 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005784/0.02131, allocations: 0.7448 MB / 288 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.02131, allocations: 4.125 kB / 288 MB, free: 1.801 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003174/0.02163, allocations: 0.5078 MB / 288.5 MB, free: 1.215 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005122/0.02214, allocations: 230 kB / 288.7 MB, free: 1.004 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.02357, allocations: 1.4 MB / 290.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.0237, allocations: 151.8 kB / 290.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002353/0.02394, allocations: 161.1 kB / 290.4 MB, free: 15.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.02406, allocations: 76.34 kB / 290.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of SimCode: time 8.92e-07/0.02406, allocations: 0 / 290.5 MB, free: 15.14 MB / 282.7 MB Notification: Performance of Templates: time 0.009333/0.0334, allocations: 8.291 MB / 298.8 MB, free: 6.961 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.9757129091303796]