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.005668/0.005668, allocations: 105.4 kB / 15.74 MB, free: 6.039 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.001258/0.001258, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.388/1.388, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001179/0.001179, allocations: 50.45 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.0846, allocations: 46.63 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02202/0.1067, allocations: 25.35 MB / 398.5 MB, free: 7.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02574/0.1325, allocations: 21.33 MB / 419.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004481/0.137, allocations: 178.5 kB / 420 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004959/0.142, allocations: 1.738 MB / 421.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01373/0.1558, allocations: 3.2 MB / 425 MB, free: 13.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006193/0.162, allocations: 1.568 MB / 426.5 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02049/0.1825, allocations: 12.39 MB / 438.9 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001562/0.1841, allocations: 0.871 MB / 439.8 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.1869, allocations: 1.917 MB / 441.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002021/0.1889, allocations: 2.057 MB / 443.8 MB, free: 10.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002934/0.1892, allocations: 132 kB / 443.9 MB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.193, allocations: 1.218 MB / 445.1 MB, free: 9.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005985/0.1936, allocations: 0.6049 MB / 445.7 MB, free: 8.449 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002445/0.196, allocations: 2.639 MB / 448.3 MB, free: 5.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2053/0.4014, allocations: 6.668 MB / 455 MB, free: 27.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4014, allocations: 0.8438 kB / 455 MB, free: 27.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4014, allocations: 0 / 455 MB, free: 27.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000251/0.4017, allocations: 0.5312 kB / 455 MB, free: 27.46 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.01002/0.4117, allocations: 6.72 MB / 461.7 MB, free: 23.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.4118, allocations: 11.5 kB / 461.7 MB, free: 23.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001168/0.413, allocations: 0.7503 MB / 462.5 MB, free: 23.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006555/0.4195, allocations: 4.631 MB / 467.1 MB, free: 22.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.355e-05/0.4196, allocations: 65.91 kB / 467.2 MB, free: 22.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.4198, allocations: 97.25 kB / 467.3 MB, free: 22.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.4221, allocations: 1.302 MB / 468.6 MB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.4221, allocations: 2.062 kB / 468.6 MB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001264/0.4223, allocations: 39.12 kB / 468.6 MB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.965e-05/0.4223, allocations: 41.86 kB / 468.7 MB, free: 22.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002558/0.4249, allocations: 1.487 MB / 470.2 MB, free: 22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009091/0.434, allocations: 5.633 MB / 475.8 MB, free: 21.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.4356, allocations: 0.9888 MB / 476.8 MB, free: 21.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.437, allocations: 1.223 MB / 478 MB, free: 20.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05415/0.4911, allocations: 59.94 MB / 0.5253 GB, free: 7.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/0.4923, allocations: 0.5553 MB / 0.5259 GB, free: 6.77 MB / 430.1 MB Notification: Performance of pre-optimization done (n=85): time 2.635e-06/0.4923, allocations: 0 / 0.5259 GB, free: 6.77 MB / 430.1 MB Notification: Performance of matching and sorting (n=85): time 0.003751/0.496, allocations: 1.889 MB / 0.5277 GB, free: 4.883 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.11e-05/0.4961, allocations: 66.88 kB / 0.5278 GB, free: 4.805 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007059/0.5032, allocations: 5.628 MB / 0.5333 GB, free: 15.21 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/0.5034, allocations: 37.7 kB / 0.5333 GB, free: 15.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002469/0.5059, allocations: 2.934 MB / 0.5362 GB, free: 12.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/0.5062, allocations: 297.2 kB / 0.5365 GB, free: 11.94 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000543/0.5067, allocations: 426.5 kB / 0.5369 GB, free: 11.52 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.423e-05/0.5068, allocations: 303.3 kB / 0.5372 GB, free: 11.22 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000856/0.5077, allocations: 403.8 kB / 0.5375 GB, free: 10.82 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.509, allocations: 1.091 MB / 0.5386 GB, free: 9.406 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002404/0.5114, allocations: 1.612 MB / 0.5402 GB, free: 7.574 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/0.5114, allocations: 8 kB / 0.5402 GB, free: 7.566 MB / 446.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004095/0.5155, allocations: 2.208 MB / 0.5423 GB, free: 5.488 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.5156, allocations: 12 kB / 0.5424 GB, free: 5.477 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002187/0.5158, allocations: 168 kB / 0.5425 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.14e-05/0.5159, allocations: 40 kB / 0.5426 GB, free: 5.273 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001165/0.517, allocations: 356.5 kB / 0.5429 GB, free: 4.953 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.397e-05/0.5171, allocations: 49.55 kB / 0.5429 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/0.5196, allocations: 187.8 kB / 0.5431 GB, free: 4.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001991/0.5198, allocations: 133.1 kB / 0.5433 GB, free: 4.602 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.001436/0.5213, allocations: 0.7171 MB / 0.544 GB, free: 3.902 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00091/0.5222, allocations: 0.7146 MB / 0.5447 GB, free: 3.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/0.5267, allocations: 2.171 MB / 0.5468 GB, free: 1.027 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/0.5267, allocations: 4 kB / 0.5468 GB, free: 1.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.5268, allocations: 8 kB / 0.5468 GB, free: 1.016 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.5268, allocations: 3.984 kB / 0.5468 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00674/0.5335, allocations: 3.624 MB / 0.5503 GB, free: 13.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000196/0.5337, allocations: 144 kB / 0.5505 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008173/0.5346, allocations: 150.9 kB / 0.5506 GB, free: 13.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-05/0.5346, allocations: 16.97 kB / 0.5506 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.5347, allocations: 56 kB / 0.5507 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.5347, allocations: 7.984 kB / 0.5507 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5347, allocations: 4 kB / 0.5507 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003911/0.5387, allocations: 2.158 MB / 0.5528 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002292/0.541, allocations: 0.8123 MB / 0.5536 GB, free: 9.965 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001154/0.5421, allocations: 25.31 kB / 0.5536 GB, free: 9.945 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/0.5439, allocations: 35.95 kB / 0.5536 GB, free: 9.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002521/0.5441, allocations: 100.5 kB / 0.5537 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/0.5443, allocations: 68 kB / 0.5538 GB, free: 9.746 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005257/0.5496, allocations: 3.629 MB / 0.5574 GB, free: 6.148 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5496, allocations: 0 / 0.5574 GB, free: 6.148 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00286/0.5525, allocations: 1.089 MB / 0.5584 GB, free: 5.059 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.001705/0.5542, allocations: 1.184 MB / 0.5596 GB, free: 4.105 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002473/0.5567, allocations: 1.436 MB / 0.561 GB, free: 2.695 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5567, allocations: 0 / 0.561 GB, free: 2.695 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.5578, allocations: 0.7722 MB / 0.5617 GB, free: 1.891 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003888/0.5617, allocations: 0.9911 MB / 0.5627 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01165/0.5734, allocations: 8.132 MB / 0.5706 GB, free: 8.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/0.5754, allocations: 2.604 MB / 0.5732 GB, free: 6.141 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002212/0.5776, allocations: 0.685 MB / 0.5738 GB, free: 5.453 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004763/0.5781, allocations: 287.4 kB / 0.5741 GB, free: 5.172 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/0.5781, allocations: 0 / 0.5741 GB, free: 5.172 MB / 478.1 MB Notification: Performance of Templates: time 0.09866/0.6768, allocations: 55.61 MB / 0.6284 GB, free: 13.74 MB / 0.5294 GB 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)