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.0009738/0.0009738, allocations: 82.28 kB / 22.21 MB, free: 2.297 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.001176/0.001176, allocations: 140 kB / 25.59 MB, free: 8.602 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.9701/0.9701, allocations: 173.4 MB / 202.2 MB, free: 8.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.273e-06/1.273e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.069e-05/2.196e-05, allocations: 3.562 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002543/0.002565, allocations: 2.048 MB / 271.2 MB, free: 7.723 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.004458, allocations: 0.9796 MB / 272.2 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.004589, allocations: 5.969 kB / 272.2 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.00476, allocations: 35.64 kB / 272.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001095/0.00487, allocations: 63.5 kB / 272.3 MB, free: 6.637 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004299/0.0053, allocations: 133.1 kB / 272.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003922/0.005692, allocations: 391 kB / 272.8 MB, free: 6.125 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001608/0.005853, allocations: 79.52 kB / 272.9 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007612/0.006614, allocations: 1.03 MB / 274 MB, free: 5.012 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002016/0.006815, allocations: 176.1 kB / 274.1 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.00687, allocations: 36 kB / 274.2 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.309e-05/0.006923, allocations: 32.75 kB / 274.2 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.007048, allocations: 175.3 kB / 274.4 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.007184, allocations: 145.1 kB / 274.5 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005052/0.007689, allocations: 0.654 MB / 275.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.007692, allocations: 0 / 275.2 MB, free: 3.805 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.007693, allocations: 7.875 kB / 275.2 MB, free: 3.797 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.007703, allocations: 1.281 kB / 275.2 MB, free: 3.797 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.001218/0.008921, allocations: 1.213 MB / 276.4 MB, free: 2.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.008955, allocations: 8.031 kB / 276.4 MB, free: 2.512 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.009079, allocations: 108.4 kB / 276.5 MB, free: 2.406 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003302/0.009409, allocations: 381.7 kB / 276.9 MB, free: 2.004 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.243e-05/0.009441, allocations: 12.38 kB / 276.9 MB, free: 1.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.009475, allocations: 25.36 kB / 276.9 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.009913, allocations: 362 kB / 277.3 MB, free: 1.582 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.009923, allocations: 192 / 277.3 MB, free: 1.582 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.009952, allocations: 16.86 kB / 277.3 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.009961, allocations: 7.938 kB / 277.3 MB, free: 1.559 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002214/0.01018, allocations: 230.4 kB / 277.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009886/0.01117, allocations: 0.7218 MB / 278.2 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002878/0.01146, allocations: 261.8 kB / 278.5 MB, free: 272 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.01161, allocations: 194.5 kB / 278.7 MB, free: 48 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.01162, allocations: 7.984 kB / 278.7 MB, free: 40 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003581/0.01198, allocations: 478.4 kB / 279.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.01198, allocations: 0 / 279.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008055/0.01279, allocations: 0.8763 MB / 280 MB, free: 14.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.479e-05/0.01287, allocations: 182.2 kB / 280.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008905/0.01376, allocations: 0.8969 MB / 281.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.406e-05/0.01381, allocations: 33.7 kB / 281.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.01391, allocations: 204.6 kB / 281.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.083e-05/0.01397, allocations: 63.56 kB / 281.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.01413, allocations: 171 kB / 281.6 MB, free: 12.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.01427, allocations: 0.5157 MB / 282.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001571/0.01443, allocations: 194.8 kB / 282.3 MB, free: 12.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.0146, allocations: 253.6 kB / 282.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.01488, allocations: 435.8 kB / 282.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.01488, allocations: 0 / 282.9 MB, free: 11.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005488/0.01543, allocations: 0.6354 MB / 283.6 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.724e-05/0.01551, allocations: 144.7 kB / 283.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.066e-06/0.01552, allocations: 4 kB / 283.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.01553, allocations: 0 / 283.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.006e-05/0.01559, allocations: 15.98 kB / 283.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.01559, allocations: 4 kB / 283.7 MB, free: 10.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.01573, allocations: 23.94 kB / 283.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-05/0.01581, allocations: 107.9 kB / 283.9 MB, free: 10.4 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.0004084/0.01622, allocations: 0.5329 MB / 284.4 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.01631, allocations: 95.47 kB / 284.5 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.01645, allocations: 102.5 kB / 284.6 MB, free: 9.641 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.01645, allocations: 7.984 kB / 284.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.01645, allocations: 0 / 284.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.01646, allocations: 0 / 284.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004416/0.0169, allocations: 444.5 kB / 285 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.0169, allocations: 4.125 kB / 285 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.122e-05/0.01693, allocations: 11.94 kB / 285.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.01693, allocations: 4 kB / 285.1 MB, free: 9.152 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.01697, allocations: 27.98 kB / 285.1 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.01697, allocations: 11.91 kB / 285.1 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01697, allocations: 0 / 285.1 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006222/0.01759, allocations: 0.7696 MB / 285.9 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004996/0.01809, allocations: 456.9 kB / 286.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.61e-05/0.01816, allocations: 24 kB / 286.3 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.01826, allocations: 27.86 kB / 286.4 MB, free: 7.766 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-05/0.01835, allocations: 31.91 kB / 286.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.59e-05/0.01843, allocations: 115.9 kB / 286.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004234/0.01885, allocations: 0.5024 MB / 287 MB, free: 7.125 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.01885, allocations: 0 / 287 MB, free: 7.125 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002524/0.0191, allocations: 95.89 kB / 287.1 MB, free: 7.031 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.0001258/0.01923, allocations: 127.2 kB / 287.2 MB, free: 6.898 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004897/0.01972, allocations: 0.7096 MB / 287.9 MB, free: 6.086 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.01972, allocations: 0 / 287.9 MB, free: 6.086 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.01998, allocations: 0.4884 MB / 288.4 MB, free: 5.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004868/0.02047, allocations: 225.8 kB / 288.6 MB, free: 5.309 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.02179, allocations: 1.384 MB / 290 MB, free: 3.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.02191, allocations: 151.8 kB / 290.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002301/0.02214, allocations: 157.2 kB / 290.3 MB, free: 3.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003997/0.02254, allocations: 281.9 kB / 290.6 MB, free: 3.266 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.02254, allocations: 0 / 290.6 MB, free: 3.266 MB / 266.7 MB Notification: Performance of Templates: time 0.00903/0.03157, allocations: 8.255 MB / 298.9 MB, free: 11.14 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.778665291145444]