Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter",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.001619/0.00162, allocations: 178.6 kB / 8.474 MB, free: 1.871 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.065/1.065, allocations: 205.2 MB / 214.1 MB, free: 1.895 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.0008112/0.0008112, allocations: 79.39 kB / 262.1 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1367/0.1376, allocations: 52.97 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07166/0.2092, allocations: 47.58 MB / 362.6 MB, free: 7.328 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2245/0.4338, allocations: 101.4 MB / 464.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.434, allocations: 70.41 kB / 464.1 MB, free: 10.25 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.3029/0.7369, allocations: 87.16 MB / 0.5384 GB, free: 97.28 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.737, allocations: 9.625 kB / 0.5384 GB, free: 97.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.7372, allocations: 193.8 kB / 0.5386 GB, free: 97.18 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/0.7388, allocations: 1.224 MB / 0.5398 GB, free: 96.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.7389, allocations: 9.75 kB / 0.5398 GB, free: 96.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.814e-05/0.7389, allocations: 15.78 kB / 0.5398 GB, free: 96.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005017/0.7395, allocations: 362.2 kB / 0.5401 GB, free: 96.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000505/0.74, allocations: 412.4 kB / 0.5405 GB, free: 96.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.74, allocations: 3.75 kB / 0.5405 GB, free: 96.67 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.33e-05/0.74, allocations: 0 / 0.5405 GB, free: 96.67 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.7401, allocations: 17.31 kB / 0.5406 GB, free: 96.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/0.7427, allocations: 1.598 MB / 0.5421 GB, free: 96.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003327/0.743, allocations: 258.9 kB / 0.5424 GB, free: 96.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000355/0.7434, allocations: 343.6 kB / 0.5427 GB, free: 96.29 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.7569, allocations: 18.12 MB / 0.5604 GB, free: 82.96 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.7572, allocations: 186.9 kB / 0.5606 GB, free: 82.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 1.923e-06/0.7572, allocations: 0 / 0.5606 GB, free: 82.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007322/0.7579, allocations: 474.6 kB / 0.561 GB, free: 82.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.758, allocations: 161.9 kB / 0.5612 GB, free: 82.58 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.7593, allocations: 1.116 MB / 0.5623 GB, free: 82.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.7594, allocations: 25.7 kB / 0.5623 GB, free: 82.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.7596, allocations: 360.5 kB / 0.5626 GB, free: 82.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.583e-05/0.7596, allocations: 101.2 kB / 0.5627 GB, free: 82.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.7597, allocations: 0 / 0.5627 GB, free: 82.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.731e-05/0.7597, allocations: 322.1 kB / 0.563 GB, free: 81.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.7599, allocations: 104.8 kB / 0.5631 GB, free: 81.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.7601, allocations: 315.4 kB / 0.5634 GB, free: 81.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.7604, allocations: 144.6 kB / 0.5636 GB, free: 81.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.7604, allocations: 3.844 kB / 0.5636 GB, free: 81.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007978/0.7612, allocations: 0.6072 MB / 0.5642 GB, free: 81.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.7612, allocations: 10.78 kB / 0.5642 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.139e-05/0.7613, allocations: 41.5 kB / 0.5642 GB, free: 81.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/0.7616, allocations: 126.1 kB / 0.5643 GB, free: 81.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004125/0.762, allocations: 123.9 kB / 0.5644 GB, free: 81.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005278/0.7625, allocations: 0.7107 MB / 0.5651 GB, free: 80.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006353/0.7632, allocations: 68.25 kB / 0.5652 GB, free: 80.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.635e-05/0.7632, allocations: 36.75 kB / 0.5652 GB, free: 80.86 MB / 410.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.0001167/0.7634, allocations: 137 kB / 0.5654 GB, free: 80.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.7635, allocations: 187.9 kB / 0.5656 GB, free: 80.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.7654, allocations: 0.7822 MB / 0.5663 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.7654, allocations: 3.938 kB / 0.5663 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7655, allocations: 0 / 0.5663 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.7655, allocations: 3.938 kB / 0.5663 GB, free: 80.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.7669, allocations: 1.17 MB / 0.5675 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.105e-05/0.767, allocations: 34.75 kB / 0.5675 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002742/0.7673, allocations: 63.92 kB / 0.5676 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000214/0.7675, allocations: 121 kB / 0.5677 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.7676, allocations: 18.66 kB / 0.5677 GB, free: 80.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004862/0.7681, allocations: 0.6935 MB / 0.5684 GB, free: 79.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.7681, allocations: 3.312 kB / 0.5684 GB, free: 79.73 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006244/0.7687, allocations: 0.6124 MB / 0.569 GB, free: 79.41 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007196/0.7694, allocations: 1.044 MB / 0.57 GB, free: 78.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003453/0.7698, allocations: 283.9 kB / 0.5703 GB, free: 78.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/0.77, allocations: 8.281 kB / 0.5703 GB, free: 78.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.7706, allocations: 41.38 kB / 0.5703 GB, free: 78.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.7707, allocations: 44.94 kB / 0.5704 GB, free: 78.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.7707, allocations: 20.44 kB / 0.5704 GB, free: 78.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0009002/0.7716, allocations: 0.8312 MB / 0.5712 GB, free: 78.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001513/0.7731, allocations: 370.5 kB / 0.5715 GB, free: 78.35 MB / 410.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.001028/0.7742, allocations: 0.7105 MB / 0.5722 GB, free: 78.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006354/0.7748, allocations: 388.5 kB / 0.5726 GB, free: 78.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7748, allocations: 0 / 0.5726 GB, free: 78.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003362/0.7752, allocations: 223.6 kB / 0.5728 GB, free: 78.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000691/0.7759, allocations: 231.6 kB / 0.573 GB, free: 78.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.7784, allocations: 1.524 MB / 0.5745 GB, free: 77.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005674/0.779, allocations: 1.274 MB / 0.5758 GB, free: 76.84 MB / 410.7 MB Notification: Performance of SimCode: time 2.7e-07/0.779, allocations: 3.938 kB / 0.5758 GB, free: 76.84 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)