Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001009/0.001009, allocations: 86.41 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.00189/0.00189, 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.438/1.438, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.000458/0.0004581, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2323, allocations: 47.59 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01202/0.2444, allocations: 12.93 MB / 339.4 MB, free: 6.559 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02237/0.2668, allocations: 18.01 MB / 357.4 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002755/0.2696, allocations: 27.81 kB / 357.4 MB, free: 4.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003623/0.2732, allocations: 0.9563 MB / 358.4 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009154/0.2824, allocations: 1.855 MB / 360.2 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005824/0.2883, allocations: 1.065 MB / 361.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0113/0.2996, allocations: 6.028 MB / 367.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001362/0.3011, allocations: 437 kB / 367.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001661/0.3028, allocations: 0.8706 MB / 368.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001746/0.3045, allocations: 1.029 MB / 369.7 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004217/0.305, allocations: 44 kB / 369.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005257/0.3102, allocations: 1.07 MB / 370.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006769/0.311, allocations: 281.8 kB / 371.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001615/0.3126, allocations: 0.6559 MB / 371.7 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004509/0.3171, allocations: 2.886 MB / 374.6 MB, free: 3.203 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.605e-06/0.3172, allocations: 4 kB / 374.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3172, allocations: 0 / 374.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002063/0.3174, allocations: 0 / 374.6 MB, free: 3.199 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.006747/0.3241, allocations: 3.401 MB / 378 MB, free: 15.72 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.3242, allocations: 12.03 kB / 378 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007721/0.325, allocations: 410.9 kB / 378.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00503/0.33, allocations: 2.323 MB / 380.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.142e-05/0.3301, allocations: 44.98 kB / 380.8 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002246/0.3303, allocations: 52 kB / 380.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001521/0.3319, allocations: 0.7421 MB / 381.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3319, allocations: 3.938 kB / 381.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.025e-05/0.332, allocations: 20 kB / 381.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/0.332, allocations: 19.98 kB / 381.6 MB, free: 12.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.3337, allocations: 0.8632 MB / 382.5 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005879/0.3396, allocations: 3.139 MB / 385.6 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3408, allocations: 0.6142 MB / 386.2 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009899/0.3418, allocations: 0.6634 MB / 386.9 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02864/0.3705, allocations: 30.23 MB / 417.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000753/0.3713, allocations: 393.5 kB / 417.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.776e-06/0.3713, allocations: 0 / 417.5 MB, free: 3.926 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002419/0.3737, allocations: 1.178 MB / 418.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.3738, allocations: 59.41 kB / 418.7 MB, free: 2.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004533/0.3783, allocations: 3.068 MB / 421.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.975e-05/0.3784, allocations: 41.69 kB / 421.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/0.3799, allocations: 1.573 MB / 423.4 MB, free: 13.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002013/0.3801, allocations: 165.7 kB / 423.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.938e-05/0.3802, allocations: 16 kB / 423.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.3803, allocations: 337.9 kB / 423.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005959/0.3809, allocations: 261.9 kB / 424.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007874/0.3817, allocations: 0.6255 MB / 424.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/0.3824, allocations: 348.4 kB / 425.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.816e-06/0.3824, allocations: 4 kB / 425.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00232/0.3848, allocations: 1.276 MB / 426.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.3848, allocations: 12 kB / 426.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.3849, allocations: 87.94 kB / 426.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.369e-05/0.385, allocations: 20.72 kB / 426.6 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00071/0.3857, allocations: 211.6 kB / 426.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.803e-05/0.3857, allocations: 35.84 kB / 426.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.3868, allocations: 122.9 kB / 426.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.3869, allocations: 67.98 kB / 427 MB, free: 10.23 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.0008808/0.3878, allocations: 453.5 kB / 427.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006959/0.3885, allocations: 399.1 kB / 427.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00338/0.3919, allocations: 1.258 MB / 429.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.3919, allocations: 7.953 kB / 429.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3919, allocations: 8 kB / 429.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3919, allocations: 3.984 kB / 429.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004024/0.396, allocations: 2.186 MB / 431.3 MB, free: 5.836 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001074/0.3961, allocations: 71.95 kB / 431.3 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004685/0.3966, allocations: 107.9 kB / 431.5 MB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/0.3966, allocations: 4 kB / 431.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.977e-05/0.3967, allocations: 32 kB / 431.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.3967, allocations: 0 / 431.5 MB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.3967, allocations: 11.88 kB / 431.5 MB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00257/0.3993, allocations: 1.388 MB / 432.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001387/0.4007, allocations: 500 kB / 433.4 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008133/0.4015, allocations: 8 kB / 433.4 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.4028, allocations: 39.97 kB / 433.4 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.4031, allocations: 55.94 kB / 433.5 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001567/0.4032, allocations: 48.05 kB / 433.5 MB, free: 3.535 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004227/0.4075, allocations: 1.98 MB / 435.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.72e-07/0.4075, allocations: 0 / 435.5 MB, free: 1.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002554/0.4101, allocations: 0.5972 MB / 436.1 MB, free: 0.9648 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.001367/0.4115, allocations: 0.7572 MB / 436.9 MB, free: 204 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001971/0.4134, allocations: 0.8413 MB / 437.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4135, allocations: 0 / 437.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008993/0.4144, allocations: 467.2 kB / 438.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/0.4178, allocations: 0.5071 MB / 438.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008023/0.4259, allocations: 5.158 MB / 443.8 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001199/0.4271, allocations: 1.718 MB / 445.5 MB, free: 7.398 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001432/0.4285, allocations: 361.4 kB / 445.9 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.4288, allocations: 151.4 kB / 446 MB, free: 6.891 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4288, allocations: 0 / 446 MB, free: 6.891 MB / 382.1 MB Notification: Performance of Templates: time 0.2189/0.6477, allocations: 29.93 MB / 476 MB, free: 100.6 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)