Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.002236/0.002236, allocations: 189.2 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.301/1.301, allocations: 194.2 MB / 202.8 MB, free: 8.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001845/0.001845, allocations: 125.4 kB / 247.8 MB, free: 6.289 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.055e-06/8.185e-06, allocations: 4 kB / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08047/0.08049, allocations: 44.5 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2214/0.3019, allocations: 96.72 MB / 438.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.3022, allocations: 74.89 kB / 438.9 MB, free: 14.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1897/0.492, allocations: 85.37 MB / 0.5119 GB, free: 208 kB / 394.7 MB Notification: Performance of Transformations before backend: time 4.106e-05/0.4921, allocations: 20 kB / 0.512 GB, free: 188 kB / 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.1118/0.6038, allocations: 1.63 MB / 0.5135 GB, free: 122.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.6039, allocations: 14.23 kB / 0.5136 GB, free: 122.7 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002571/0.6042, allocations: 200.8 kB / 0.5138 GB, free: 122.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.6058, allocations: 1.215 MB / 0.5149 GB, free: 122.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.6058, allocations: 11.59 kB / 0.5149 GB, free: 122.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.532e-05/0.6059, allocations: 20.28 kB / 0.515 GB, free: 122.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005428/0.6065, allocations: 362.4 kB / 0.5153 GB, free: 122.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.607, allocations: 405.7 kB / 0.5157 GB, free: 122.2 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.607, allocations: 3.906 kB / 0.5157 GB, free: 122.2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.487e-05/0.6071, allocations: 3.75 kB / 0.5157 GB, free: 122.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.6071, allocations: 15.95 kB / 0.5157 GB, free: 122.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.6099, allocations: 1.616 MB / 0.5173 GB, free: 121.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.6103, allocations: 251.7 kB / 0.5175 GB, free: 121.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.6107, allocations: 338.3 kB / 0.5179 GB, free: 121.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01481/0.6255, allocations: 18.11 MB / 0.5356 GB, free: 108.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002668/0.6258, allocations: 189.8 kB / 0.5357 GB, free: 108.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 2.194e-06/0.6258, allocations: 0 / 0.5357 GB, free: 108.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008513/0.6267, allocations: 470.5 kB / 0.5362 GB, free: 108.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.6267, allocations: 169 kB / 0.5363 GB, free: 108.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.628, allocations: 1.113 MB / 0.5374 GB, free: 108 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.574e-05/0.628, allocations: 29.36 kB / 0.5375 GB, free: 108 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.6282, allocations: 358 kB / 0.5378 GB, free: 107.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.304e-05/0.6283, allocations: 95.41 kB / 0.5379 GB, free: 107.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.762e-05/0.6283, allocations: 0 / 0.5379 GB, free: 107.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.855e-05/0.6284, allocations: 329.2 kB / 0.5382 GB, free: 107.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.6285, allocations: 100.2 kB / 0.5383 GB, free: 107.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.6288, allocations: 314.5 kB / 0.5386 GB, free: 107.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.629, allocations: 145.9 kB / 0.5387 GB, free: 107.2 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.629, allocations: 7.906 kB / 0.5387 GB, free: 107.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008247/0.6299, allocations: 0.5985 MB / 0.5393 GB, free: 107.1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.6299, allocations: 2.812 kB / 0.5393 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.568e-05/0.63, allocations: 44.05 kB / 0.5394 GB, free: 107.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/0.6303, allocations: 138.6 kB / 0.5395 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004403/0.6307, allocations: 119.2 kB / 0.5396 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005466/0.6313, allocations: 0.7005 MB / 0.5403 GB, free: 106.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007078/0.632, allocations: 81.95 kB / 0.5404 GB, free: 106.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.6321, allocations: 38.06 kB / 0.5404 GB, free: 106.5 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.0001197/0.6322, allocations: 132.7 kB / 0.5405 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.6323, allocations: 189.1 kB / 0.5407 GB, free: 106.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002086/0.6344, allocations: 0.7781 MB / 0.5415 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.6345, allocations: 6.406 kB / 0.5415 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6345, allocations: 3.156 kB / 0.5415 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.6345, allocations: 0 / 0.5415 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.6361, allocations: 1.163 MB / 0.5426 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-05/0.6361, allocations: 36.5 kB / 0.5427 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/0.6364, allocations: 61.89 kB / 0.5427 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000232/0.6367, allocations: 131.1 kB / 0.5428 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.024e-05/0.6367, allocations: 13.56 kB / 0.5429 GB, free: 105.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005328/0.6373, allocations: 0.698 MB / 0.5435 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6373, allocations: 6.875 kB / 0.5436 GB, free: 105.4 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006698/0.638, allocations: 0.6179 MB / 0.5442 GB, free: 105.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000382/0.6384, allocations: 278.2 kB / 0.5444 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002148/0.6386, allocations: 7.156 kB / 0.5444 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000513/0.6391, allocations: 41.45 kB / 0.5445 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.6392, allocations: 48.78 kB / 0.5445 GB, free: 104.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.405e-05/0.6393, allocations: 23.34 kB / 0.5445 GB, free: 104.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008915/0.6402, allocations: 0.8331 MB / 0.5453 GB, free: 104.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008959/0.6411, allocations: 344.7 kB / 0.5457 GB, free: 104.7 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.0008748/0.642, allocations: 0.7245 MB / 0.5464 GB, free: 104.6 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006795/0.6427, allocations: 383.6 kB / 0.5467 GB, free: 104.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.6427, allocations: 0 / 0.5467 GB, free: 104.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003627/0.643, allocations: 221.8 kB / 0.547 GB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007629/0.6438, allocations: 228.1 kB / 0.5472 GB, free: 104.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.6465, allocations: 1.536 MB / 0.5487 GB, free: 104 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006062/0.6471, allocations: 1.267 MB / 0.5499 GB, free: 103.3 MB / 394.7 MB Notification: Performance of SimCode: time 7.32e-07/0.6471, allocations: 1.875 kB / 0.5499 GB, free: 103.3 MB / 394.7 MB Notification: Performance of Templates: time 0.02798/0.6751, allocations: 16.99 MB / 0.5665 GB, free: 102.2 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)