Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001542/0.001542, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.929/1.929, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 89.53 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.375e-05/2.349e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3243/0.3244, allocations: 47.56 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4528, allocations: 82.58 MB / 444.9 MB, free: 3.738 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.4531, allocations: 70.78 kB / 445 MB, free: 3.672 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1217/0.5748, allocations: 34.39 MB / 479.4 MB, free: 1.402 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.5748, allocations: 0 / 479.4 MB, free: 1.402 MB / 363.1 MB Notification: Performance of Transformations before backend: time 3.442e-05/0.5749, allocations: 16 kB / 479.4 MB, free: 1.387 MB / 363.1 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.001269/0.5762, allocations: 0.8645 MB / 480.2 MB, free: 464 kB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.5762, allocations: 11.97 kB / 480.3 MB, free: 452 kB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001927/0.5764, allocations: 79.06 kB / 480.3 MB, free: 372 kB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008293/0.5773, allocations: 407.7 kB / 480.7 MB, free: 15.92 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.515e-05/0.5773, allocations: 11.94 kB / 480.7 MB, free: 15.91 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.421e-05/0.5774, allocations: 16 kB / 480.8 MB, free: 15.89 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005924/0.578, allocations: 203.7 kB / 481 MB, free: 15.7 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006985/0.5788, allocations: 273.5 kB / 481.2 MB, free: 15.42 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.5788, allocations: 0 / 481.2 MB, free: 15.42 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.517e-05/0.5789, allocations: 4 kB / 481.2 MB, free: 15.42 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.5789, allocations: 4 kB / 481.2 MB, free: 15.41 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002019/0.5809, allocations: 0.844 MB / 482.1 MB, free: 14.53 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005374/0.5815, allocations: 206.5 kB / 482.3 MB, free: 14.32 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003289/0.5818, allocations: 144.8 kB / 482.4 MB, free: 14.17 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.5819, allocations: 8.031 kB / 482.4 MB, free: 14.16 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006491/0.5825, allocations: 370.9 kB / 482.8 MB, free: 13.77 MB / 379.1 MB Notification: Performance of pre-optimization done (n=24): time 2.976e-06/0.5826, allocations: 0 / 482.8 MB, free: 13.77 MB / 379.1 MB Notification: Performance of matching and sorting (n=24): time 0.001343/0.5839, allocations: 452.7 kB / 483.2 MB, free: 13.32 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.5841, allocations: 182.1 kB / 483.4 MB, free: 13.1 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001781/0.5859, allocations: 0.8315 MB / 484.2 MB, free: 12.26 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.586, allocations: 37.69 kB / 484.3 MB, free: 12.22 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.5862, allocations: 208.2 kB / 484.5 MB, free: 12.02 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.5863, allocations: 47.42 kB / 484.5 MB, free: 11.97 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.986e-05/0.5863, allocations: 4 kB / 484.5 MB, free: 11.96 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.5865, allocations: 327.9 kB / 484.9 MB, free: 11.64 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003193/0.5868, allocations: 112 kB / 485 MB, free: 11.53 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.5872, allocations: 150.5 kB / 485.1 MB, free: 11.37 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000264/0.5875, allocations: 91.7 kB / 485.2 MB, free: 11.29 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.5875, allocations: 4 kB / 485.2 MB, free: 11.28 MB / 379.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001149/0.5887, allocations: 417.4 kB / 485.6 MB, free: 10.87 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.5888, allocations: 142.7 kB / 485.7 MB, free: 10.7 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.5888, allocations: 0 / 485.7 MB, free: 10.7 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.5889, allocations: 0 / 485.7 MB, free: 10.7 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.589, allocations: 12 kB / 485.8 MB, free: 10.69 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.589, allocations: 1.781 kB / 485.8 MB, free: 10.69 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005052/0.5895, allocations: 31.88 kB / 485.8 MB, free: 10.66 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001857/0.5897, allocations: 115.9 kB / 485.9 MB, free: 10.55 MB / 379.1 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.0003346/0.5901, allocations: 273.9 kB / 486.2 MB, free: 10.25 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.5903, allocations: 79.06 kB / 486.3 MB, free: 10.17 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004112/0.5907, allocations: 134.2 kB / 486.4 MB, free: 10.04 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.5907, allocations: 0 / 486.4 MB, free: 10.04 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.5907, allocations: 0 / 486.4 MB, free: 10.04 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.5907, allocations: 0 / 486.4 MB, free: 10.04 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.5918, allocations: 0.5912 MB / 487 MB, free: 9.406 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.5918, allocations: 0 / 487 MB, free: 9.406 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.016e-05/0.5919, allocations: 8 kB / 487 MB, free: 9.398 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.827e-06/0.592, allocations: 4.031 kB / 487 MB, free: 9.395 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.922e-05/0.592, allocations: 27.98 kB / 487 MB, free: 9.367 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.5921, allocations: 0 / 487 MB, free: 9.367 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.5921, allocations: 0 / 487 MB, free: 9.367 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.5934, allocations: 0.5287 MB / 487.5 MB, free: 8.82 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001197/0.5947, allocations: 0.4919 MB / 488 MB, free: 8.309 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.5949, allocations: 26.05 kB / 488.1 MB, free: 8.285 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004515/0.5953, allocations: 27.89 kB / 488.1 MB, free: 8.258 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.5956, allocations: 51.94 kB / 488.1 MB, free: 8.207 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/0.5958, allocations: 119.9 kB / 488.3 MB, free: 8.09 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001447/0.5972, allocations: 0.6861 MB / 488.9 MB, free: 7.406 MB / 379.1 MB Notification: Performance of sort global known variables: time 3.036e-06/0.5973, allocations: 0 / 488.9 MB, free: 7.406 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0005944/0.5979, allocations: 83.94 kB / 489 MB, free: 7.324 MB / 379.1 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.0002533/0.5981, allocations: 142.7 kB / 489.2 MB, free: 7.172 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.5993, allocations: 0.615 MB / 489.8 MB, free: 6.508 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.5993, allocations: 0 / 489.8 MB, free: 6.508 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007111/0.6, allocations: 0.5131 MB / 490.3 MB, free: 5.945 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.6012, allocations: 171.3 kB / 490.5 MB, free: 5.785 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003033/0.6043, allocations: 1.144 MB / 491.6 MB, free: 4.605 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009369/0.6053, allocations: 0.9835 MB / 492.6 MB, free: 3.594 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004127/0.6057, allocations: 91.19 kB / 492.7 MB, free: 3.504 MB / 379.1 MB Notification: Performance of SimCode: time 1.233e-06/0.6057, allocations: 0 / 492.7 MB, free: 3.504 MB / 379.1 MB Notification: Performance of Templates: time 0.01281/0.6185, allocations: 5.295 MB / 498 MB, free: 14.18 MB / 395.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches