Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters") [: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.1+maint.om/package.mo): time 0.004754/0.004754, allocations: 173.2 kB / 7.449 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.254/1.254, allocations: 170.6 MB / 178.4 MB, free: 15.79 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001784/0.001784, allocations: 115.8 kB / 217.7 MB, free: 8.559 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.012e-06/6.052e-06, allocations: 4 kB / 261.7 MB, free: 26.7 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07003/0.07004, allocations: 38.76 MB / 300.5 MB, free: 3.949 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2855/0.3556, allocations: 93.38 MB / 393.9 MB, free: 7.352 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.3559, allocations: 79.5 kB / 394 MB, free: 7.309 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.6499/1.006, allocations: 190.9 MB / 0.5711 GB, free: 17.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002116/1.006, allocations: 88 kB / 0.5712 GB, free: 17.35 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01239/1.019, allocations: 4.75 MB / 0.5758 GB, free: 12.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/1.019, allocations: 8.031 kB / 0.5758 GB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/1.021, allocations: 0.7526 MB / 0.5766 GB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01364/1.035, allocations: 4.52 MB / 0.581 GB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001435/1.035, allocations: 28 kB / 0.581 GB, free: 7.133 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/1.036, allocations: 67.91 kB / 0.5811 GB, free: 7.066 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004395/1.04, allocations: 1.309 MB / 0.5824 GB, free: 5.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/1.044, allocations: 1.332 MB / 0.5837 GB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.338e-05/1.044, allocations: 0 / 0.5837 GB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/1.045, allocations: 0 / 0.5837 GB, free: 4.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.267e-05/1.045, allocations: 39.97 kB / 0.5837 GB, free: 4.316 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2097/1.255, allocations: 5.692 MB / 0.5893 GB, free: 70.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001729/1.256, allocations: 0.6514 MB / 0.5899 GB, free: 70.12 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002435/1.259, allocations: 1.04 MB / 0.5909 GB, free: 70.11 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0727/1.332, allocations: 71.62 MB / 0.6609 GB, free: 33.79 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006176/1.332, allocations: 487.5 kB / 0.6613 GB, free: 33.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=85): time 2.895e-06/1.332, allocations: 0 / 0.6613 GB, free: 33.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=85): time 0.002503/1.335, allocations: 1.426 MB / 0.6627 GB, free: 33.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002269/1.335, allocations: 479.9 kB / 0.6632 GB, free: 32.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006391/1.341, allocations: 4.407 MB / 0.6675 GB, free: 32.34 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001778/1.342, allocations: 33.14 kB / 0.6675 GB, free: 32.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008322/1.342, allocations: 1.175 MB / 0.6687 GB, free: 31.96 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/1.343, allocations: 286 kB / 0.6689 GB, free: 31.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.014e-05/1.343, allocations: 2.812 kB / 0.6689 GB, free: 31.81 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001911/1.343, allocations: 362.1 kB / 0.6693 GB, free: 31.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004782/1.343, allocations: 320.1 kB / 0.6696 GB, free: 31.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000801/1.344, allocations: 1.083 MB / 0.6706 GB, free: 30.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007902/1.345, allocations: 491.1 kB / 0.6711 GB, free: 30.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/1.345, allocations: 7 kB / 0.6711 GB, free: 30.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002894/1.348, allocations: 1.925 MB / 0.673 GB, free: 30.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/1.348, allocations: 3.594 kB / 0.673 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/1.348, allocations: 161.3 kB / 0.6732 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.225e-05/1.348, allocations: 44.75 kB / 0.6732 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/1.349, allocations: 379.3 kB / 0.6736 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-05/1.349, allocations: 49.69 kB / 0.6736 GB, free: 30.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/1.352, allocations: 177.6 kB / 0.6738 GB, free: 30.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001763/1.352, allocations: 127 kB / 0.6739 GB, free: 30.06 MB / 362.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.0002789/1.352, allocations: 174.2 kB / 0.6741 GB, free: 29.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006594/1.353, allocations: 0.7234 MB / 0.6748 GB, free: 29.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007651/1.361, allocations: 2.624 MB / 0.6773 GB, free: 29.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/1.361, allocations: 8.531 kB / 0.6773 GB, free: 29.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/1.361, allocations: 0 / 0.6773 GB, free: 29.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/1.361, allocations: 3.328 kB / 0.6773 GB, free: 29.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006561/1.367, allocations: 3.556 MB / 0.6808 GB, free: 29.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001949/1.367, allocations: 142.3 kB / 0.6809 GB, free: 29.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007895/1.368, allocations: 171.8 kB / 0.6811 GB, free: 29.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.178e-06/1.368, allocations: 3.844 kB / 0.6811 GB, free: 29.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.85e-05/1.368, allocations: 55.41 kB / 0.6812 GB, free: 29.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/1.368, allocations: 5.844 kB / 0.6812 GB, free: 29.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.368, allocations: 0 / 0.6812 GB, free: 29.05 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002699/1.371, allocations: 2.058 MB / 0.6832 GB, free: 28.36 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.373, allocations: 0.9394 MB / 0.6841 GB, free: 27.83 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008441/1.374, allocations: 8.906 kB / 0.6841 GB, free: 27.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/1.375, allocations: 47.81 kB / 0.6842 GB, free: 27.83 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/1.375, allocations: 96.77 kB / 0.6842 GB, free: 27.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/1.375, allocations: 65.22 kB / 0.6843 GB, free: 27.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.004807/1.38, allocations: 3.256 MB / 0.6875 GB, free: 27.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003585/1.384, allocations: 1.116 MB / 0.6886 GB, free: 27.56 MB / 362.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.002128/1.386, allocations: 1.316 MB / 0.6899 GB, free: 27.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001913/1.388, allocations: 1.258 MB / 0.6911 GB, free: 27.19 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/1.388, allocations: 1.094 kB / 0.6911 GB, free: 27.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008904/1.389, allocations: 0.7142 MB / 0.6918 GB, free: 26.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/1.393, allocations: 0.9246 MB / 0.6927 GB, free: 26.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.403, allocations: 6.025 MB / 0.6986 GB, free: 25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002249/1.405, allocations: 3.032 MB / 0.7015 GB, free: 22.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/1.405, allocations: 0 / 0.7015 GB, free: 22.82 MB / 362.7 MB Notification: Performance of Templates: time 0.2953/1.701, allocations: 52.46 MB / 0.7528 GB, free: 82.28 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)