Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001001, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001113/0.001113, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.643/1.643, allocations: 205.4 MB / 222.1 MB, free: 5.383 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.0004434/0.0004435, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2759, allocations: 47.58 MB / 326.5 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01215/0.2881, allocations: 12.93 MB / 339.4 MB, free: 6.539 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02458/0.3127, allocations: 18 MB / 357.4 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003644/0.3164, allocations: 31.81 kB / 357.4 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003847/0.3203, allocations: 0.9486 MB / 358.4 MB, free: 3.496 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008541/0.3288, allocations: 1.859 MB / 360.2 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005125/0.334, allocations: 1.069 MB / 361.3 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01203/0.346, allocations: 6.036 MB / 367.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.3473, allocations: 437 kB / 367.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/0.3489, allocations: 0.8745 MB / 368.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.35, allocations: 1.029 MB / 369.7 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001357/0.3501, allocations: 40 kB / 369.7 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003908/0.3541, allocations: 1.074 MB / 370.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003038/0.3544, allocations: 281.8 kB / 371.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008896/0.3553, allocations: 0.6521 MB / 371.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003087/0.3584, allocations: 2.886 MB / 374.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.3584, allocations: 0 / 374.6 MB, free: 3.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3584, allocations: 4 kB / 374.6 MB, free: 3.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.67e-05/0.3584, allocations: 0 / 374.6 MB, free: 3.172 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005167/0.3636, allocations: 3.401 MB / 378 MB, free: 15.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.3637, allocations: 11.97 kB / 378 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004137/0.3641, allocations: 418.8 kB / 378.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003386/0.3675, allocations: 2.32 MB / 380.7 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.596e-05/0.3675, allocations: 40.98 kB / 380.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.3677, allocations: 55.91 kB / 380.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.369, allocations: 0.75 MB / 381.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.369, allocations: 0 / 381.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.341e-05/0.3691, allocations: 16 kB / 381.6 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.202e-05/0.3691, allocations: 19.98 kB / 381.6 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.3706, allocations: 0.867 MB / 382.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00488/0.3755, allocations: 3.127 MB / 385.6 MB, free: 7.922 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.3767, allocations: 0.6181 MB / 386.2 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000997/0.3777, allocations: 0.6673 MB / 386.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02933/0.4071, allocations: 30.23 MB / 417.1 MB, free: 4.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007528/0.4079, allocations: 385.7 kB / 417.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.286e-06/0.4079, allocations: 4 kB / 417.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002515/0.4104, allocations: 1.171 MB / 418.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.291e-05/0.4105, allocations: 63.34 kB / 418.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004067/0.4146, allocations: 3.068 MB / 421.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.4146, allocations: 37.69 kB / 421.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/0.416, allocations: 1.577 MB / 423.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.4162, allocations: 165.7 kB / 423.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.826e-05/0.4162, allocations: 16 kB / 423.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.4164, allocations: 337.9 kB / 423.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00056/0.4169, allocations: 261.9 kB / 424.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008134/0.4177, allocations: 0.6216 MB / 424.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006674/0.4184, allocations: 348.5 kB / 425.2 MB, free: 12.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/0.4184, allocations: 4 kB / 425.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002189/0.4206, allocations: 1.284 MB / 426.4 MB, free: 10.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.4207, allocations: 8 kB / 426.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/0.4208, allocations: 84 kB / 426.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.908e-05/0.4209, allocations: 31.88 kB / 426.6 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00068/0.4215, allocations: 208.3 kB / 426.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.797e-05/0.4216, allocations: 31.84 kB / 426.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001054/0.4226, allocations: 122.9 kB / 426.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.4228, allocations: 71.98 kB / 427 MB, free: 10.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008674/0.4236, allocations: 449.5 kB / 427.4 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.424, allocations: 399.1 kB / 427.8 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002835/0.4269, allocations: 1.258 MB / 429.1 MB, free: 8.078 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.4269, allocations: 7.953 kB / 429.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.4269, allocations: 0 / 429.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.4269, allocations: 7.984 kB / 429.1 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003133/0.43, allocations: 2.19 MB / 431.3 MB, free: 5.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001022/0.4302, allocations: 68 kB / 431.3 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004754/0.4306, allocations: 119.9 kB / 431.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.4307, allocations: 0 / 431.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.855e-05/0.4307, allocations: 28 kB / 431.5 MB, free: 5.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.4307, allocations: 7.938 kB / 431.5 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.4307, allocations: 0 / 431.5 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.4329, allocations: 1.388 MB / 432.9 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007268/0.4337, allocations: 492 kB / 433.4 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002699/0.434, allocations: 20.02 kB / 433.4 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006278/0.4346, allocations: 35.97 kB / 433.4 MB, free: 3.613 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.4347, allocations: 63.94 kB / 433.5 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-05/0.4348, allocations: 39.98 kB / 433.5 MB, free: 3.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002672/0.4375, allocations: 1.984 MB / 435.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4375, allocations: 0 / 435.5 MB, free: 1.535 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00162/0.4392, allocations: 0.6012 MB / 436.1 MB, free: 0.9336 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/0.4402, allocations: 0.7456 MB / 436.9 MB, free: 184 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.4419, allocations: 0.8452 MB / 437.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4419, allocations: 0 / 437.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007259/0.4426, allocations: 467.2 kB / 438.2 MB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.4444, allocations: 0.511 MB / 438.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007052/0.4515, allocations: 5.139 MB / 443.8 MB, free: 9.137 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.4526, allocations: 1.722 MB / 445.5 MB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001393/0.454, allocations: 361.4 kB / 445.9 MB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002368/0.4543, allocations: 155.4 kB / 446 MB, free: 6.875 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4543, allocations: 4 kB / 446 MB, free: 6.871 MB / 382.1 MB Notification: Performance of Templates: time 0.228/0.6823, allocations: 29.93 MB / 476 MB, free: 99.74 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)