Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001222/0.001221, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.201/1.201, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001567/0.001567, allocations: 109.6 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002757, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0733/0.07359, allocations: 44.49 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2228/0.2965, allocations: 98.02 MB / 453.1 MB, free: 7.766 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.2967, allocations: 77.72 kB / 453.1 MB, free: 7.727 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4851/0.7819, allocations: 193.4 MB / 0.6314 GB, free: 28.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.7819, allocations: 4 kB / 0.6314 GB, free: 28.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001218/0.782, allocations: 84 kB / 0.6315 GB, free: 28.32 MB / 394.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.00954/0.7916, allocations: 6.062 MB / 0.6374 GB, free: 22.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.7916, allocations: 15.97 kB / 0.6374 GB, free: 22.16 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007717/0.7924, allocations: 0.7487 MB / 0.6382 GB, free: 21.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007047/0.7995, allocations: 4.559 MB / 0.6426 GB, free: 16.76 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.343e-05/0.7995, allocations: 70 kB / 0.6427 GB, free: 16.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000194/0.7997, allocations: 99.89 kB / 0.6428 GB, free: 16.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002017/0.8017, allocations: 1.538 MB / 0.6443 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.8018, allocations: 0 / 0.6443 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.8019, allocations: 36 kB / 0.6443 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.8019, allocations: 43.95 kB / 0.6443 GB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001992/0.8039, allocations: 1.519 MB / 0.6458 GB, free: 13.39 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007726/0.8117, allocations: 5.863 MB / 0.6516 GB, free: 7.434 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.813, allocations: 1.029 MB / 0.6526 GB, free: 6.391 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2065/1.02, allocations: 71.58 MB / 0.7225 GB, free: 31.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009262/1.021, allocations: 0.5759 MB / 0.723 GB, free: 31.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=85): time 2.836e-06/1.021, allocations: 3.719 kB / 0.723 GB, free: 31.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=85): time 0.003327/1.024, allocations: 2.587 MB / 0.7255 GB, free: 29.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001071/1.024, allocations: 481 kB / 0.726 GB, free: 29.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00563/1.03, allocations: 4.864 MB / 0.7308 GB, free: 28.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.58e-05/1.03, allocations: 45.58 kB / 0.7308 GB, free: 28.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001738/1.031, allocations: 2.933 MB / 0.7337 GB, free: 28.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001864/1.032, allocations: 297 kB / 0.7339 GB, free: 28.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-05/1.032, allocations: 32.06 kB / 0.734 GB, free: 28.37 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.052e-05/1.032, allocations: 366.4 kB / 0.7343 GB, free: 28.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007029/1.033, allocations: 420.8 kB / 0.7347 GB, free: 28.06 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009326/1.033, allocations: 1.204 MB / 0.7359 GB, free: 27.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008125/1.034, allocations: 0.5818 MB / 0.7365 GB, free: 27.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.118e-06/1.034, allocations: 6.844 kB / 0.7365 GB, free: 27.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002696/1.037, allocations: 2.248 MB / 0.7387 GB, free: 26.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/1.037, allocations: 15.47 kB / 0.7387 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001517/1.037, allocations: 164.2 kB / 0.7388 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.612e-05/1.037, allocations: 36.41 kB / 0.7389 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/1.038, allocations: 371.7 kB / 0.7392 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.121e-05/1.038, allocations: 47.31 kB / 0.7393 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/1.04, allocations: 205.1 kB / 0.7395 GB, free: 26.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/1.04, allocations: 124.7 kB / 0.7396 GB, free: 26.61 MB / 410.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 () * Number of clocked 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.00128/1.042, allocations: 0.7302 MB / 0.7403 GB, free: 26.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000476/1.042, allocations: 0.7209 MB / 0.741 GB, free: 26.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004618/1.047, allocations: 2.285 MB / 0.7432 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/1.047, allocations: 7.875 kB / 0.7433 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.047, allocations: 0 / 0.7433 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/1.047, allocations: 4.031 kB / 0.7433 GB, free: 25.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005027/1.052, allocations: 3.883 MB / 0.747 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001315/1.052, allocations: 135.2 kB / 0.7472 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006731/1.053, allocations: 165.7 kB / 0.7473 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/1.053, allocations: 6.641 kB / 0.7473 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.124e-05/1.053, allocations: 57.34 kB / 0.7474 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/1.053, allocations: 5.938 kB / 0.7474 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/1.053, allocations: 4.344 kB / 0.7474 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002584/1.055, allocations: 2.326 MB / 0.7497 GB, free: 24.82 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/1.057, allocations: 0.9259 MB / 0.7506 GB, free: 24.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004905/1.057, allocations: 21.84 kB / 0.7506 GB, free: 24.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/1.059, allocations: 58.72 kB / 0.7507 GB, free: 24.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/1.059, allocations: 100.4 kB / 0.7508 GB, free: 24.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.552e-05/1.059, allocations: 67.05 kB / 0.7508 GB, free: 24.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003914/1.063, allocations: 3.716 MB / 0.7544 GB, free: 24.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.063, allocations: 0 / 0.7544 GB, free: 24.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002348/1.065, allocations: 1.174 MB / 0.7556 GB, free: 24.02 MB / 410.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) * Number of clocked states: 0 () * 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.001512/1.067, allocations: 1.241 MB / 0.7568 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001984/1.069, allocations: 1.474 MB / 0.7582 GB, free: 23.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/1.069, allocations: 3.344 kB / 0.7582 GB, free: 23.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008779/1.07, allocations: 0.789 MB / 0.759 GB, free: 23.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00231/1.072, allocations: 0.9581 MB / 0.76 GB, free: 23.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009344/1.081, allocations: 9.253 MB / 0.769 GB, free: 19.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001478/1.083, allocations: 2.724 MB / 0.7717 GB, free: 18.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002357/1.085, allocations: 0.7301 MB / 0.7724 GB, free: 18.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003586/1.085, allocations: 303.3 kB / 0.7727 GB, free: 18.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/1.085, allocations: 0 / 0.7727 GB, free: 18.23 MB / 410.7 MB Notification: Performance of Templates: time 0.08338/1.169, allocations: 54.6 MB / 0.826 GB, free: 6.371 MB / 442.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)