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.009094/0.009094, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001781/0.001781, allocations: 197.2 kB / 16.68 MB, free: 5.969 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.394/1.394, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001221/0.001221, allocations: 46.09 kB / 326.5 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08648, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02135/0.1079, allocations: 25.34 MB / 398.5 MB, free: 7.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02882/0.1367, allocations: 21.33 MB / 419.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006053/0.1428, allocations: 178.5 kB / 420 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005731/0.1486, allocations: 1.734 MB / 421.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01449/0.1632, allocations: 3.164 MB / 424.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005338/0.1685, allocations: 1.564 MB / 426.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0186/0.1871, allocations: 12.39 MB / 438.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/0.1885, allocations: 0.8709 MB / 439.7 MB, free: 14.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002371/0.1909, allocations: 1.87 MB / 441.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.1931, allocations: 2.061 MB / 443.7 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003515/0.1934, allocations: 136 kB / 443.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003868/0.1973, allocations: 1.222 MB / 445 MB, free: 9.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005752/0.1979, allocations: 0.601 MB / 445.6 MB, free: 8.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002392/0.2003, allocations: 2.635 MB / 448.3 MB, free: 5.867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1956/0.3959, allocations: 6.709 MB / 455 MB, free: 27.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.186e-06/0.396, allocations: 0.5312 kB / 455 MB, free: 27.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.396, allocations: 0.5312 kB / 455 MB, free: 27.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003537/0.3963, allocations: 0 / 455 MB, free: 27.5 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.01216/0.4085, allocations: 6.972 MB / 461.9 MB, free: 23.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.854e-05/0.4086, allocations: 9.953 kB / 462 MB, free: 23.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.4101, allocations: 0.7838 MB / 462.7 MB, free: 23.18 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007067/0.4172, allocations: 4.704 MB / 467.4 MB, free: 21.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.267e-05/0.4172, allocations: 66.62 kB / 467.5 MB, free: 21.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002515/0.4175, allocations: 99.03 kB / 467.6 MB, free: 21.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002181/0.4197, allocations: 1.296 MB / 468.9 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.4197, allocations: 2.062 kB / 468.9 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/0.4199, allocations: 35.88 kB / 468.9 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.38e-05/0.4199, allocations: 45.22 kB / 469 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002445/0.4224, allocations: 1.48 MB / 470.5 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01044/0.4328, allocations: 5.651 MB / 476.1 MB, free: 20.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.4344, allocations: 0.9868 MB / 477.1 MB, free: 20.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.4358, allocations: 1.226 MB / 478.3 MB, free: 20.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05208/0.4879, allocations: 59.95 MB / 0.5257 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001073/0.489, allocations: 0.5482 MB / 0.5262 GB, free: 6.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 3.416e-06/0.489, allocations: 0 / 0.5262 GB, free: 6.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.00442/0.4934, allocations: 1.921 MB / 0.5281 GB, free: 4.402 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.4935, allocations: 67.95 kB / 0.5281 GB, free: 4.32 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008552/0.5021, allocations: 5.628 MB / 0.5336 GB, free: 14.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.5023, allocations: 41.7 kB / 0.5337 GB, free: 14.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002711/0.505, allocations: 2.955 MB / 0.5366 GB, free: 11.72 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003683/0.5054, allocations: 310.7 kB / 0.5368 GB, free: 11.42 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006417/0.506, allocations: 427 kB / 0.5373 GB, free: 11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.5061, allocations: 301.1 kB / 0.5375 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008852/0.507, allocations: 407.8 kB / 0.5379 GB, free: 10.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.5083, allocations: 1.087 MB / 0.539 GB, free: 8.891 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002288/0.5106, allocations: 1.617 MB / 0.5406 GB, free: 7.055 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.782e-05/0.5106, allocations: 12 kB / 0.5406 GB, free: 7.043 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003853/0.5145, allocations: 2.244 MB / 0.5428 GB, free: 4.934 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.5145, allocations: 16.06 kB / 0.5428 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002142/0.5147, allocations: 168.7 kB / 0.543 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.53e-05/0.5148, allocations: 35.94 kB / 0.543 GB, free: 4.719 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.516, allocations: 353.4 kB / 0.5433 GB, free: 4.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.81e-05/0.516, allocations: 52.73 kB / 0.5434 GB, free: 4.359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002346/0.5184, allocations: 192.9 kB / 0.5436 GB, free: 4.172 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002049/0.5186, allocations: 124 kB / 0.5437 GB, free: 4.051 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.001238/0.5198, allocations: 0.7192 MB / 0.5444 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/0.5209, allocations: 0.7566 MB / 0.5451 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004503/0.5254, allocations: 2.172 MB / 0.5472 GB, free: 448 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/0.5255, allocations: 7.984 kB / 0.5472 GB, free: 440 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.5255, allocations: 4 kB / 0.5472 GB, free: 436 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.5255, allocations: 0 / 0.5472 GB, free: 436 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005885/0.5314, allocations: 3.634 MB / 0.5508 GB, free: 12.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001735/0.5316, allocations: 144 kB / 0.5509 GB, free: 12.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007488/0.5323, allocations: 147.2 kB / 0.5511 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.5323, allocations: 7.281 kB / 0.5511 GB, free: 12.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.986e-05/0.5324, allocations: 63.98 kB / 0.5511 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.5325, allocations: 0 / 0.5511 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.5325, allocations: 4 kB / 0.5511 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/0.5363, allocations: 2.197 MB / 0.5533 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00166/0.538, allocations: 0.8645 MB / 0.5541 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007105/0.5387, allocations: 12 kB / 0.5541 GB, free: 9.297 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001173/0.5399, allocations: 39.95 kB / 0.5542 GB, free: 9.258 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/0.5401, allocations: 92.5 kB / 0.5543 GB, free: 9.168 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001352/0.5403, allocations: 71.98 kB / 0.5543 GB, free: 9.098 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004769/0.5451, allocations: 3.629 MB / 0.5579 GB, free: 5.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5451, allocations: 0 / 0.5579 GB, free: 5.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002418/0.5475, allocations: 1.1 MB / 0.559 GB, free: 4.398 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.001586/0.5491, allocations: 1.188 MB / 0.5601 GB, free: 3.438 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002402/0.5515, allocations: 1.435 MB / 0.5615 GB, free: 2.031 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5515, allocations: 3.594 kB / 0.5615 GB, free: 2.031 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.5526, allocations: 0.7762 MB / 0.5623 GB, free: 1.223 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/0.556, allocations: 0.9946 MB / 0.5633 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.5668, allocations: 8.316 MB / 0.5714 GB, free: 7.898 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/0.5686, allocations: 2.6 MB / 0.5739 GB, free: 5.273 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001856/0.5705, allocations: 0.6888 MB / 0.5746 GB, free: 4.582 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/0.5709, allocations: 283.4 kB / 0.5749 GB, free: 4.305 MB / 478.1 MB Notification: Performance of SimCode: time 3.4e-07/0.5709, allocations: 0 / 0.5749 GB, free: 4.305 MB / 478.1 MB Notification: Performance of Templates: time 0.09232/0.6632, allocations: 55.61 MB / 0.6292 GB, free: 12.88 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)