Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001049/0.001049, allocations: 205.5 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.156/1.156, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008888/0.0008889, allocations: 90.66 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09284/0.09376, allocations: 56.9 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0852/0.179, allocations: 51.49 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2249/0.4039, allocations: 103.9 MB / 498.6 MB, free: 5.383 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.4042, allocations: 74.47 kB / 498.7 MB, free: 5.348 MB / 362.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.3231/0.7273, allocations: 97.16 MB / 0.5819 GB, free: 83.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.7273, allocations: 11.22 kB / 0.5819 GB, free: 83.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.7275, allocations: 193.1 kB / 0.5821 GB, free: 83.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001317/0.7288, allocations: 1.209 MB / 0.5833 GB, free: 82.72 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.7288, allocations: 9.781 kB / 0.5833 GB, free: 82.72 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.396e-05/0.7289, allocations: 26.8 kB / 0.5833 GB, free: 82.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004787/0.7294, allocations: 361.9 kB / 0.5837 GB, free: 82.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004903/0.7299, allocations: 403.2 kB / 0.584 GB, free: 82.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.7299, allocations: 6.094 kB / 0.5841 GB, free: 82.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.7299, allocations: 0 / 0.5841 GB, free: 82.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.73, allocations: 14.28 kB / 0.5841 GB, free: 82.64 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.7321, allocations: 1.611 MB / 0.5856 GB, free: 82.29 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003009/0.7325, allocations: 252.3 kB / 0.5859 GB, free: 82.27 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003302/0.7328, allocations: 341.9 kB / 0.5862 GB, free: 82.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01253/0.7453, allocations: 18.39 MB / 0.6042 GB, free: 68.55 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000244/0.7456, allocations: 194 kB / 0.6043 GB, free: 68.51 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 1.934e-06/0.7456, allocations: 3.938 kB / 0.6043 GB, free: 68.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007042/0.7463, allocations: 464.2 kB / 0.6048 GB, free: 68.37 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.7464, allocations: 168.3 kB / 0.605 GB, free: 68.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001039/0.7474, allocations: 1.107 MB / 0.606 GB, free: 67.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.111e-05/0.7475, allocations: 29.14 kB / 0.6061 GB, free: 67.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.7476, allocations: 357.5 kB / 0.6064 GB, free: 67.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.533e-05/0.7477, allocations: 89.7 kB / 0.6065 GB, free: 67.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.7477, allocations: 2.531 kB / 0.6065 GB, free: 67.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 4.106e-05/0.7478, allocations: 327.1 kB / 0.6068 GB, free: 67.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.7479, allocations: 96.75 kB / 0.6069 GB, free: 67.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.7481, allocations: 321.3 kB / 0.6072 GB, free: 67.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002183/0.7484, allocations: 150.3 kB / 0.6073 GB, free: 67.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.7484, allocations: 2.438 kB / 0.6073 GB, free: 67.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007513/0.7491, allocations: 0.5955 MB / 0.6079 GB, free: 67.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.7491, allocations: 3.875 kB / 0.6079 GB, free: 67.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.675e-05/0.7492, allocations: 41.25 kB / 0.608 GB, free: 67.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002685/0.7495, allocations: 132.9 kB / 0.6081 GB, free: 67.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004246/0.7499, allocations: 125.9 kB / 0.6082 GB, free: 67.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005001/0.7504, allocations: 0.6987 MB / 0.6089 GB, free: 66.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000574/0.751, allocations: 84.08 kB / 0.609 GB, free: 66.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.523e-05/0.7511, allocations: 36.59 kB / 0.609 GB, free: 66.46 MB / 442.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 9.93e-05/0.7512, allocations: 129.5 kB / 0.6091 GB, free: 66.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001261/0.7513, allocations: 189 kB / 0.6093 GB, free: 66.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001844/0.7532, allocations: 0.7779 MB / 0.6101 GB, free: 66.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.7532, allocations: 5.656 kB / 0.6101 GB, free: 66.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.7532, allocations: 0 / 0.6101 GB, free: 66.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.7532, allocations: 2.766 kB / 0.6101 GB, free: 66.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.7545, allocations: 1.16 MB / 0.6112 GB, free: 65.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-05/0.7546, allocations: 32.28 kB / 0.6112 GB, free: 65.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.7548, allocations: 66.47 kB / 0.6113 GB, free: 65.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.755, allocations: 123.3 kB / 0.6114 GB, free: 65.86 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/0.7551, allocations: 13.34 kB / 0.6114 GB, free: 65.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004581/0.7556, allocations: 0.6956 MB / 0.6121 GB, free: 65.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.7556, allocations: 1.125 kB / 0.6121 GB, free: 65.34 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005785/0.7562, allocations: 0.6194 MB / 0.6127 GB, free: 65.03 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006306/0.7568, allocations: 1.032 MB / 0.6137 GB, free: 64.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002785/0.7571, allocations: 287.8 kB / 0.614 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.7573, allocations: 2.625 kB / 0.614 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004965/0.7578, allocations: 44.16 kB / 0.6141 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.518e-05/0.7579, allocations: 40.03 kB / 0.6141 GB, free: 64.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.272e-05/0.7579, allocations: 24.91 kB / 0.6141 GB, free: 64.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007459/0.7587, allocations: 0.8318 MB / 0.6149 GB, free: 64.01 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001348/0.76, allocations: 356.1 kB / 0.6153 GB, free: 63.97 MB / 442.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.0007062/0.7608, allocations: 0.7075 MB / 0.616 GB, free: 63.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000554/0.7613, allocations: 396.6 kB / 0.6163 GB, free: 63.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.7613, allocations: 1.594 kB / 0.6163 GB, free: 63.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003185/0.7617, allocations: 227.2 kB / 0.6166 GB, free: 63.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000956/0.7626, allocations: 286.8 kB / 0.6168 GB, free: 63.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.7648, allocations: 1.519 MB / 0.6183 GB, free: 63.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005223/0.7653, allocations: 1.255 MB / 0.6195 GB, free: 62.48 MB / 442.7 MB Notification: Performance of SimCode: time 2.91e-07/0.7653, allocations: 2.406 kB / 0.6195 GB, free: 62.48 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)