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.0009874/0.0009874, allocations: 176.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008156/0.0008155, allocations: 82.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.346e-05/1.349e-05, allocations: 7.984 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07646/0.07649, allocations: 47.59 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3197/0.3963, allocations: 82.81 MB / 445.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002068/0.3965, allocations: 73.72 kB / 446 MB, free: 12.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06497/0.4615, allocations: 34.38 MB / 480.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4616, allocations: 0 / 480.3 MB, free: 0.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.61e-05/0.4616, allocations: 12 kB / 480.4 MB, free: 500 kB / 346.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.001072/0.4627, allocations: 0.8623 MB / 481.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.4628, allocations: 15.97 kB / 481.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.4629, allocations: 87 kB / 481.3 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005833/0.4635, allocations: 403.5 kB / 481.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.4635, allocations: 12 kB / 481.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/0.4636, allocations: 16 kB / 481.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003886/0.464, allocations: 199.7 kB / 481.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.4645, allocations: 265.5 kB / 482.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.259e-05/0.4645, allocations: 3.984 kB / 482.2 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.324e-05/0.4645, allocations: 4 kB / 482.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4645, allocations: 4 kB / 482.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001435/0.466, allocations: 0.8479 MB / 483 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000368/0.4664, allocations: 206.5 kB / 483.3 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.4666, allocations: 140.8 kB / 483.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.4666, allocations: 0 / 483.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004282/0.4671, allocations: 382.5 kB / 483.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.323e-06/0.4671, allocations: 0 / 483.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007845/0.4679, allocations: 464.5 kB / 484.2 MB, free: 12.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.468, allocations: 170.2 kB / 484.4 MB, free: 12.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.4691, allocations: 0.8392 MB / 485.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.52e-05/0.4692, allocations: 37.69 kB / 485.3 MB, free: 11.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.4693, allocations: 149.8 kB / 485.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/0.4694, allocations: 51.41 kB / 485.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-05/0.4694, allocations: 7.984 kB / 485.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4696, allocations: 342.9 kB / 485.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.4698, allocations: 116.5 kB / 485.9 MB, free: 10.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002098/0.47, allocations: 143 kB / 486.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.4702, allocations: 99.89 kB / 486.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4702, allocations: 0 / 486.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000668/0.4709, allocations: 425.2 kB / 486.6 MB, free: 9.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.471, allocations: 130.8 kB / 486.7 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.471, allocations: 7.938 kB / 486.7 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.471, allocations: 0 / 486.7 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.4711, allocations: 19.98 kB / 486.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.4712, allocations: 4 kB / 486.7 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.4714, allocations: 27.97 kB / 486.7 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001186/0.4716, allocations: 111.9 kB / 486.9 MB, free: 9.66 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.000232/0.4718, allocations: 269.9 kB / 487.1 MB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4719, allocations: 87.05 kB / 487.2 MB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001942/0.4721, allocations: 122.2 kB / 487.3 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.4721, allocations: 4 kB / 487.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.4721, allocations: 0 / 487.3 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4722, allocations: 4.078 kB / 487.3 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006649/0.4728, allocations: 0.595 MB / 487.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4728, allocations: 0 / 487.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-05/0.4729, allocations: 15.98 kB / 487.9 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.4729, allocations: 0 / 487.9 MB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.946e-05/0.473, allocations: 27.98 kB / 488 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.473, allocations: 4 kB / 488 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.473, allocations: 0 / 488 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007557/0.4737, allocations: 0.5233 MB / 488.5 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/0.4744, allocations: 0.4918 MB / 489 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.4745, allocations: 20.12 kB / 489 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.4747, allocations: 31.97 kB / 489 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.4749, allocations: 51.94 kB / 489.1 MB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/0.475, allocations: 123.9 kB / 489.2 MB, free: 7.191 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008662/0.4759, allocations: 0.6861 MB / 489.9 MB, free: 6.508 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4759, allocations: 3.938 kB / 489.9 MB, free: 6.504 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003311/0.4762, allocations: 80 kB / 490 MB, free: 6.426 MB / 362.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.0001801/0.4764, allocations: 134.7 kB / 490.1 MB, free: 6.281 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006824/0.4771, allocations: 0.6224 MB / 490.7 MB, free: 5.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.4771, allocations: 0 / 490.7 MB, free: 5.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.4775, allocations: 0.5133 MB / 491.2 MB, free: 5.047 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007311/0.4783, allocations: 168.2 kB / 491.4 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.4799, allocations: 1.067 MB / 492.5 MB, free: 3.789 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.4805, allocations: 0.9835 MB / 493.5 MB, free: 2.777 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003408/0.4809, allocations: 161 kB / 493.6 MB, free: 2.617 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001555/0.481, allocations: 71.28 kB / 493.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of SimCode: time 2.595e-06/0.481, allocations: 0 / 493.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of Templates: time 0.009555/0.4906, allocations: 6.404 MB / 0.4884 GB, free: 12.1 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