Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0008684/0.0008684, allocations: 90.19 kB / 16.31 MB, free: 5.613 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.001019/0.001019, allocations: 183.4 kB / 17.21 MB, free: 5.527 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.621/1.621, allocations: 205.4 MB / 223.4 MB, free: 5.574 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.0004698/0.0004699, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2544, allocations: 47.59 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01155/0.266, allocations: 12.93 MB / 340.7 MB, free: 6.555 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02088/0.287, allocations: 18 MB / 358.7 MB, free: 4.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002818/0.2898, allocations: 27.81 kB / 358.7 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003427/0.2933, allocations: 0.9525 MB / 359.6 MB, free: 3.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008432/0.3017, allocations: 1.851 MB / 361.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004237/0.306, allocations: 1.069 MB / 362.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01019/0.3162, allocations: 6.04 MB / 368.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008231/0.317, allocations: 437 kB / 369 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.3183, allocations: 0.8745 MB / 369.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.3194, allocations: 1.025 MB / 370.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.3195, allocations: 44 kB / 371 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00346/0.323, allocations: 1.066 MB / 372 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002922/0.3233, allocations: 289.8 kB / 372.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006973/0.324, allocations: 0.656 MB / 373 MB, free: 6.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002683/0.3267, allocations: 2.882 MB / 375.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3267, allocations: 0 / 375.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3267, allocations: 0 / 375.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.774e-05/0.3268, allocations: 4 kB / 375.9 MB, free: 3.195 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.004435/0.3312, allocations: 3.401 MB / 379.3 MB, free: 15.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3313, allocations: 12.03 kB / 379.3 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003752/0.3317, allocations: 410.9 kB / 379.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003144/0.3348, allocations: 2.331 MB / 382 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.3349, allocations: 37 kB / 382 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.335, allocations: 52 kB / 382.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001257/0.3362, allocations: 0.746 MB / 382.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3363, allocations: 0 / 382.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.233e-05/0.3363, allocations: 19.98 kB / 382.9 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.136e-05/0.3364, allocations: 23.98 kB / 382.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.3378, allocations: 0.8554 MB / 383.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00462/0.3424, allocations: 3.151 MB / 386.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.3436, allocations: 0.6103 MB / 387.5 MB, free: 7.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009802/0.3446, allocations: 0.6634 MB / 388.2 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03096/0.3756, allocations: 30.22 MB / 418.4 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007432/0.3763, allocations: 397.5 kB / 418.8 MB, free: 3.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.504e-06/0.3764, allocations: 4 kB / 418.8 MB, free: 3.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002141/0.3785, allocations: 1.171 MB / 419.9 MB, free: 2.738 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3786, allocations: 67.34 kB / 420 MB, free: 2.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.3823, allocations: 3.072 MB / 423.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.3824, allocations: 33.7 kB / 423.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001464/0.3839, allocations: 1.573 MB / 424.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/0.3842, allocations: 165.7 kB / 424.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.471e-05/0.3842, allocations: 16 kB / 424.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002264/0.3845, allocations: 337.9 kB / 425.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.385, allocations: 261.9 kB / 425.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007986/0.3859, allocations: 0.6254 MB / 426.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006536/0.3865, allocations: 340.5 kB / 426.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.3865, allocations: 4 kB / 426.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002111/0.3886, allocations: 1.276 MB / 427.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.3887, allocations: 12.97 kB / 427.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001166/0.3888, allocations: 87.94 kB / 427.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.939e-05/0.3888, allocations: 20 kB / 427.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006619/0.3895, allocations: 215.6 kB / 428 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.588e-05/0.3895, allocations: 27.92 kB / 428 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008481/0.3904, allocations: 126.9 kB / 428.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.3905, allocations: 64 kB / 428.2 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.0008156/0.3913, allocations: 453.5 kB / 428.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003612/0.3917, allocations: 403.1 kB / 429.1 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002991/0.3947, allocations: 1.266 MB / 430.3 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.3947, allocations: 11.95 kB / 430.3 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3947, allocations: 0 / 430.3 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3948, allocations: 3.984 kB / 430.3 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.398, allocations: 2.19 MB / 432.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.837e-05/0.3981, allocations: 75.94 kB / 432.6 MB, free: 5.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004425/0.3986, allocations: 107.9 kB / 432.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.3986, allocations: 4 kB / 432.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.207e-05/0.3987, allocations: 28 kB / 432.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3987, allocations: 0 / 432.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.3987, allocations: 4 kB / 432.7 MB, free: 5.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.4009, allocations: 1.388 MB / 434.1 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000622/0.4016, allocations: 500 kB / 434.6 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002661/0.4018, allocations: 12 kB / 434.6 MB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005932/0.4024, allocations: 39.95 kB / 434.7 MB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.4026, allocations: 64 kB / 434.7 MB, free: 3.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.769e-05/0.4027, allocations: 36 kB / 434.8 MB, free: 3.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.405, allocations: 1.984 MB / 436.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.405, allocations: 0 / 436.8 MB, free: 1.562 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001346/0.4064, allocations: 0.6011 MB / 437.4 MB, free: 0.9609 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.0009832/0.4074, allocations: 0.7455 MB / 438.1 MB, free: 212 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001545/0.4089, allocations: 0.8491 MB / 439 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.409, allocations: 0 / 439 MB, free: 15.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.4097, allocations: 471.2 kB / 439.4 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.001571/0.4113, allocations: 0.5071 MB / 439.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006558/0.4178, allocations: 5.154 MB / 445.1 MB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.419, allocations: 1.714 MB / 446.8 MB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001216/0.4202, allocations: 365.4 kB / 447.1 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.4204, allocations: 147.4 kB / 447.3 MB, free: 6.895 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4204, allocations: 0 / 447.3 MB, free: 6.895 MB / 382.1 MB Notification: Performance of Templates: time 0.2037/0.6242, allocations: 29.94 MB / 477.2 MB, free: 101 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1)