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.001013/0.001013, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 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.000946/0.000946, allocations: 170.5 kB / 24.91 MB, free: 9.211 MB / 18.57 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/1, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.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.273e-06/1.273e-06, allocations: 0 / 273.5 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225e-05/1.353e-05, allocations: 2.312 kB / 273.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002229/0.002243, allocations: 2.101 MB / 275.6 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.004192, allocations: 1.044 MB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.004302, allocations: 7.938 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001731/0.004475, allocations: 39.59 kB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.004575, allocations: 51.52 kB / 276.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.004995, allocations: 135.7 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004029/0.005398, allocations: 403 kB / 277.3 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001556/0.005553, allocations: 70.27 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006992/0.006253, allocations: 0.9398 MB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.006445, allocations: 175.5 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.923e-05/0.006494, allocations: 32 kB / 278.5 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.659e-05/0.006541, allocations: 36 kB / 278.5 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.006649, allocations: 171.3 kB / 278.7 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001189/0.006768, allocations: 143.4 kB / 278.8 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004924/0.00726, allocations: 0.6617 MB / 279.5 MB, free: 11.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.007265, allocations: 0 / 279.5 MB, free: 11.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.007266, allocations: 0 / 279.5 MB, free: 11.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.007275, allocations: 0 / 279.5 MB, free: 11.22 MB / 266.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.0008728/0.008148, allocations: 1.014 MB / 280.5 MB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.00818, allocations: 12.03 kB / 280.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.465e-05/0.008275, allocations: 68.88 kB / 280.6 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002763/0.008551, allocations: 346.3 kB / 280.9 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.956e-05/0.00858, allocations: 20.36 kB / 280.9 MB, free: 9.688 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.00861, allocations: 20.38 kB / 281 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003592/0.00897, allocations: 341.2 kB / 281.3 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.008979, allocations: 4.172 kB / 281.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.009002, allocations: 8.375 kB / 281.3 MB, free: 9.289 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.00901, allocations: 7.938 kB / 281.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.009184, allocations: 206.7 kB / 281.5 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.009809, allocations: 474.3 kB / 282 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.01004, allocations: 229.3 kB / 282.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.01017, allocations: 183.6 kB / 282.4 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.01018, allocations: 0 / 282.4 MB, free: 8.109 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002849/0.01046, allocations: 451.2 kB / 282.8 MB, free: 7.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.01046, allocations: 4 kB / 282.8 MB, free: 7.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005345/0.011, allocations: 0.6578 MB / 283.5 MB, free: 6.867 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.01107, allocations: 174.2 kB / 283.6 MB, free: 6.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005392/0.01161, allocations: 0.6559 MB / 284.3 MB, free: 5.992 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.01164, allocations: 41.69 kB / 284.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.866e-05/0.0117, allocations: 130.4 kB / 284.5 MB, free: 5.812 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.01175, allocations: 59.56 kB / 284.5 MB, free: 5.754 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.01187, allocations: 141.3 kB / 284.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.011e-05/0.01196, allocations: 334.8 kB / 285 MB, free: 5.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.01209, allocations: 186.8 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001329/0.01222, allocations: 227 kB / 285.4 MB, free: 4.805 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002546/0.01247, allocations: 412.4 kB / 285.8 MB, free: 4.336 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.01248, allocations: 0 / 285.8 MB, free: 4.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003412/0.01282, allocations: 455 kB / 286.2 MB, free: 3.836 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.578e-05/0.01289, allocations: 142.7 kB / 286.4 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.0129, allocations: 8.062 kB / 286.4 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.138e-05/0.01291, allocations: 0 / 286.4 MB, free: 3.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.728e-05/0.01298, allocations: 8 kB / 286.4 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.01298, allocations: 7.984 kB / 286.4 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.0131, allocations: 23.89 kB / 286.4 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.496e-05/0.01318, allocations: 99.92 kB / 286.5 MB, free: 3.527 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.0003825/0.01356, allocations: 497.7 kB / 287 MB, free: 3.004 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.428e-05/0.01362, allocations: 67.92 kB / 287.1 MB, free: 2.938 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.01378, allocations: 110.4 kB / 287.2 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.01378, allocations: 0 / 287.2 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.01378, allocations: 0 / 287.2 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.01378, allocations: 3.938 kB / 287.2 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.0141, allocations: 313.4 kB / 287.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.0141, allocations: 0 / 287.5 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.471e-05/0.01413, allocations: 12.11 kB / 287.5 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.01413, allocations: 0 / 287.5 MB, free: 2.488 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.729e-05/0.01416, allocations: 23.98 kB / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.01416, allocations: 0 / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.01417, allocations: 3.938 kB / 287.5 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003903/0.01456, allocations: 0.5412 MB / 288.1 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003547/0.01491, allocations: 297 kB / 288.4 MB, free: 1.551 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.375e-05/0.01497, allocations: 24 kB / 288.4 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.769e-05/0.01506, allocations: 15.98 kB / 288.4 MB, free: 1.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.421e-05/0.01515, allocations: 31.89 kB / 288.4 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.528e-05/0.01522, allocations: 107.9 kB / 288.5 MB, free: 1.375 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002913/0.01551, allocations: 316.3 kB / 288.9 MB, free: 1.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01551, allocations: 4 kB / 288.9 MB, free: 1.066 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.01573, allocations: 91.95 kB / 288.9 MB, free: 0.9766 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.0001322/0.01586, allocations: 112.4 kB / 289.1 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004497/0.01631, allocations: 0.6796 MB / 289.7 MB, free: 80 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.01632, allocations: 8 kB / 289.7 MB, free: 72 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.0166, allocations: 476 kB / 290.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.01705, allocations: 212.1 kB / 290.4 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.01842, allocations: 1.382 MB / 291.8 MB, free: 13.89 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.01853, allocations: 147.8 kB / 291.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002371/0.01876, allocations: 161.2 kB / 292.1 MB, free: 13.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000395/0.01916, allocations: 247.2 kB / 292.3 MB, free: 13.33 MB / 282.7 MB Notification: Performance of SimCode: time 1.203e-06/0.01916, allocations: 0 / 292.3 MB, free: 13.33 MB / 282.7 MB Notification: Performance of Templates: time 0.008947/0.02811, allocations: 8.033 MB / 300.4 MB, free: 5.43 MB / 282.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.719690903555602]