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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 172 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.468/1.468, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009708/0.0009707, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.93e-05/2.931e-05, allocations: 4 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.0939, allocations: 47.57 MB / 370 MB, free: 1.707 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3074/0.4014, allocations: 83.24 MB / 453.3 MB, free: 10.01 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001652/0.4016, allocations: 71.39 kB / 453.3 MB, free: 9.977 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06507/0.4667, allocations: 34.62 MB / 487.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4667, allocations: 0 / 487.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.4668, allocations: 16 kB / 488 MB, free: 8.965 MB / 362.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.001016/0.4678, allocations: 0.8662 MB / 488.8 MB, free: 8.027 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.4678, allocations: 11.97 kB / 488.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.468, allocations: 79.06 kB / 488.9 MB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005662/0.4686, allocations: 411.6 kB / 489.3 MB, free: 7.492 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.4686, allocations: 16 kB / 489.3 MB, free: 7.477 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.541e-05/0.4687, allocations: 20 kB / 489.3 MB, free: 7.457 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005198/0.4692, allocations: 293.2 kB / 489.6 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4692, allocations: 0 / 489.6 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.4693, allocations: 12 kB / 489.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.4693, allocations: 0 / 489.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003701/0.4697, allocations: 211.9 kB / 489.8 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.4711, allocations: 0.8748 MB / 490.7 MB, free: 6.016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003714/0.4715, allocations: 218.5 kB / 490.9 MB, free: 5.793 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.4717, allocations: 157.1 kB / 491.1 MB, free: 5.637 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.4717, allocations: 0 / 491.1 MB, free: 5.637 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004599/0.4722, allocations: 378 kB / 491.5 MB, free: 5.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.4722, allocations: 3.938 kB / 491.5 MB, free: 5.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0009354/0.4732, allocations: 0.5892 MB / 492.1 MB, free: 4.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.425e-05/0.4733, allocations: 170.2 kB / 492.2 MB, free: 4.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.4743, allocations: 0.8824 MB / 493.1 MB, free: 3.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.513e-05/0.4744, allocations: 37.7 kB / 493.1 MB, free: 3.469 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.342e-05/0.4745, allocations: 149.8 kB / 493.3 MB, free: 3.316 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.894e-05/0.4746, allocations: 55.34 kB / 493.3 MB, free: 3.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.4746, allocations: 8 kB / 493.3 MB, free: 3.254 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4747, allocations: 342.8 kB / 493.7 MB, free: 2.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.4749, allocations: 116.5 kB / 493.8 MB, free: 2.797 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002289/0.4752, allocations: 158.5 kB / 493.9 MB, free: 2.633 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.4754, allocations: 230.8 kB / 494.2 MB, free: 2.383 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4754, allocations: 0 / 494.2 MB, free: 2.383 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008055/0.4763, allocations: 0.5624 MB / 494.7 MB, free: 1.789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.4764, allocations: 130.8 kB / 494.9 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.4764, allocations: 0 / 494.9 MB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.4764, allocations: 4 kB / 494.9 MB, free: 1.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.4765, allocations: 23.92 kB / 494.9 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.4765, allocations: 0 / 494.9 MB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.4768, allocations: 27.98 kB / 494.9 MB, free: 1.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.477, allocations: 120 kB / 495 MB, free: 1.465 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,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) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002391/0.4772, allocations: 273.9 kB / 495.3 MB, free: 1.164 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.621e-05/0.4773, allocations: 83.05 kB / 495.4 MB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002126/0.4775, allocations: 134.2 kB / 495.5 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4776, allocations: 4 kB / 495.5 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4776, allocations: 0 / 495.5 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.4776, allocations: 0 / 495.5 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006965/0.4783, allocations: 0.6258 MB / 496.1 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.4783, allocations: 0 / 496.1 MB, free: 276 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.433e-05/0.4783, allocations: 11.98 kB / 496.2 MB, free: 264 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.4783, allocations: 4 kB / 496.2 MB, free: 260 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.4784, allocations: 23.98 kB / 496.2 MB, free: 236 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4784, allocations: 0 / 496.2 MB, free: 236 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.4784, allocations: 4 kB / 496.2 MB, free: 232 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009488/0.4794, allocations: 0.686 MB / 496.9 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006882/0.4801, allocations: 0.4918 MB / 497.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.26e-05/0.4802, allocations: 20 kB / 497.4 MB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.4804, allocations: 27.97 kB / 497.4 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001953/0.4806, allocations: 51.94 kB / 497.5 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.4807, allocations: 119.9 kB / 497.6 MB, free: 14.77 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000925/0.4817, allocations: 0.7212 MB / 498.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4817, allocations: 3.938 kB / 498.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003429/0.482, allocations: 84.19 kB / 498.4 MB, free: 13.97 MB / 378.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.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.XOR.G1.auxiliary_n,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,Adder.AND.G1.auxiliary_n,b.y,a.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002128/0.4822, allocations: 138.5 kB / 498.5 MB, free: 13.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008065/0.4831, allocations: 0.6536 MB / 499.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.4831, allocations: 0 / 499.2 MB, free: 13.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005196/0.4836, allocations: 0.5211 MB / 499.7 MB, free: 12.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007344/0.4843, allocations: 174.7 kB / 499.9 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/0.4861, allocations: 1.079 MB / 0.4892 GB, free: 11.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000626/0.4868, allocations: 0.9837 MB / 0.4902 GB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003965/0.4872, allocations: 157.1 kB / 0.4903 GB, free: 10.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001668/0.4873, allocations: 75.22 kB / 0.4904 GB, free: 10.03 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4873, allocations: 4 kB / 0.4904 GB, free: 10.03 MB / 378.7 MB Notification: Performance of Templates: time 0.01018/0.4975, allocations: 6.71 MB / 0.4969 GB, free: 3.281 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches