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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 179.1 kB / 8.48 MB, free: 1.871 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.222/1.222, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.00088/0.00088, allocations: 89.92 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.005e-06/8.136e-06, allocations: 0 / 315 MB, free: 41.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07063/0.07065, allocations: 47.58 MB / 362.5 MB, free: 9.953 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2205/0.2913, allocations: 82.5 MB / 445 MB, free: 11.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001777/0.2915, allocations: 67.97 kB / 445.1 MB, free: 11.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.05799/0.3495, allocations: 33.76 MB / 478.9 MB, free: 13.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.451e-05/0.3496, allocations: 16 kB / 478.9 MB, free: 13.52 MB / 330.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.0009425/0.3505, allocations: 0.8573 MB / 479.7 MB, free: 12.63 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.3505, allocations: 12.03 kB / 479.8 MB, free: 12.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.3507, allocations: 83 kB / 479.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.3512, allocations: 405.7 kB / 480.2 MB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.3513, allocations: 11.94 kB / 480.2 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.3513, allocations: 16 kB / 480.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003641/0.3517, allocations: 208.1 kB / 480.5 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.3521, allocations: 276.3 kB / 480.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.3522, allocations: 0 / 480.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.3522, allocations: 4 kB / 480.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.3522, allocations: 4 kB / 480.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.3535, allocations: 0.8593 MB / 481.6 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003153/0.3538, allocations: 213 kB / 481.8 MB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.354, allocations: 145.4 kB / 482 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.3541, allocations: 4.031 kB / 482 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003391/0.3544, allocations: 332.1 kB / 482.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.3544, allocations: 0 / 482.3 MB, free: 10.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005868/0.355, allocations: 360.3 kB / 482.6 MB, free: 10.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.484e-05/0.3551, allocations: 173.3 kB / 482.8 MB, free: 10.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009832/0.3561, allocations: 0.8449 MB / 483.6 MB, free: 9.352 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.3562, allocations: 33.33 kB / 483.7 MB, free: 9.316 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.901e-05/0.3562, allocations: 129 kB / 483.8 MB, free: 9.195 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.3563, allocations: 50.17 kB / 483.9 MB, free: 9.156 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.205e-05/0.3563, allocations: 4 kB / 483.9 MB, free: 9.152 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.3565, allocations: 333.7 kB / 484.2 MB, free: 8.828 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.3567, allocations: 115.2 kB / 484.3 MB, free: 8.762 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.3569, allocations: 156.9 kB / 484.4 MB, free: 8.652 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.357, allocations: 95.97 kB / 484.5 MB, free: 8.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3571, allocations: 0 / 484.5 MB, free: 8.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005554/0.3576, allocations: 331.9 kB / 484.9 MB, free: 8.332 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.3576, allocations: 11.94 kB / 484.9 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.3577, allocations: 0 / 484.9 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3577, allocations: 0 / 484.9 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.435e-05/0.3578, allocations: 20.8 kB / 484.9 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3578, allocations: 0 / 484.9 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002994/0.3581, allocations: 36.94 kB / 484.9 MB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.3582, allocations: 108.6 kB / 485 MB, free: 8.16 MB / 330.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.0002575/0.3585, allocations: 274.6 kB / 485.3 MB, free: 7.871 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.644e-05/0.3586, allocations: 75.16 kB / 485.4 MB, free: 7.797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.3588, allocations: 130.3 kB / 485.5 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3588, allocations: 0 / 485.5 MB, free: 7.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3588, allocations: 3.906 kB / 485.5 MB, free: 7.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.3589, allocations: 7.984 kB / 485.5 MB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006778/0.3595, allocations: 0.5786 MB / 486.1 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3595, allocations: 0 / 486.1 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.095e-05/0.3596, allocations: 11.98 kB / 486.1 MB, free: 7.168 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3596, allocations: 4 kB / 486.1 MB, free: 7.164 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-05/0.3597, allocations: 26.39 kB / 486.1 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3597, allocations: 4 kB / 486.1 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3597, allocations: 0 / 486.1 MB, free: 7.137 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006199/0.3603, allocations: 429.3 kB / 486.6 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006889/0.361, allocations: 0.4998 MB / 487.1 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.3611, allocations: 23.94 kB / 487.1 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.3614, allocations: 27.89 kB / 487.1 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.3615, allocations: 55.61 kB / 487.2 MB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.3617, allocations: 124 kB / 487.3 MB, free: 5.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0008286/0.3625, allocations: 0.6861 MB / 488 MB, free: 5.277 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000331/0.3628, allocations: 72 kB / 488 MB, free: 5.207 MB / 330.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.0001889/0.363, allocations: 138.6 kB / 488.2 MB, free: 5.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005743/0.3636, allocations: 426.6 kB / 488.6 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.3636, allocations: 0 / 488.6 MB, free: 4.621 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.3641, allocations: 422.7 kB / 489 MB, free: 4.184 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.3647, allocations: 161.9 kB / 489.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.3665, allocations: 1.066 MB / 490.2 MB, free: 2.926 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009673/0.3675, allocations: 1.135 MB / 491.4 MB, free: 1.762 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3675, allocations: 0 / 491.4 MB, free: 1.762 MB / 330.7 MB Notification: Performance of Templates: time 0.01013/0.3777, allocations: 7.284 MB / 498.7 MB, free: 10.42 MB / 346.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