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") [: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.001787/0.001791, allocations: 175.3 kB / 8.15 MB, free: 2.188 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.739/1.739, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.001325/0.001325, allocations: 94.23 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.485e-05/1.494e-05, allocations: 4 kB / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.284, allocations: 47.55 MB / 361.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.125/0.4091, allocations: 82.51 MB / 444.3 MB, free: 3.566 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.4094, allocations: 78.02 kB / 444.4 MB, free: 3.492 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1176/0.527, allocations: 33.76 MB / 478.2 MB, free: 1.832 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.323e-05/0.5271, allocations: 16 kB / 478.2 MB, free: 1.816 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.001322/0.5284, allocations: 0.8661 MB / 479.1 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.5285, allocations: 12.03 kB / 479.1 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.5287, allocations: 75.06 kB / 479.1 MB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008996/0.5296, allocations: 407.6 kB / 479.5 MB, free: 364 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.799e-05/0.5297, allocations: 19.94 kB / 479.6 MB, free: 344 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.843e-05/0.5298, allocations: 19.94 kB / 479.6 MB, free: 324 kB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006805/0.5305, allocations: 203.6 kB / 479.8 MB, free: 120 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007999/0.5313, allocations: 273.5 kB / 480 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.5313, allocations: 4 kB / 480 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.727e-05/0.5314, allocations: 5.781 kB / 480.1 MB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.5314, allocations: 4 kB / 480.1 MB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002259/0.5337, allocations: 0.8596 MB / 480.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006327/0.5344, allocations: 206.5 kB / 481.1 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.5347, allocations: 140.8 kB / 481.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.5348, allocations: 4 kB / 481.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006004/0.5354, allocations: 338.1 kB / 481.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.566e-06/0.5354, allocations: 0 / 481.6 MB, free: 14.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.00107/0.5365, allocations: 360.7 kB / 481.9 MB, free: 13.85 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.5367, allocations: 166.2 kB / 482.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002038/0.5387, allocations: 0.8432 MB / 482.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.5389, allocations: 33.7 kB / 483 MB, free: 12.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.539, allocations: 180.2 kB / 483.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.5391, allocations: 55.36 kB / 483.2 MB, free: 12.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.005e-05/0.5392, allocations: 4 kB / 483.2 MB, free: 12.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5393, allocations: 322.8 kB / 483.5 MB, free: 12.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.5397, allocations: 116 kB / 483.6 MB, free: 12.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003855/0.5401, allocations: 143.2 kB / 483.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002943/0.5404, allocations: 103.8 kB / 483.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.5404, allocations: 0 / 483.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000921/0.5414, allocations: 321.4 kB / 484.2 MB, free: 11.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.5414, allocations: 4 kB / 484.2 MB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.5414, allocations: 7.938 kB / 484.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.5415, allocations: 4 kB / 484.2 MB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.5416, allocations: 16.48 kB / 484.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.5416, allocations: 4 kB / 484.2 MB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/0.542, allocations: 31.88 kB / 484.3 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001813/0.5422, allocations: 111.9 kB / 484.4 MB, free: 11.34 MB / 378.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.0003112/0.5426, allocations: 191 kB / 484.6 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.5428, allocations: 83.05 kB / 484.6 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000471/0.5433, allocations: 129.3 kB / 484.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.5433, allocations: 0 / 484.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.5433, allocations: 0 / 484.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.269e-06/0.5433, allocations: 0 / 484.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.5445, allocations: 0.5872 MB / 485.4 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.5446, allocations: 4 kB / 485.4 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.748e-05/0.5447, allocations: 12 kB / 485.4 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.188e-06/0.5447, allocations: 3.984 kB / 485.4 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.704e-05/0.5448, allocations: 23.98 kB / 485.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.5448, allocations: 0 / 485.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.5448, allocations: 0 / 485.4 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00113/0.546, allocations: 426.5 kB / 485.8 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.5474, allocations: 0.5035 MB / 486.3 MB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.5477, allocations: 27.98 kB / 486.3 MB, free: 9.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.5481, allocations: 28.02 kB / 486.4 MB, free: 9.227 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.5484, allocations: 55.94 kB / 486.4 MB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/0.5486, allocations: 115.9 kB / 486.5 MB, free: 9.059 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001652/0.5503, allocations: 0.69 MB / 487.2 MB, free: 8.371 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005827/0.5509, allocations: 76 kB / 487.3 MB, free: 8.297 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.0002804/0.5512, allocations: 134.8 kB / 487.4 MB, free: 8.156 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.5522, allocations: 422.6 kB / 487.8 MB, free: 7.719 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.5522, allocations: 0 / 487.8 MB, free: 7.719 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007329/0.553, allocations: 426.6 kB / 488.3 MB, free: 7.277 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.5544, allocations: 168.1 kB / 488.4 MB, free: 7.121 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.5579, allocations: 1.138 MB / 489.6 MB, free: 5.926 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001628/0.5595, allocations: 1.142 MB / 490.7 MB, free: 4.754 MB / 378.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5596, allocations: 0 / 490.7 MB, free: 4.754 MB / 378.7 MB Notification: Performance of Templates: time 0.01193/0.5715, allocations: 5.148 MB / 495.9 MB, free: 15.56 MB / 394.7 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