Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="empty",numberOfIntervals=3998,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009691/0.000969, allocations: 169.4 kB / 12.72 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.2/1.2, allocations: 170.6 MB / 183.8 MB, free: 11.49 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.001575/0.001575, allocations: 107.5 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.567e-05/2.57e-05, allocations: 8 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06867/0.06871, allocations: 38.76 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2891/0.3579, allocations: 93.64 MB / 401.3 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002165/0.3582, allocations: 70.28 kB / 401.3 MB, free: 14.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3471/0.7053, allocations: 90.87 MB / 492.2 MB, free: 81.7 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.7053, allocations: 0 / 492.2 MB, free: 81.7 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.7054, allocations: 23.09 kB / 492.2 MB, free: 81.7 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.002384/0.7078, allocations: 1.611 MB / 493.8 MB, free: 80.76 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.7078, allocations: 7.938 kB / 493.9 MB, free: 80.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.708, allocations: 195 kB / 494 MB, free: 80.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.7095, allocations: 1.221 MB / 495.3 MB, free: 80.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.094e-05/0.7095, allocations: 21.25 kB / 495.3 MB, free: 80.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.401e-05/0.7096, allocations: 33.84 kB / 495.3 MB, free: 80.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005779/0.7102, allocations: 439.8 kB / 495.7 MB, free: 80.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.7102, allocations: 0 / 495.7 MB, free: 80.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.393e-05/0.7103, allocations: 13.28 kB / 495.8 MB, free: 80.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.7103, allocations: 17.11 kB / 495.8 MB, free: 80.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004749/0.7108, allocations: 376.1 kB / 496.1 MB, free: 80.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.7131, allocations: 1.65 MB / 497.8 MB, free: 79.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003699/0.7135, allocations: 281.1 kB / 498.1 MB, free: 79.69 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.7139, allocations: 372.6 kB / 498.4 MB, free: 79.67 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01498/0.7289, allocations: 18.18 MB / 0.5045 GB, free: 65.87 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000341/0.7293, allocations: 203.7 kB / 0.5047 GB, free: 65.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 5.22e-06/0.7293, allocations: 14.33 kB / 0.5047 GB, free: 65.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007328/0.7301, allocations: 495 kB / 0.5052 GB, free: 65.56 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.7301, allocations: 169.4 kB / 0.5053 GB, free: 65.37 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.7314, allocations: 1.203 MB / 0.5065 GB, free: 64.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.7315, allocations: 32.58 kB / 0.5066 GB, free: 64.83 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000461/0.732, allocations: 0.7263 MB / 0.5073 GB, free: 64.24 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.809e-05/0.732, allocations: 95.88 kB / 0.5074 GB, free: 64.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.7321, allocations: 13.47 kB / 0.5074 GB, free: 64.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.568e-05/0.7321, allocations: 329.6 kB / 0.5077 GB, free: 63.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000166/0.7323, allocations: 109.3 kB / 0.5078 GB, free: 63.8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.7325, allocations: 333.3 kB / 0.5081 GB, free: 63.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.7328, allocations: 153 kB / 0.5082 GB, free: 63.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.7328, allocations: 3.875 kB / 0.5083 GB, free: 63.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007451/0.7335, allocations: 0.6526 MB / 0.5089 GB, free: 63.14 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.7336, allocations: 7.688 kB / 0.5089 GB, free: 63.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.927e-05/0.7336, allocations: 38.38 kB / 0.5089 GB, free: 63.14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002823/0.7339, allocations: 132.2 kB / 0.5091 GB, free: 63.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004211/0.7343, allocations: 119.4 kB / 0.5092 GB, free: 63.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004445/0.7348, allocations: 0.6823 MB / 0.5098 GB, free: 62.53 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006567/0.7355, allocations: 89.84 kB / 0.5099 GB, free: 62.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.084e-05/0.7355, allocations: 35.09 kB / 0.51 GB, free: 62.48 MB / 346.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.0001054/0.7356, allocations: 143.1 kB / 0.5101 GB, free: 62.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.7358, allocations: 188.5 kB / 0.5103 GB, free: 62.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.7371, allocations: 0.6923 MB / 0.511 GB, free: 61.97 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.7371, allocations: 3.625 kB / 0.511 GB, free: 61.97 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.7371, allocations: 0 / 0.511 GB, free: 61.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.7372, allocations: 0 / 0.511 GB, free: 61.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001461/0.7386, allocations: 1.232 MB / 0.5122 GB, free: 61.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.805e-05/0.7387, allocations: 37.02 kB / 0.5122 GB, free: 61.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002536/0.7389, allocations: 62.17 kB / 0.5123 GB, free: 61.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002002/0.7391, allocations: 132.8 kB / 0.5124 GB, free: 61.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.7392, allocations: 13.89 kB / 0.5124 GB, free: 61.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003896/0.7396, allocations: 0.6712 MB / 0.513 GB, free: 60.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.7396, allocations: 0 / 0.513 GB, free: 60.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006066/0.7402, allocations: 0.641 MB / 0.5137 GB, free: 60.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003427/0.7406, allocations: 290.3 kB / 0.514 GB, free: 60.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001388/0.7407, allocations: 11.55 kB / 0.514 GB, free: 60.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.7412, allocations: 41.92 kB / 0.514 GB, free: 60.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.7413, allocations: 37.62 kB / 0.514 GB, free: 60.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.736e-05/0.7413, allocations: 20.39 kB / 0.5141 GB, free: 60.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008694/0.7422, allocations: 0.9366 MB / 0.515 GB, free: 59.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7422, allocations: 0 / 0.515 GB, free: 59.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008738/0.7431, allocations: 363.5 kB / 0.5153 GB, free: 59.62 MB / 346.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.0007487/0.7438, allocations: 0.6225 MB / 0.5159 GB, free: 59.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000615/0.7445, allocations: 430 kB / 0.5163 GB, free: 59.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.7445, allocations: 3.938 kB / 0.5163 GB, free: 59.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003232/0.7448, allocations: 243.5 kB / 0.5166 GB, free: 59.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006629/0.7455, allocations: 241.1 kB / 0.5168 GB, free: 59.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.7475, allocations: 1.522 MB / 0.5183 GB, free: 58.39 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.7479, allocations: 1.19 MB / 0.5195 GB, free: 57.65 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005291/0.7485, allocations: 172.7 kB / 0.5196 GB, free: 57.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.7486, allocations: 81.94 kB / 0.5197 GB, free: 57.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7486, allocations: 0 / 0.5197 GB, free: 57.59 MB / 346.7 MB Notification: Performance of Templates: time 0.02595/0.7746, allocations: 19.99 MB / 0.5392 GB, free: 42.75 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1)