Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [: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.003181/0.003181, allocations: 173.5 kB / 7.447 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.319/1.319, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001692/0.001692, allocations: 103.9 kB / 217.7 MB, free: 8.156 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.621e-06/5.661e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07024/0.07026, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2739/0.3443, allocations: 93.24 MB / 393.7 MB, free: 7.523 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002906/0.3446, allocations: 74.39 kB / 393.8 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.417/0.7616, allocations: 124.7 MB / 0.5063 GB, free: 73.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.788e-05/0.7617, allocations: 50.94 kB / 0.5064 GB, free: 73.22 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.004194/0.7659, allocations: 2.837 MB / 0.5092 GB, free: 71.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.766, allocations: 7.219 kB / 0.5092 GB, free: 71.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004497/0.7664, allocations: 416.3 kB / 0.5096 GB, free: 71.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003329/0.7698, allocations: 2.434 MB / 0.5119 GB, free: 70.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.7698, allocations: 19.41 kB / 0.512 GB, free: 70.14 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.7699, allocations: 35.16 kB / 0.512 GB, free: 70.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001076/0.771, allocations: 0.686 MB / 0.5127 GB, free: 69.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00111/0.7722, allocations: 0.7201 MB / 0.5134 GB, free: 69.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.7722, allocations: 0 / 0.5134 GB, free: 69.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/0.7723, allocations: 1 kB / 0.5134 GB, free: 69.61 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.835e-05/0.7723, allocations: 21.3 kB / 0.5134 GB, free: 69.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005859/0.7782, allocations: 3.185 MB / 0.5165 GB, free: 68.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.7787, allocations: 350.1 kB / 0.5168 GB, free: 67.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006576/0.7793, allocations: 0.5467 MB / 0.5174 GB, free: 67.69 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03047/0.8098, allocations: 36.07 MB / 0.5526 GB, free: 31.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003864/0.8102, allocations: 289.6 kB / 0.5529 GB, free: 31.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.986e-06/0.8103, allocations: 3.938 kB / 0.5529 GB, free: 31.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.001308/0.8116, allocations: 0.7934 MB / 0.5536 GB, free: 30.38 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.8117, allocations: 269 kB / 0.5539 GB, free: 30.05 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002973/0.8146, allocations: 2.457 MB / 0.5563 GB, free: 27.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.047e-05/0.8147, allocations: 29.7 kB / 0.5563 GB, free: 27.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/0.8151, allocations: 0.6664 MB / 0.557 GB, free: 26.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.8152, allocations: 161.8 kB / 0.5571 GB, free: 26.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.8153, allocations: 0 / 0.5571 GB, free: 26.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.193e-05/0.8153, allocations: 338 kB / 0.5575 GB, free: 26.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.8156, allocations: 170 kB / 0.5576 GB, free: 26.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004053/0.816, allocations: 0.5721 MB / 0.5582 GB, free: 25.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004156/0.8164, allocations: 268.8 kB / 0.5584 GB, free: 25.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.8165, allocations: 4 kB / 0.5584 GB, free: 25.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001453/0.8179, allocations: 1.053 MB / 0.5595 GB, free: 24.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.818, allocations: 7.938 kB / 0.5595 GB, free: 24.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.8181, allocations: 83.98 kB / 0.5596 GB, free: 24.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.886e-05/0.8181, allocations: 16 kB / 0.5596 GB, free: 24.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007949/0.8189, allocations: 220.2 kB / 0.5598 GB, free: 23.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.928e-05/0.8189, allocations: 31.81 kB / 0.5598 GB, free: 23.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.8203, allocations: 118.9 kB / 0.5599 GB, free: 23.67 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.884e-05/0.8204, allocations: 64 kB / 0.56 GB, free: 23.61 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.0001687/0.8206, allocations: 141.9 kB / 0.5601 GB, free: 23.46 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003312/0.821, allocations: 399.1 kB / 0.5605 GB, free: 23.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003954/0.8249, allocations: 1.402 MB / 0.5619 GB, free: 21.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.8249, allocations: 4 kB / 0.5619 GB, free: 21.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.71e-06/0.825, allocations: 0 / 0.5619 GB, free: 21.67 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.825, allocations: 3.984 kB / 0.5619 GB, free: 21.67 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003662/0.8286, allocations: 2.086 MB / 0.5639 GB, free: 19.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001053/0.8288, allocations: 67.98 kB / 0.564 GB, free: 19.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005333/0.8293, allocations: 111.9 kB / 0.5641 GB, free: 19.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.799e-06/0.8293, allocations: 4 kB / 0.5641 GB, free: 19.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.069e-05/0.8294, allocations: 27.98 kB / 0.5641 GB, free: 19.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.8294, allocations: 4 kB / 0.5641 GB, free: 19.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.8294, allocations: 7.938 kB / 0.5641 GB, free: 19.32 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001546/0.831, allocations: 1.205 MB / 0.5653 GB, free: 18.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.832, allocations: 0.5155 MB / 0.5658 GB, free: 17.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004382/0.8324, allocations: 7.906 kB / 0.5658 GB, free: 17.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008189/0.8333, allocations: 48.02 kB / 0.5659 GB, free: 17.48 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.8334, allocations: 59.88 kB / 0.5659 GB, free: 17.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.042e-05/0.8335, allocations: 39.98 kB / 0.566 GB, free: 17.38 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.002528/0.836, allocations: 1.813 MB / 0.5677 GB, free: 15.58 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001731/0.8378, allocations: 0.6244 MB / 0.5683 GB, free: 14.95 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.001517/0.8393, allocations: 0.9844 MB / 0.5693 GB, free: 14.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001329/0.8406, allocations: 0.6694 MB / 0.57 GB, free: 13.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.8407, allocations: 4 kB / 0.57 GB, free: 13.35 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005867/0.8413, allocations: 387.1 kB / 0.5703 GB, free: 12.95 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0028/0.8441, allocations: 0.4917 MB / 0.5708 GB, free: 12.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008288/0.8524, allocations: 3.294 MB / 0.574 GB, free: 9.105 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/0.854, allocations: 1.946 MB / 0.5759 GB, free: 7.133 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.854, allocations: 0 / 0.5759 GB, free: 7.133 MB / 346.7 MB Notification: Performance of Templates: time 0.19/1.044, allocations: 29.96 MB / 0.6052 GB, free: 123.4 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)