Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.005937/0.005937, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001239/0.001239, allocations: 189.8 kB / 16.67 MB, free: 5.48 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.492/1.492, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001358/0.001358, allocations: 43.94 kB / 326.5 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08652/0.08789, allocations: 46.62 MB / 373.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.194/0.2819, allocations: 25.36 MB / 398.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03301/0.315, allocations: 21.33 MB / 419.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006873/0.3219, allocations: 180.3 kB / 420 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006617/0.3286, allocations: 1.723 MB / 421.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01477/0.3434, allocations: 3.171 MB / 424.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00641/0.3498, allocations: 1.572 MB / 426.5 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02346/0.3733, allocations: 12.39 MB / 438.9 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002228/0.3756, allocations: 0.8601 MB / 439.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003407/0.379, allocations: 1.87 MB / 441.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003452/0.3825, allocations: 2.065 MB / 443.7 MB, free: 8.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007618/0.3833, allocations: 132 kB / 443.8 MB, free: 8.758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006522/0.3898, allocations: 1.218 MB / 445 MB, free: 7.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.3911, allocations: 0.601 MB / 445.6 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004508/0.3956, allocations: 2.639 MB / 448.3 MB, free: 4.277 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01096/0.4066, allocations: 6.714 MB / 455 MB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4066, allocations: 3.938 kB / 455 MB, free: 13.53 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4066, allocations: 0 / 455 MB, free: 13.53 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002083/0.4068, allocations: 0 / 455 MB, free: 13.53 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.01041/0.4172, allocations: 6.973 MB / 461.9 MB, free: 6.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.4173, allocations: 12.03 kB / 462 MB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001018/0.4183, allocations: 0.788 MB / 462.7 MB, free: 5.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00687/0.4252, allocations: 4.691 MB / 467.4 MB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.33e-05/0.4253, allocations: 69.94 kB / 467.5 MB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002177/0.4255, allocations: 99.94 kB / 467.6 MB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002395/0.4279, allocations: 1.305 MB / 468.9 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.4279, allocations: 4 kB / 468.9 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001189/0.4281, allocations: 36 kB / 468.9 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-05/0.4281, allocations: 43.91 kB / 469 MB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002542/0.4307, allocations: 1.482 MB / 470.5 MB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009288/0.44, allocations: 5.65 MB / 476.1 MB, free: 8.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.4417, allocations: 0.9928 MB / 477.1 MB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.4434, allocations: 1.223 MB / 478.3 MB, free: 5.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05424/0.4976, allocations: 59.93 MB / 0.5257 GB, free: 1.723 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/0.4987, allocations: 0.5598 MB / 0.5262 GB, free: 1.156 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.256e-06/0.4988, allocations: 4 kB / 0.5262 GB, free: 1.152 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.004057/0.5028, allocations: 1.911 MB / 0.5281 GB, free: 15.23 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.5029, allocations: 67.95 kB / 0.5281 GB, free: 15.15 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009881/0.5128, allocations: 5.632 MB / 0.5336 GB, free: 9.547 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.513, allocations: 41.7 kB / 0.5337 GB, free: 9.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002684/0.5157, allocations: 2.957 MB / 0.5366 GB, free: 6.531 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004577/0.5162, allocations: 309.4 kB / 0.5369 GB, free: 6.227 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000821/0.5171, allocations: 423 kB / 0.5373 GB, free: 5.809 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.5172, allocations: 312.9 kB / 0.5376 GB, free: 5.504 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009368/0.5181, allocations: 399.8 kB / 0.5379 GB, free: 5.113 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.5194, allocations: 1.083 MB / 0.539 GB, free: 3.695 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002336/0.5218, allocations: 1.626 MB / 0.5406 GB, free: 1.738 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.189e-05/0.5218, allocations: 4 kB / 0.5406 GB, free: 1.734 MB / 478.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.1912/0.7131, allocations: 2.241 MB / 0.5428 GB, free: 156.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.599e-05/0.7131, allocations: 14.75 kB / 0.5428 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002081/0.7133, allocations: 165.9 kB / 0.5429 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.719e-05/0.7134, allocations: 32.97 kB / 0.543 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001213/0.7146, allocations: 353.3 kB / 0.5433 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.185e-05/0.7147, allocations: 49.19 kB / 0.5434 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/0.7168, allocations: 196.3 kB / 0.5436 GB, free: 156.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002918/0.7171, allocations: 127.2 kB / 0.5437 GB, free: 156.4 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.001438/0.7186, allocations: 0.7121 MB / 0.5444 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008725/0.7195, allocations: 0.7546 MB / 0.5451 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00453/0.724, allocations: 2.175 MB / 0.5472 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.438e-05/0.724, allocations: 10.31 kB / 0.5472 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.724, allocations: 4.078 kB / 0.5472 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.7241, allocations: 7.094 kB / 0.5473 GB, free: 156.2 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005526/0.7296, allocations: 3.616 MB / 0.5508 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001738/0.7298, allocations: 141.4 kB / 0.5509 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007652/0.7306, allocations: 156 kB / 0.5511 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.157e-06/0.7306, allocations: 3.562 kB / 0.5511 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.7307, allocations: 61.73 kB / 0.5511 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.754e-06/0.7307, allocations: 7.531 kB / 0.5511 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.7307, allocations: 2.156 kB / 0.5511 GB, free: 155.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003666/0.7344, allocations: 2.203 MB / 0.5533 GB, free: 154.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001378/0.7358, allocations: 0.8574 MB / 0.5541 GB, free: 154.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005381/0.7363, allocations: 14.3 kB / 0.5541 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.7375, allocations: 39.34 kB / 0.5542 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002209/0.7377, allocations: 98.38 kB / 0.5543 GB, free: 154.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.7378, allocations: 70.59 kB / 0.5543 GB, free: 154.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005766/0.7436, allocations: 3.632 MB / 0.5579 GB, free: 152.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7436, allocations: 0 / 0.5579 GB, free: 152.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003558/0.7472, allocations: 1.096 MB / 0.559 GB, free: 152.8 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.001894/0.7491, allocations: 1.191 MB / 0.5601 GB, free: 152.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.7519, allocations: 1.436 MB / 0.5615 GB, free: 152 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.7519, allocations: 0 / 0.5615 GB, free: 152 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009864/0.7529, allocations: 0.772 MB / 0.5623 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/0.7565, allocations: 0.9899 MB / 0.5632 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.7669, allocations: 8.313 MB / 0.5714 GB, free: 146.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001695/0.7687, allocations: 2.608 MB / 0.5739 GB, free: 145.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002312/0.771, allocations: 0.6894 MB / 0.5746 GB, free: 144.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/0.7714, allocations: 283.4 kB / 0.5748 GB, free: 144.5 MB / 478.1 MB Notification: Performance of SimCode: time 2.184e-06/0.7714, allocations: 0 / 0.5748 GB, free: 144.5 MB / 478.1 MB Notification: Performance of Templates: time 0.08189/0.8533, allocations: 55.59 MB / 0.6291 GB, free: 89.34 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1)