Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [: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.1+maint.om/package.mo): time 0.003167/0.003168, allocations: 174.8 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.172/1.172, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00164/0.00164, allocations: 119.8 kB / 217.7 MB, free: 8.199 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.887e-06/9.207e-06, allocations: 0 / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08314/0.08316, allocations: 38.76 MB / 300.5 MB, free: 3.887 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2845/0.3677, allocations: 93.22 MB / 393.7 MB, free: 7.523 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.368, allocations: 68.53 kB / 393.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.4169/0.7849, allocations: 122.9 MB / 0.5046 GB, free: 72.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.011e-05/0.785, allocations: 44.41 kB / 0.5046 GB, free: 72.72 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.006913/0.7919, allocations: 2.76 MB / 0.5073 GB, free: 71.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.792, allocations: 7.719 kB / 0.5073 GB, free: 71.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009091/0.7929, allocations: 399.5 kB / 0.5077 GB, free: 70.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006565/0.7995, allocations: 2.366 MB / 0.51 GB, free: 69.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.7996, allocations: 19.64 kB / 0.51 GB, free: 69.74 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001939/0.7998, allocations: 35.44 kB / 0.5101 GB, free: 69.74 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00179/0.8016, allocations: 0.6873 MB / 0.5107 GB, free: 69.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.8032, allocations: 0.7206 MB / 0.5114 GB, free: 69.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.463e-05/0.8032, allocations: 6.281 kB / 0.5114 GB, free: 69.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.8034, allocations: 0 / 0.5114 GB, free: 69.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.699e-05/0.8034, allocations: 23.14 kB / 0.5115 GB, free: 69.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00913/0.8125, allocations: 3.096 MB / 0.5145 GB, free: 67.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008298/0.8134, allocations: 351 kB / 0.5148 GB, free: 67.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001183/0.8146, allocations: 0.5329 MB / 0.5153 GB, free: 67.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05412/0.8688, allocations: 36.04 MB / 0.5505 GB, free: 33.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006024/0.8694, allocations: 293.6 kB / 0.5508 GB, free: 33.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.418e-06/0.8694, allocations: 0 / 0.5508 GB, free: 33.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002087/0.8715, allocations: 0.7742 MB / 0.5516 GB, free: 32.28 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.702e-05/0.8716, allocations: 268.9 kB / 0.5518 GB, free: 31.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004697/0.8764, allocations: 2.318 MB / 0.5541 GB, free: 29.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.8765, allocations: 29.7 kB / 0.5541 GB, free: 29.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005517/0.8771, allocations: 0.6497 MB / 0.5548 GB, free: 28.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001907/0.8773, allocations: 169.6 kB / 0.5549 GB, free: 28.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.8774, allocations: 0 / 0.5549 GB, free: 28.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.8774, allocations: 337.9 kB / 0.5552 GB, free: 28.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000485/0.8779, allocations: 170 kB / 0.5554 GB, free: 28.27 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006716/0.8786, allocations: 0.5799 MB / 0.556 GB, free: 27.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007451/0.8794, allocations: 256.8 kB / 0.5562 GB, free: 27.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.686e-06/0.8794, allocations: 4 kB / 0.5562 GB, free: 27.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002584/0.882, allocations: 1.042 MB / 0.5572 GB, free: 26.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.882, allocations: 8 kB / 0.5572 GB, free: 26.19 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001876/0.8822, allocations: 83.98 kB / 0.5573 GB, free: 26.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.531e-05/0.8823, allocations: 20 kB / 0.5573 GB, free: 26.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/0.8836, allocations: 215.8 kB / 0.5575 GB, free: 25.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.325e-05/0.8836, allocations: 23.92 kB / 0.5576 GB, free: 25.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/0.8861, allocations: 107.1 kB / 0.5577 GB, free: 25.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.8863, allocations: 68 kB / 0.5577 GB, free: 25.68 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.000263/0.8866, allocations: 152.1 kB / 0.5579 GB, free: 25.53 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006905/0.8873, allocations: 383.4 kB / 0.5582 GB, free: 25.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00744/0.8948, allocations: 1.381 MB / 0.5596 GB, free: 23.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/0.8948, allocations: 4 kB / 0.5596 GB, free: 23.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.8948, allocations: 0 / 0.5596 GB, free: 23.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.8948, allocations: 0 / 0.5596 GB, free: 23.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.9002, allocations: 2.006 MB / 0.5616 GB, free: 21.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001889/0.9004, allocations: 71.98 kB / 0.5616 GB, free: 21.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009064/0.9013, allocations: 115.9 kB / 0.5617 GB, free: 21.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/0.9013, allocations: 0 / 0.5617 GB, free: 21.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.747e-05/0.9014, allocations: 24 kB / 0.5618 GB, free: 21.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/0.9015, allocations: 7.984 kB / 0.5618 GB, free: 21.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.9015, allocations: 0 / 0.5618 GB, free: 21.52 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002464/0.9039, allocations: 1.186 MB / 0.5629 GB, free: 20.29 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/0.9055, allocations: 0.5562 MB / 0.5635 GB, free: 19.7 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000711/0.9062, allocations: 7.984 kB / 0.5635 GB, free: 19.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.9077, allocations: 44.03 kB / 0.5635 GB, free: 19.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002274/0.908, allocations: 59.88 kB / 0.5636 GB, free: 19.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.9081, allocations: 39.92 kB / 0.5636 GB, free: 19.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003926/0.9121, allocations: 1.721 MB / 0.5653 GB, free: 17.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002806/0.9149, allocations: 0.6165 MB / 0.5659 GB, free: 17.21 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * 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.001817/0.9167, allocations: 0.9335 MB / 0.5668 GB, free: 16.35 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.9184, allocations: 0.6692 MB / 0.5675 GB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.85e-06/0.9184, allocations: 0 / 0.5675 GB, free: 15.66 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007471/0.9191, allocations: 387.4 kB / 0.5678 GB, free: 15.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/0.9221, allocations: 490.5 kB / 0.5683 GB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008939/0.9311, allocations: 3.133 MB / 0.5714 GB, free: 11.58 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001778/0.9329, allocations: 1.897 MB / 0.5732 GB, free: 9.656 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.9329, allocations: 0 / 0.5732 GB, free: 9.656 MB / 346.7 MB Notification: Performance of Templates: time 0.1994/1.132, allocations: 28.96 MB / 0.6015 GB, free: 123.8 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)