Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 182 kB / 8.129 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.108/1.108, allocations: 221.4 MB / 229.9 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008715/0.0008714, allocations: 104.8 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09269/0.09359, allocations: 55.8 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.2823, allocations: 50.4 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.3867, allocations: 103.5 MB / 490.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.387, allocations: 71.91 kB / 490.5 MB, free: 15.19 MB / 378.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.3832/0.7702, allocations: 139.2 MB / 0.615 GB, free: 7.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.7703, allocations: 12 kB / 0.615 GB, free: 7.219 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006611/0.7709, allocations: 395.1 kB / 0.6154 GB, free: 6.828 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004225/0.7752, allocations: 2.363 MB / 0.6177 GB, free: 4.391 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.7752, allocations: 20 kB / 0.6177 GB, free: 4.371 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002124/0.7754, allocations: 32 kB / 0.6178 GB, free: 4.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001197/0.7766, allocations: 0.6896 MB / 0.6184 GB, free: 3.652 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.7778, allocations: 0.7148 MB / 0.6191 GB, free: 2.906 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.7778, allocations: 8 kB / 0.6191 GB, free: 2.898 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.436e-05/0.7779, allocations: 7.984 kB / 0.6192 GB, free: 2.891 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.778, allocations: 19.98 kB / 0.6192 GB, free: 2.871 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005675/0.7836, allocations: 3.088 MB / 0.6222 GB, free: 15.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.7841, allocations: 355 kB / 0.6225 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006568/0.7848, allocations: 0.5376 MB / 0.6231 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.156/0.9408, allocations: 35.92 MB / 0.6581 GB, free: 110.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003908/0.9412, allocations: 299.3 kB / 0.6584 GB, free: 110.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.896e-06/0.9413, allocations: 0 / 0.6584 GB, free: 110.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.00125/0.9425, allocations: 0.7654 MB / 0.6592 GB, free: 110.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.108e-05/0.9426, allocations: 273.3 kB / 0.6594 GB, free: 109.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/0.9452, allocations: 2.302 MB / 0.6617 GB, free: 109.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.9453, allocations: 28.27 kB / 0.6617 GB, free: 109.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/0.9457, allocations: 0.6492 MB / 0.6623 GB, free: 109.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.9458, allocations: 165 kB / 0.6625 GB, free: 109.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.297e-05/0.9458, allocations: 0 / 0.6625 GB, free: 109.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.072e-05/0.9459, allocations: 336.7 kB / 0.6628 GB, free: 108.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.9462, allocations: 177.8 kB / 0.663 GB, free: 108.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000404/0.9466, allocations: 0.5728 MB / 0.6635 GB, free: 108.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004187/0.947, allocations: 266 kB / 0.6638 GB, free: 108.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.947, allocations: 3.125 kB / 0.6638 GB, free: 108.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001326/0.9483, allocations: 1.029 MB / 0.6648 GB, free: 108.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.9484, allocations: 9.266 kB / 0.6648 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.9485, allocations: 82.08 kB / 0.6649 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.559e-05/0.9485, allocations: 18.94 kB / 0.6649 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007272/0.9492, allocations: 218.1 kB / 0.6651 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.9493, allocations: 22.34 kB / 0.6651 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.9504, allocations: 119.2 kB / 0.6653 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.646e-05/0.9505, allocations: 64.33 kB / 0.6653 GB, free: 108.1 MB / 426.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.0001612/0.9507, allocations: 144.7 kB / 0.6655 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000263/0.951, allocations: 379.5 kB / 0.6658 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003567/0.9545, allocations: 1.369 MB / 0.6672 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.9546, allocations: 7.812 kB / 0.6672 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.9546, allocations: 0 / 0.6672 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.9546, allocations: 0 / 0.6672 GB, free: 107.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002841/0.9574, allocations: 2.001 MB / 0.6691 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.676e-05/0.9575, allocations: 74.42 kB / 0.6692 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.9581, allocations: 105.5 kB / 0.6693 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.9581, allocations: 0 / 0.6693 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.9581, allocations: 34.25 kB / 0.6693 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.9581, allocations: 0 / 0.6693 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.9582, allocations: 7.531 kB / 0.6693 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00126/0.9594, allocations: 1.177 MB / 0.6705 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00153/0.961, allocations: 1.828 MB / 0.6723 GB, free: 106.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007183/0.9617, allocations: 0.5503 MB / 0.6728 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003787/0.9621, allocations: 3.656 kB / 0.6728 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007699/0.9629, allocations: 48.34 kB / 0.6728 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001307/0.963, allocations: 66.03 kB / 0.6729 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.453e-05/0.9631, allocations: 36.17 kB / 0.6729 GB, free: 105.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001809/0.9649, allocations: 1.709 MB / 0.6746 GB, free: 105.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001794/0.9667, allocations: 0.6234 MB / 0.6752 GB, free: 105.5 MB / 426.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.00096/0.9676, allocations: 0.9254 MB / 0.6761 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000879/0.9685, allocations: 0.6659 MB / 0.6768 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.9686, allocations: 0 / 0.6768 GB, free: 105.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.969, allocations: 395.2 kB / 0.6772 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.9711, allocations: 0.5746 MB / 0.6777 GB, free: 105.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005122/0.9762, allocations: 3.125 MB / 0.6808 GB, free: 104.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/0.9774, allocations: 1.896 MB / 0.6826 GB, free: 103.5 MB / 426.7 MB Notification: Performance of SimCode: time 7.32e-07/0.9774, allocations: 0 / 0.6826 GB, free: 103.5 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1)