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.001309/0.001309, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001073/0.001073, allocations: 141.2 kB / 24.89 MB, free: 9.211 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 0.9824/0.9824, allocations: 173.3 MB / 201.5 MB, free: 9.191 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.162e-06/1.162e-06, allocations: 0 / 268.5 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.203e-05/1.32e-05, allocations: 2.312 kB / 268.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002333/0.002346, allocations: 2.098 MB / 270.6 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.003956, allocations: 1.009 MB / 271.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.004068, allocations: 3.938 kB / 271.6 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001721/0.00424, allocations: 43.58 kB / 271.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.004365, allocations: 51.53 kB / 271.7 MB, free: 2.914 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004382/0.004804, allocations: 135.7 kB / 271.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.005258, allocations: 403 kB / 272.2 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.005428, allocations: 74.2 kB / 272.3 MB, free: 2.309 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009176/0.006346, allocations: 0.9359 MB / 273.3 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.006587, allocations: 179.5 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.606e-05/0.006653, allocations: 32 kB / 273.5 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.828e-05/0.006711, allocations: 36 kB / 273.5 MB, free: 1.129 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001387/0.00685, allocations: 167.3 kB / 273.7 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.007016, allocations: 143.4 kB / 273.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005904/0.007607, allocations: 0.6657 MB / 274.5 MB, free: 160 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.007608, allocations: 0 / 274.5 MB, free: 160 kB / 250.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.007609, allocations: 0 / 274.5 MB, free: 160 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.007617, allocations: 0 / 274.5 MB, free: 160 kB / 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.001027/0.008644, allocations: 1.01 MB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.008678, allocations: 12.03 kB / 275.5 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.008795, allocations: 64.88 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003546/0.00915, allocations: 346.2 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.228e-05/0.009182, allocations: 24.31 kB / 275.9 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.009224, allocations: 20.38 kB / 275.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.009691, allocations: 341.5 kB / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.009702, allocations: 192 / 276.3 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.297e-05/0.009735, allocations: 12.36 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.009745, allocations: 7.938 kB / 276.3 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002422/0.009987, allocations: 206.5 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008079/0.01079, allocations: 470.1 kB / 276.9 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.01109, allocations: 233.2 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.01126, allocations: 186.7 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.01128, allocations: 0 / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003751/0.01165, allocations: 448.7 kB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.01165, allocations: 96 / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007066/0.01236, allocations: 0.6602 MB / 278.5 MB, free: 11.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.024e-05/0.01244, allocations: 182.2 kB / 278.6 MB, free: 11.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007274/0.01317, allocations: 0.652 MB / 279.3 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.01321, allocations: 37.64 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.046e-05/0.01328, allocations: 134.4 kB / 279.4 MB, free: 10.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.271e-05/0.01334, allocations: 63.5 kB / 279.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001569/0.0135, allocations: 145.3 kB / 279.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.01367, allocations: 342.8 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.01384, allocations: 182.8 kB / 280.2 MB, free: 9.992 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.01402, allocations: 227 kB / 280.4 MB, free: 9.73 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.01438, allocations: 400.5 kB / 280.8 MB, free: 9.273 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.01438, allocations: 7.938 kB / 280.8 MB, free: 9.266 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004577/0.01484, allocations: 455.2 kB / 281.2 MB, free: 8.766 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.517e-05/0.01493, allocations: 146.7 kB / 281.4 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.01493, allocations: 4 kB / 281.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.01495, allocations: 0 / 281.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.521e-05/0.01502, allocations: 15.92 kB / 281.4 MB, free: 8.578 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.739e-06/0.01503, allocations: 4 kB / 281.4 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000155/0.01518, allocations: 19.98 kB / 281.4 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002665/0.01545, allocations: 95.94 kB / 281.5 MB, free: 8.461 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.0004904/0.01594, allocations: 0.4977 MB / 282 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.568e-05/0.01603, allocations: 59.94 kB / 282.1 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001834/0.01621, allocations: 110.4 kB / 282.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.01621, allocations: 0 / 282.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.01621, allocations: 0 / 282.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.01622, allocations: 4 kB / 282.2 MB, free: 7.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004046/0.01662, allocations: 309.3 kB / 282.5 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01662, allocations: 0 / 282.5 MB, free: 7.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.864e-05/0.01667, allocations: 11.98 kB / 282.5 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.01668, allocations: 0 / 282.5 MB, free: 7.418 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.842e-05/0.01671, allocations: 19.98 kB / 282.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.01672, allocations: 0 / 282.5 MB, free: 7.398 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.01672, allocations: 7.938 kB / 282.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005123/0.01723, allocations: 0.5413 MB / 283.1 MB, free: 6.781 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004839/0.01772, allocations: 289.2 kB / 283.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-05/0.0178, allocations: 23.98 kB / 283.4 MB, free: 6.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.01792, allocations: 16 kB / 283.4 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.01803, allocations: 31.89 kB / 283.4 MB, free: 6.422 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.01813, allocations: 103.9 kB / 283.5 MB, free: 6.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004247/0.01856, allocations: 320.3 kB / 283.8 MB, free: 6.012 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01856, allocations: 4 kB / 283.8 MB, free: 6.008 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002981/0.01886, allocations: 95.89 kB / 283.9 MB, free: 5.914 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.000144/0.019, allocations: 112.4 kB / 284 MB, free: 5.797 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005998/0.0196, allocations: 0.6796 MB / 284.7 MB, free: 5.016 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.01961, allocations: 4 kB / 284.7 MB, free: 5.012 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006147/0.02022, allocations: 487.9 kB / 285.2 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005605/0.02078, allocations: 220 kB / 285.4 MB, free: 4.254 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.02258, allocations: 1.378 MB / 286.8 MB, free: 2.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001494/0.02273, allocations: 147.8 kB / 286.9 MB, free: 2.656 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003105/0.02304, allocations: 157.1 kB / 287.1 MB, free: 2.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/0.0236, allocations: 247.1 kB / 287.3 MB, free: 2.258 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02361, allocations: 0 / 287.3 MB, free: 2.258 MB / 266.7 MB Notification: Performance of Templates: time 0.0135/0.0371, allocations: 8.006 MB / 295.3 MB, free: 10.38 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 -s gbode -gbm=radauIIA3 -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.789417924825102]