Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.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.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter") [: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.002435/0.002434, allocations: 182.3 kB / 8.155 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.798/1.798, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.001289/0.001289, allocations: 95.2 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.073e-06/7.083e-06, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2514, allocations: 47.55 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.158/0.4095, allocations: 101.2 MB / 463 MB, free: 0.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.4098, allocations: 71.97 kB / 463.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.455/0.8648, allocations: 85.49 MB / 0.5357 GB, free: 82.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.252e-05/0.8649, allocations: 22.19 kB / 0.5357 GB, free: 82.82 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.004735/0.8696, allocations: 1.646 MB / 0.5373 GB, free: 81.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.8697, allocations: 8.562 kB / 0.5373 GB, free: 81.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005735/0.8703, allocations: 193.9 kB / 0.5375 GB, free: 81.77 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003495/0.8738, allocations: 1.221 MB / 0.5387 GB, free: 81.33 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.926e-05/0.8739, allocations: 15.89 kB / 0.5387 GB, free: 81.33 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.874, allocations: 16.5 kB / 0.5387 GB, free: 81.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001033/0.8751, allocations: 361.6 kB / 0.5391 GB, free: 81.33 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009589/0.876, allocations: 407.9 kB / 0.5395 GB, free: 81.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.8761, allocations: 0 / 0.5395 GB, free: 81.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.998e-05/0.8761, allocations: 1.25 kB / 0.5395 GB, free: 81.24 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.711e-05/0.8762, allocations: 24.75 kB / 0.5395 GB, free: 81.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005192/0.8814, allocations: 1.61 MB / 0.5411 GB, free: 80.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006876/0.8821, allocations: 248.3 kB / 0.5413 GB, free: 80.84 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000721/0.8829, allocations: 330.5 kB / 0.5416 GB, free: 80.83 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02459/0.9075, allocations: 18.14 MB / 0.5593 GB, free: 63.48 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004333/0.908, allocations: 186.3 kB / 0.5595 GB, free: 63.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 3.407e-06/0.908, allocations: 0 / 0.5595 GB, free: 63.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001379/0.9094, allocations: 473.5 kB / 0.56 GB, free: 62.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.9095, allocations: 167.6 kB / 0.5601 GB, free: 62.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002019/0.9115, allocations: 1.11 MB / 0.5612 GB, free: 61.96 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.737e-05/0.9116, allocations: 29.08 kB / 0.5612 GB, free: 61.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.9118, allocations: 274.1 kB / 0.5615 GB, free: 61.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.9119, allocations: 90.22 kB / 0.5616 GB, free: 61.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.953e-05/0.9119, allocations: 3.938 kB / 0.5616 GB, free: 61.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.819e-05/0.912, allocations: 338.9 kB / 0.5619 GB, free: 61.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002907/0.9123, allocations: 97.44 kB / 0.562 GB, free: 61.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004186/0.9127, allocations: 316.7 kB / 0.5623 GB, free: 60.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004096/0.9132, allocations: 135.8 kB / 0.5624 GB, free: 60.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.9132, allocations: 4 kB / 0.5624 GB, free: 60.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001169/0.9144, allocations: 462.5 kB / 0.5629 GB, free: 60.37 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.9144, allocations: 6.969 kB / 0.5629 GB, free: 60.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.183e-05/0.9145, allocations: 43.98 kB / 0.5629 GB, free: 60.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004571/0.915, allocations: 137.1 kB / 0.5631 GB, free: 60.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000828/0.9158, allocations: 126.8 kB / 0.5632 GB, free: 60.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008438/0.9167, allocations: 0.696 MB / 0.5639 GB, free: 59.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006233/0.9173, allocations: 67.7 kB / 0.5639 GB, free: 59.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.962e-05/0.9174, allocations: 35.38 kB / 0.564 GB, free: 59.31 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001687/0.9176, allocations: 56.92 kB / 0.564 GB, free: 59.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005029/0.9181, allocations: 186.7 kB / 0.5642 GB, free: 59.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003623/0.9217, allocations: 0.7761 MB / 0.5649 GB, free: 58.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.073e-05/0.9218, allocations: 11.94 kB / 0.565 GB, free: 58.38 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.9218, allocations: 0 / 0.565 GB, free: 58.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.9218, allocations: 0 / 0.565 GB, free: 58.38 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/0.9247, allocations: 1.177 MB / 0.5661 GB, free: 57.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.853e-05/0.9248, allocations: 35.98 kB / 0.5661 GB, free: 57.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000545/0.9254, allocations: 60.02 kB / 0.5662 GB, free: 57.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003689/0.9258, allocations: 131.6 kB / 0.5663 GB, free: 57.23 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.435e-05/0.9258, allocations: 12 kB / 0.5663 GB, free: 57.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000802/0.9266, allocations: 0.6971 MB / 0.567 GB, free: 56.54 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.9267, allocations: 0 / 0.567 GB, free: 56.54 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001305/0.928, allocations: 0.6164 MB / 0.5676 GB, free: 55.95 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006874/0.9287, allocations: 285 kB / 0.5679 GB, free: 55.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003208/0.929, allocations: 15.92 kB / 0.5679 GB, free: 55.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009328/0.93, allocations: 39.97 kB / 0.5679 GB, free: 55.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.9301, allocations: 44.34 kB / 0.568 GB, free: 55.58 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.651e-05/0.9302, allocations: 20 kB / 0.568 GB, free: 55.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001528/0.9317, allocations: 0.8358 MB / 0.5688 GB, free: 54.95 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001509/0.9333, allocations: 339.3 kB / 0.5691 GB, free: 54.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001273/0.9346, allocations: 0.7231 MB / 0.5698 GB, free: 54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001114/0.9357, allocations: 385.8 kB / 0.5702 GB, free: 53.69 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.9357, allocations: 8.312 kB / 0.5702 GB, free: 53.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005675/0.9363, allocations: 227.6 kB / 0.5704 GB, free: 53.49 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001606/0.9379, allocations: 222 kB / 0.5707 GB, free: 53.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.9423, allocations: 1.58 MB / 0.5722 GB, free: 51.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008496/0.9432, allocations: 1.261 MB / 0.5734 GB, free: 50.56 MB / 394.7 MB Notification: Performance of SimCode: time 1.443e-06/0.9432, allocations: 0 / 0.5734 GB, free: 50.56 MB / 394.7 MB Notification: Performance of Templates: time 0.04213/0.9853, allocations: 24.15 MB / 0.597 GB, free: 26.65 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)