Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001402/0.001402, allocations: 118.2 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 201.2 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2467, allocations: 50.55 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.023/0.2697, allocations: 26.71 MB / 436 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02746/0.2972, allocations: 22.37 MB / 458.3 MB, free: 312 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005818/0.3031, allocations: 178.5 kB / 458.5 MB, free: 132 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004493/0.3077, allocations: 1.786 MB / 460.3 MB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01235/0.32, allocations: 3.251 MB / 463.5 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006219/0.3263, allocations: 1.627 MB / 465.2 MB, free: 9.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02027/0.3466, allocations: 12.82 MB / 478 MB, free: 12.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001608/0.3482, allocations: 0.8669 MB / 478.8 MB, free: 11.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003111/0.3513, allocations: 2.103 MB / 481 MB, free: 9.547 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.3538, allocations: 2.107 MB / 483.1 MB, free: 7.426 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003844/0.3542, allocations: 136 kB / 483.2 MB, free: 7.293 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004263/0.3585, allocations: 1.537 MB / 484.7 MB, free: 5.754 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006224/0.3591, allocations: 0.5971 MB / 485.3 MB, free: 5.152 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002935/0.3621, allocations: 2.631 MB / 488 MB, free: 2.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008227/0.3703, allocations: 6.634 MB / 494.6 MB, free: 11.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3704, allocations: 0 / 494.6 MB, free: 11.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3704, allocations: 0 / 494.6 MB, free: 11.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001239/0.3705, allocations: 0 / 494.6 MB, free: 11.84 MB / 414.1 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.008385/0.3789, allocations: 6.678 MB / 0.4895 GB, free: 5.066 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.3789, allocations: 8.031 kB / 0.4895 GB, free: 5.059 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007371/0.3797, allocations: 0.7409 MB / 0.4903 GB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006017/0.3857, allocations: 4.594 MB / 0.4947 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.285e-05/0.3858, allocations: 66 kB / 0.4948 GB, free: 15.56 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002272/0.386, allocations: 95.91 kB / 0.4949 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002206/0.3882, allocations: 1.305 MB / 0.4962 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.3883, allocations: 4 kB / 0.4962 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001082/0.3884, allocations: 32 kB / 0.4962 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-05/0.3884, allocations: 39.97 kB / 0.4962 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.3909, allocations: 1.48 MB / 0.4977 GB, free: 12.59 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009414/0.4004, allocations: 5.62 MB / 0.5032 GB, free: 6.875 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.4019, allocations: 0.989 MB / 0.5041 GB, free: 5.875 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.4035, allocations: 1.219 MB / 0.5053 GB, free: 4.66 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2402/0.6437, allocations: 61.06 MB / 0.565 GB, free: 103.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008847/0.6447, allocations: 0.5621 MB / 0.5655 GB, free: 103 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 2.715e-06/0.6447, allocations: 0 / 0.5655 GB, free: 103 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.002707/0.6474, allocations: 1.872 MB / 0.5673 GB, free: 102.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.6474, allocations: 63.56 kB / 0.5674 GB, free: 102.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005132/0.6526, allocations: 5.591 MB / 0.5729 GB, free: 97.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.46e-05/0.6527, allocations: 41.69 kB / 0.5729 GB, free: 97.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001615/0.6543, allocations: 2.942 MB / 0.5758 GB, free: 94.98 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001758/0.6545, allocations: 294.6 kB / 0.576 GB, free: 94.69 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000384/0.6549, allocations: 422.5 kB / 0.5764 GB, free: 94.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.444e-05/0.6549, allocations: 301.1 kB / 0.5767 GB, free: 93.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006996/0.6556, allocations: 406.2 kB / 0.5771 GB, free: 93.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008848/0.6565, allocations: 1.094 MB / 0.5782 GB, free: 92.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00165/0.6582, allocations: 1.614 MB / 0.5798 GB, free: 90.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.6582, allocations: 8 kB / 0.5798 GB, free: 90.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002659/0.6609, allocations: 2.201 MB / 0.5819 GB, free: 88.11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.6609, allocations: 19.94 kB / 0.5819 GB, free: 88.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.661, allocations: 164 kB / 0.5821 GB, free: 87.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.105e-05/0.6611, allocations: 32 kB / 0.5821 GB, free: 87.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.6621, allocations: 355.2 kB / 0.5825 GB, free: 87.55 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.678e-05/0.6622, allocations: 55.42 kB / 0.5825 GB, free: 87.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/0.6636, allocations: 190 kB / 0.5827 GB, free: 87.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.6638, allocations: 124 kB / 0.5828 GB, free: 87.2 MB / 462.1 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 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009501/0.6647, allocations: 0.7118 MB / 0.5835 GB, free: 86.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/0.6652, allocations: 0.714 MB / 0.5842 GB, free: 85.75 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003592/0.6688, allocations: 2.164 MB / 0.5863 GB, free: 83.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.6688, allocations: 6.672 kB / 0.5863 GB, free: 83.63 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.6688, allocations: 4 kB / 0.5863 GB, free: 83.63 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.6688, allocations: 3.984 kB / 0.5863 GB, free: 83.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004116/0.6729, allocations: 3.6 MB / 0.5899 GB, free: 79.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001423/0.6731, allocations: 140 kB / 0.59 GB, free: 79.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006645/0.6738, allocations: 155.9 kB / 0.5901 GB, free: 79.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.6738, allocations: 0 / 0.5901 GB, free: 79.69 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-05/0.6739, allocations: 63.98 kB / 0.5902 GB, free: 79.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.6739, allocations: 7.938 kB / 0.5902 GB, free: 79.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.6739, allocations: 3.938 kB / 0.5902 GB, free: 79.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.6765, allocations: 2.153 MB / 0.5923 GB, free: 77.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009468/0.6774, allocations: 0.8162 MB / 0.5931 GB, free: 76.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/0.6779, allocations: 19.98 kB / 0.5931 GB, free: 76.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.679, allocations: 31.97 kB / 0.5932 GB, free: 76.54 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.6792, allocations: 96.48 kB / 0.5933 GB, free: 76.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.732e-05/0.6793, allocations: 72 kB / 0.5933 GB, free: 76.38 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003404/0.6827, allocations: 3.604 MB / 0.5968 GB, free: 72.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6827, allocations: 7.938 kB / 0.5968 GB, free: 72.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00184/0.6845, allocations: 1.076 MB / 0.5979 GB, free: 71.76 MB / 462.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001259/0.6858, allocations: 1.165 MB / 0.599 GB, free: 70.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001937/0.6877, allocations: 1.436 MB / 0.6004 GB, free: 69.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.6878, allocations: 4.062 kB / 0.6004 GB, free: 69.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000891/0.6887, allocations: 0.7628 MB / 0.6012 GB, free: 68.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/0.6925, allocations: 1.203 MB / 0.6024 GB, free: 67.13 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009433/0.7019, allocations: 8.092 MB / 0.6103 GB, free: 59.01 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/0.7032, allocations: 2.592 MB / 0.6128 GB, free: 56.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001751/0.7049, allocations: 0.6924 MB / 0.6135 GB, free: 55.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.7053, allocations: 283.4 kB / 0.6137 GB, free: 55.42 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.7053, allocations: 3.938 kB / 0.6137 GB, free: 55.42 MB / 462.1 MB Notification: Performance of Templates: time 0.07304/0.7783, allocations: 55.52 MB / 0.668 GB, free: 116 kB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)