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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00716/0.00716, allocations: 103.7 kB / 15.73 MB, free: 6.055 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.001641/0.001641, allocations: 195.9 kB / 16.68 MB, free: 5.961 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.438/1.438, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.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.001146/0.001146, allocations: 46 kB / 326.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09187/0.09303, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02219/0.1153, allocations: 25.35 MB / 398.5 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02653/0.1418, allocations: 21.33 MB / 419.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004883/0.1468, allocations: 178.5 kB / 420 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005026/0.1518, allocations: 1.734 MB / 421.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01112/0.163, allocations: 3.199 MB / 425 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005238/0.1683, allocations: 1.572 MB / 426.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01933/0.1877, allocations: 12.39 MB / 438.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001877/0.1896, allocations: 0.8632 MB / 439.8 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003103/0.1927, allocations: 1.917 MB / 441.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003337/0.1961, allocations: 2.057 MB / 443.8 MB, free: 10.4 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007381/0.1968, allocations: 136 kB / 443.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005189/0.202, allocations: 1.218 MB / 445.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008698/0.2029, allocations: 0.6049 MB / 445.7 MB, free: 8.438 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003142/0.2061, allocations: 2.639 MB / 448.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2118/0.4178, allocations: 6.668 MB / 455 MB, free: 27.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4179, allocations: 0.625 kB / 455 MB, free: 27.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.4179, allocations: 0.5312 kB / 455 MB, free: 27.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002494/0.4182, allocations: 0 / 455 MB, free: 27.91 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.01025/0.4284, allocations: 6.721 MB / 461.7 MB, free: 24.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.4285, allocations: 9.703 kB / 461.7 MB, free: 24.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001119/0.4296, allocations: 0.7521 MB / 462.5 MB, free: 23.92 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006883/0.4365, allocations: 4.625 MB / 467.1 MB, free: 22.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.002e-05/0.4366, allocations: 66.06 kB / 467.2 MB, free: 22.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002707/0.4368, allocations: 104.9 kB / 467.3 MB, free: 22.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.4392, allocations: 1.301 MB / 468.6 MB, free: 22.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.4393, allocations: 2.062 kB / 468.6 MB, free: 22.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001315/0.4394, allocations: 37 kB / 468.6 MB, free: 22.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.514e-05/0.4395, allocations: 37.73 kB / 468.7 MB, free: 22.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002649/0.4421, allocations: 1.485 MB / 470.2 MB, free: 22.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.4522, allocations: 5.641 MB / 475.8 MB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.4538, allocations: 0.989 MB / 476.8 MB, free: 21.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001352/0.4552, allocations: 1.216 MB / 478 MB, free: 20.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05243/0.5077, allocations: 59.94 MB / 0.5253 GB, free: 7.449 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001104/0.5088, allocations: 0.5521 MB / 0.5259 GB, free: 6.879 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.647e-06/0.5088, allocations: 2.719 kB / 0.5259 GB, free: 6.879 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.004089/0.5129, allocations: 1.884 MB / 0.5277 GB, free: 4.996 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.819e-05/0.513, allocations: 63.97 kB / 0.5278 GB, free: 4.918 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007354/0.5204, allocations: 5.628 MB / 0.5333 GB, free: 15.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002229/0.5206, allocations: 45.69 kB / 0.5333 GB, free: 15.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002565/0.5232, allocations: 2.934 MB / 0.5362 GB, free: 12.33 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/0.5235, allocations: 295 kB / 0.5365 GB, free: 12.05 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005345/0.5241, allocations: 418.5 kB / 0.5369 GB, free: 11.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.717e-05/0.5242, allocations: 301.1 kB / 0.5371 GB, free: 11.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008674/0.5251, allocations: 411.8 kB / 0.5375 GB, free: 10.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.5264, allocations: 1.084 MB / 0.5386 GB, free: 9.523 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002254/0.5286, allocations: 1.617 MB / 0.5402 GB, free: 7.688 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.29e-05/0.5287, allocations: 11.62 kB / 0.5402 GB, free: 7.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004049/0.5327, allocations: 2.211 MB / 0.5424 GB, free: 5.598 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.411e-05/0.5328, allocations: 17.09 kB / 0.5424 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002507/0.533, allocations: 163.3 kB / 0.5425 GB, free: 5.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.616e-05/0.5331, allocations: 39.97 kB / 0.5426 GB, free: 5.387 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/0.5343, allocations: 356.4 kB / 0.5429 GB, free: 5.062 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.832e-05/0.5344, allocations: 49.72 kB / 0.5429 GB, free: 5.023 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002699/0.5371, allocations: 186.2 kB / 0.5431 GB, free: 4.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002283/0.5373, allocations: 126.7 kB / 0.5432 GB, free: 4.719 MB / 446.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.001548/0.5389, allocations: 0.7245 MB / 0.544 GB, free: 4.012 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001272/0.5402, allocations: 0.7179 MB / 0.5447 GB, free: 3.285 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004583/0.5447, allocations: 2.168 MB / 0.5468 GB, free: 1.141 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.5448, allocations: 8 kB / 0.5468 GB, free: 1.133 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5448, allocations: 3.984 kB / 0.5468 GB, free: 1.129 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.5448, allocations: 4 kB / 0.5468 GB, free: 1.125 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005834/0.5506, allocations: 3.623 MB / 0.5503 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002605/0.5509, allocations: 139.9 kB / 0.5505 GB, free: 13.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000814/0.5517, allocations: 152.3 kB / 0.5506 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.5518, allocations: 8.062 kB / 0.5506 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.5519, allocations: 63.98 kB / 0.5507 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.5519, allocations: 4 kB / 0.5507 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5519, allocations: 0 / 0.5507 GB, free: 13.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003728/0.5556, allocations: 2.166 MB / 0.5528 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001649/0.5573, allocations: 0.8162 MB / 0.5536 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006504/0.558, allocations: 16 kB / 0.5536 GB, free: 10.06 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.5592, allocations: 35.97 kB / 0.5536 GB, free: 10.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.5594, allocations: 96.48 kB / 0.5537 GB, free: 9.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000127/0.5595, allocations: 71.98 kB / 0.5538 GB, free: 9.859 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0048/0.5643, allocations: 3.629 MB / 0.5573 GB, free: 6.262 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.5644, allocations: 0 / 0.5573 GB, free: 6.262 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002478/0.5668, allocations: 1.092 MB / 0.5584 GB, free: 5.172 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.001683/0.5685, allocations: 1.189 MB / 0.5596 GB, free: 4.207 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.5711, allocations: 1.432 MB / 0.561 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.5711, allocations: 0 / 0.561 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001185/0.5723, allocations: 0.7741 MB / 0.5617 GB, free: 1.996 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003486/0.5758, allocations: 0.988 MB / 0.5627 GB, free: 1.012 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01138/0.5872, allocations: 8.131 MB / 0.5706 GB, free: 8.879 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001897/0.5891, allocations: 2.606 MB / 0.5732 GB, free: 6.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00198/0.5911, allocations: 0.6888 MB / 0.5738 GB, free: 5.559 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003976/0.5915, allocations: 283.4 kB / 0.5741 GB, free: 5.281 MB / 478.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5915, allocations: 3.938 kB / 0.5741 GB, free: 5.277 MB / 478.1 MB Notification: Performance of Templates: time 0.09642/0.6879, allocations: 55.6 MB / 0.6284 GB, free: 13.86 MB / 0.5294 GB 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)