Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001287/0.001287, allocations: 190.2 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.111/1.111, allocations: 194.2 MB / 202.8 MB, free: 8.77 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00179/0.00179, allocations: 120.7 kB / 247.7 MB, free: 6.273 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.995e-06/8.115e-06, allocations: 4 kB / 297.6 MB, free: 8.027 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0741/0.07413, allocations: 44.49 MB / 342.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2078/0.282, allocations: 78.26 MB / 420.3 MB, free: 16.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001562/0.2822, allocations: 71.91 kB / 420.4 MB, free: 16.79 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.06101/0.3432, allocations: 33.73 MB / 454.1 MB, free: 6.035 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.26e-05/0.3432, allocations: 15.94 kB / 454.1 MB, free: 6.02 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.000863/0.3441, allocations: 0.8665 MB / 455 MB, free: 5.125 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.3442, allocations: 12.03 kB / 455 MB, free: 5.113 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.3443, allocations: 87.52 kB / 455.1 MB, free: 5.027 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005527/0.3449, allocations: 401.8 kB / 455.5 MB, free: 4.629 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/0.3449, allocations: 11.25 kB / 455.5 MB, free: 4.621 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.345, allocations: 16 kB / 455.5 MB, free: 4.605 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000375/0.3453, allocations: 198.2 kB / 455.7 MB, free: 4.477 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004469/0.3458, allocations: 284.5 kB / 456 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3458, allocations: 0 / 456 MB, free: 4.254 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.351e-05/0.3459, allocations: 4 kB / 456 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.3459, allocations: 4 kB / 456 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.3472, allocations: 0.8573 MB / 456.9 MB, free: 3.531 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003575/0.3475, allocations: 203.3 kB / 457.1 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.3478, allocations: 150.4 kB / 457.2 MB, free: 3.312 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.3478, allocations: 0 / 457.2 MB, free: 3.312 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003464/0.3482, allocations: 338.7 kB / 457.5 MB, free: 3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.3482, allocations: 0 / 457.5 MB, free: 3 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006157/0.3488, allocations: 363 kB / 457.9 MB, free: 2.707 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.3489, allocations: 173.8 kB / 458.1 MB, free: 2.508 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/0.3499, allocations: 0.84 MB / 458.9 MB, free: 1.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/0.35, allocations: 35.08 kB / 458.9 MB, free: 1.789 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.696e-05/0.3501, allocations: 124.8 kB / 459 MB, free: 1.676 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.375e-05/0.3501, allocations: 51.67 kB / 459.1 MB, free: 1.633 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.3502, allocations: 8 kB / 459.1 MB, free: 1.625 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.3503, allocations: 345.5 kB / 459.4 MB, free: 1.293 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.3505, allocations: 111.5 kB / 459.6 MB, free: 1.23 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.3507, allocations: 142.2 kB / 459.7 MB, free: 1.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001704/0.3509, allocations: 89.77 kB / 459.8 MB, free: 1.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3509, allocations: 4 kB / 459.8 MB, free: 1.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005871/0.3515, allocations: 342.2 kB / 460.1 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.3515, allocations: 14.56 kB / 460.1 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.3516, allocations: 0 / 460.1 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.3516, allocations: 0 / 460.1 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.904e-05/0.3517, allocations: 12 kB / 460.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.3517, allocations: 128 / 460.1 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002707/0.3519, allocations: 36.44 kB / 460.2 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/0.3521, allocations: 109.7 kB / 460.3 MB, free: 0.6406 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.000246/0.3523, allocations: 274.3 kB / 460.6 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.3524, allocations: 79.06 kB / 460.6 MB, free: 268 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.3528, allocations: 126.3 kB / 460.8 MB, free: 136 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3528, allocations: 4 kB / 460.8 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3528, allocations: 0 / 460.8 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.3528, allocations: 0 / 460.8 MB, free: 132 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007357/0.3535, allocations: 0.5952 MB / 461.4 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3536, allocations: 4 kB / 461.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.349e-05/0.3536, allocations: 12 kB / 461.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3536, allocations: 0 / 461.4 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.838e-05/0.3537, allocations: 27.98 kB / 461.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3537, allocations: 0 / 461.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3537, allocations: 3.906 kB / 461.4 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006694/0.3544, allocations: 427.9 kB / 461.8 MB, free: 15.01 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007808/0.3552, allocations: 0.4958 MB / 462.3 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001295/0.3553, allocations: 24 kB / 462.3 MB, free: 14.47 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.3556, allocations: 31.88 kB / 462.4 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.3557, allocations: 51.94 kB / 462.4 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.3559, allocations: 111.9 kB / 462.5 MB, free: 14.28 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0009035/0.3568, allocations: 0.6861 MB / 463.2 MB, free: 13.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003637/0.3571, allocations: 73.41 kB / 463.3 MB, free: 13.53 MB / 346.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.0002424/0.3574, allocations: 138.7 kB / 463.4 MB, free: 13.39 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006677/0.3581, allocations: 426.7 kB / 463.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3581, allocations: 0 / 463.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004983/0.3586, allocations: 418.8 kB / 464.2 MB, free: 12.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007658/0.3594, allocations: 167.4 kB / 464.4 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001994/0.3614, allocations: 1.066 MB / 465.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.3625, allocations: 1.154 MB / 466.6 MB, free: 10.07 MB / 346.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3625, allocations: 0 / 466.6 MB, free: 10.07 MB / 346.7 MB Notification: Performance of Templates: time 0.01135/0.3738, allocations: 7.277 MB / 473.9 MB, free: 2.762 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)