Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) [: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.001231/0.001231, allocations: 178.9 kB / 8.477 MB, free: 1.883 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.07/1.07, allocations: 205.2 MB / 214.1 MB, free: 5.176 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009357/0.0009355, allocations: 82.28 kB / 262.1 MB, free: 5.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1491/0.15, allocations: 52.96 MB / 315.1 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06304/0.2131, allocations: 47.58 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2192/0.4323, allocations: 101.6 MB / 464.2 MB, free: 5.133 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.4325, allocations: 76.05 kB / 464.3 MB, free: 5.121 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.4914/0.924, allocations: 192.7 MB / 0.6417 GB, free: 81.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.924, allocations: 11.81 kB / 0.6417 GB, free: 81.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009444/0.925, allocations: 0.7496 MB / 0.6424 GB, free: 80.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006191/0.9312, allocations: 4.526 MB / 0.6468 GB, free: 78.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.9312, allocations: 28.88 kB / 0.6469 GB, free: 78.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.9315, allocations: 70.44 kB / 0.6469 GB, free: 78.96 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002069/0.9335, allocations: 1.308 MB / 0.6482 GB, free: 78.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00172/0.9353, allocations: 1.326 MB / 0.6495 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.9353, allocations: 1.094 kB / 0.6495 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001123/0.9354, allocations: 1.188 kB / 0.6495 GB, free: 77.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/0.9355, allocations: 42.45 kB / 0.6495 GB, free: 77.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008702/0.9442, allocations: 5.692 MB / 0.6551 GB, free: 75.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007564/0.9449, allocations: 0.6523 MB / 0.6557 GB, free: 75.12 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.9461, allocations: 1.051 MB / 0.6568 GB, free: 74.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0516/0.9977, allocations: 71.62 MB / 0.7267 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006801/0.9984, allocations: 487.5 kB / 0.7272 GB, free: 14.21 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 2.515e-06/0.9984, allocations: 0 / 0.7272 GB, free: 14.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.002469/1.001, allocations: 1.422 MB / 0.7286 GB, free: 12.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/1.001, allocations: 479.3 kB / 0.729 GB, free: 12.19 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005509/1.007, allocations: 4.412 MB / 0.7333 GB, free: 7.816 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.868e-05/1.007, allocations: 25.7 kB / 0.7334 GB, free: 7.785 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008881/1.008, allocations: 1.177 MB / 0.7345 GB, free: 6.594 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/1.008, allocations: 291.9 kB / 0.7348 GB, free: 6.305 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.185e-05/1.008, allocations: 4 kB / 0.7348 GB, free: 6.301 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/1.008, allocations: 361.9 kB / 0.7351 GB, free: 5.941 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005692/1.009, allocations: 316 kB / 0.7354 GB, free: 5.629 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009133/1.01, allocations: 1.087 MB / 0.7365 GB, free: 4.164 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008052/1.01, allocations: 497.4 kB / 0.737 GB, free: 3.684 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/1.01, allocations: 8 kB / 0.737 GB, free: 3.676 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002761/1.013, allocations: 1.927 MB / 0.7389 GB, free: 1.742 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/1.013, allocations: 5.875 kB / 0.7389 GB, free: 1.738 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002437/1.013, allocations: 160.8 kB / 0.739 GB, free: 1.582 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.979e-05/1.013, allocations: 36 kB / 0.739 GB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/1.015, allocations: 379.4 kB / 0.7394 GB, free: 1.176 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.29e-05/1.015, allocations: 47.86 kB / 0.7395 GB, free: 1.129 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001903/1.017, allocations: 178.2 kB / 0.7396 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/1.017, allocations: 122.8 kB / 0.7397 GB, free: 0.8359 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.000229/1.017, allocations: 180.3 kB / 0.7399 GB, free: 0.6523 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1137/1.131, allocations: 0.7276 MB / 0.7406 GB, free: 138.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007491/1.138, allocations: 2.623 MB / 0.7432 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/1.138, allocations: 7.75 kB / 0.7432 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/1.138, allocations: 2.062 kB / 0.7432 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/1.138, allocations: 3.656 kB / 0.7432 GB, free: 138.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004996/1.143, allocations: 3.551 MB / 0.7467 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001906/1.144, allocations: 141.4 kB / 0.7468 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007807/1.144, allocations: 164.7 kB / 0.747 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.863e-06/1.144, allocations: 5.5 kB / 0.747 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.703e-05/1.144, allocations: 55.64 kB / 0.747 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/1.144, allocations: 1.969 kB / 0.747 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.144, allocations: 3.766 kB / 0.747 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002131/1.147, allocations: 2.06 MB / 0.749 GB, free: 137.2 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002646/1.149, allocations: 2.941 MB / 0.7519 GB, free: 136.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/1.151, allocations: 0.9356 MB / 0.7528 GB, free: 135.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00072/1.151, allocations: 9.422 kB / 0.7528 GB, free: 135.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001289/1.153, allocations: 49.02 kB / 0.7529 GB, free: 135.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/1.153, allocations: 93.7 kB / 0.753 GB, free: 135.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/1.153, allocations: 68.48 kB / 0.753 GB, free: 135.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003538/1.156, allocations: 3.252 MB / 0.7562 GB, free: 135.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0027/1.159, allocations: 1.136 MB / 0.7573 GB, free: 135.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001553/1.161, allocations: 1.303 MB / 0.7586 GB, free: 135.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001495/1.162, allocations: 1.258 MB / 0.7598 GB, free: 134.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/1.162, allocations: 3 kB / 0.7598 GB, free: 134.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007221/1.163, allocations: 0.7091 MB / 0.7605 GB, free: 134.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/1.165, allocations: 0.921 MB / 0.7614 GB, free: 134.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008608/1.174, allocations: 6.044 MB / 0.7673 GB, free: 132.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00188/1.176, allocations: 3.049 MB / 0.7703 GB, free: 132.1 MB / 442.7 MB Notification: Performance of SimCode: time 5.51e-07/1.176, allocations: 0 / 0.7703 GB, free: 132.1 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)