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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001465/0.001464, allocations: 115.1 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 198.9 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 55.94 kB / 327.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09585/0.09703, allocations: 46.61 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.2199/0.317, allocations: 25.35 MB / 399.8 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03248/0.3495, allocations: 21.33 MB / 421.2 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006587/0.3561, allocations: 179.6 kB / 421.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006075/0.3623, allocations: 1.721 MB / 423.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01588/0.3782, allocations: 3.174 MB / 426.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00756/0.3858, allocations: 1.561 MB / 427.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02111/0.407, allocations: 12.39 MB / 440.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00185/0.4088, allocations: 0.867 MB / 441 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003843/0.4127, allocations: 1.917 MB / 443 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003794/0.4165, allocations: 2.065 MB / 445 MB, free: 8.805 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006021/0.4171, allocations: 136 kB / 445.2 MB, free: 8.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005134/0.4223, allocations: 1.214 MB / 446.4 MB, free: 7.457 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007805/0.4231, allocations: 0.601 MB / 447 MB, free: 6.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003842/0.4269, allocations: 2.639 MB / 449.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01002/0.437, allocations: 6.673 MB / 456.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.437, allocations: 0 / 456.3 MB, free: 13.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.437, allocations: 7.938 kB / 456.3 MB, free: 13.49 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001659/0.4372, allocations: 0 / 456.3 MB, free: 13.49 MB / 382.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.01034/0.4475, allocations: 6.725 MB / 463 MB, free: 6.664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.4476, allocations: 12.02 kB / 463 MB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009174/0.4485, allocations: 0.7487 MB / 463.8 MB, free: 5.895 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00737/0.4559, allocations: 4.618 MB / 468.4 MB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.314e-05/0.456, allocations: 66.88 kB / 468.5 MB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002619/0.4563, allocations: 107.8 kB / 468.6 MB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002304/0.4586, allocations: 1.297 MB / 469.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.4586, allocations: 0 / 469.9 MB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.4587, allocations: 39.98 kB / 469.9 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.249e-05/0.4588, allocations: 39.92 kB / 469.9 MB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00243/0.4612, allocations: 1.488 MB / 471.4 MB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.4718, allocations: 5.637 MB / 477.1 MB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.4735, allocations: 0.9889 MB / 478.1 MB, free: 7.395 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.4752, allocations: 1.222 MB / 479.3 MB, free: 6.172 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06069/0.5359, allocations: 59.93 MB / 0.5266 GB, free: 2.059 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001069/0.537, allocations: 0.5637 MB / 0.5271 GB, free: 1.488 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.777e-06/0.537, allocations: 0 / 0.5271 GB, free: 1.488 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.004/0.541, allocations: 1.879 MB / 0.529 GB, free: 15.59 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/0.5411, allocations: 63.91 kB / 0.529 GB, free: 15.52 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007831/0.5489, allocations: 5.628 MB / 0.5345 GB, free: 9.918 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002428/0.5492, allocations: 37.7 kB / 0.5346 GB, free: 9.875 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002543/0.5518, allocations: 2.939 MB / 0.5374 GB, free: 6.922 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004154/0.5522, allocations: 295.9 kB / 0.5377 GB, free: 6.629 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005523/0.5527, allocations: 430.5 kB / 0.5381 GB, free: 6.203 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.725e-05/0.5528, allocations: 305.1 kB / 0.5384 GB, free: 5.902 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008883/0.5537, allocations: 399.8 kB / 0.5388 GB, free: 5.512 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.5551, allocations: 1.095 MB / 0.5399 GB, free: 4.082 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002271/0.5574, allocations: 1.611 MB / 0.5414 GB, free: 2.141 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.5574, allocations: 8 kB / 0.5414 GB, free: 2.133 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.1853/0.7427, allocations: 2.203 MB / 0.5436 GB, free: 156.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.517e-05/0.7428, allocations: 15.34 kB / 0.5436 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003289/0.7431, allocations: 164.3 kB / 0.5438 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.333e-05/0.7432, allocations: 32.28 kB / 0.5438 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001388/0.7446, allocations: 360.7 kB / 0.5441 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-05/0.7447, allocations: 53.88 kB / 0.5442 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/0.7467, allocations: 188.3 kB / 0.5444 GB, free: 156.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002482/0.7469, allocations: 124.7 kB / 0.5445 GB, free: 156.5 MB / 478.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.001513/0.7485, allocations: 0.7083 MB / 0.5452 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000864/0.7493, allocations: 0.7202 MB / 0.5459 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004384/0.7537, allocations: 2.171 MB / 0.548 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.7538, allocations: 9.938 kB / 0.548 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.7538, allocations: 0 / 0.548 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.7538, allocations: 6.938 kB / 0.548 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006838/0.7606, allocations: 3.625 MB / 0.5516 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000197/0.7609, allocations: 146.6 kB / 0.5517 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000797/0.7617, allocations: 147.7 kB / 0.5518 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.111e-05/0.7617, allocations: 7 kB / 0.5518 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001027/0.7618, allocations: 62.66 kB / 0.5519 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.394e-06/0.7618, allocations: 6 kB / 0.5519 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.7618, allocations: 1.031 kB / 0.5519 GB, free: 155.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003786/0.7656, allocations: 2.164 MB / 0.554 GB, free: 154.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/0.7677, allocations: 0.8202 MB / 0.5548 GB, free: 154.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008839/0.7686, allocations: 12.73 kB / 0.5548 GB, free: 154.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.77, allocations: 34.48 kB / 0.5549 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002985/0.7703, allocations: 105.9 kB / 0.555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/0.7705, allocations: 70.91 kB / 0.555 GB, free: 154.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008316/0.7788, allocations: 3.63 MB / 0.5586 GB, free: 153.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.7788, allocations: 1.031 kB / 0.5586 GB, free: 153.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003779/0.7826, allocations: 1.086 MB / 0.5596 GB, free: 153 MB / 478.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.002185/0.7848, allocations: 1.19 MB / 0.5608 GB, free: 152.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002843/0.7877, allocations: 1.436 MB / 0.5622 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.7877, allocations: 1 kB / 0.5622 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001051/0.7888, allocations: 0.7705 MB / 0.563 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/0.7928, allocations: 0.9895 MB / 0.5639 GB, free: 151.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.8042, allocations: 8.126 MB / 0.5719 GB, free: 147.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00161/0.8059, allocations: 2.604 MB / 0.5744 GB, free: 146.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002205/0.8081, allocations: 0.6923 MB / 0.5751 GB, free: 145.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.8084, allocations: 287.4 kB / 0.5754 GB, free: 145.3 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8084, allocations: 0 / 0.5754 GB, free: 145.3 MB / 478.1 MB Notification: Performance of Templates: time 0.08048/0.8889, allocations: 56.68 MB / 0.6307 GB, free: 89.02 MB / 478.1 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)