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.001117/0.001117, allocations: 99 kB / 15.05 MB, free: 1.105 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.001276/0.001276, allocations: 177.3 kB / 15.95 MB, free: 216 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.536/1.536, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004637/0.0004638, allocations: 8 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2312/0.2317, allocations: 47.59 MB / 326.4 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01185/0.2436, allocations: 11.76 MB / 338.2 MB, free: 7.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02039/0.264, allocations: 17.06 MB / 355.3 MB, free: 6.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002318/0.2664, allocations: 35.81 kB / 355.3 MB, free: 6.605 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003352/0.2698, allocations: 0.9757 MB / 356.3 MB, free: 5.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007982/0.2778, allocations: 2.111 MB / 358.4 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004526/0.2823, allocations: 1.149 MB / 359.5 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01136/0.2937, allocations: 6.216 MB / 365.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007963/0.2946, allocations: 425 kB / 366.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001347/0.2959, allocations: 0.8512 MB / 367 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.297, allocations: 1.029 MB / 368 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001375/0.2972, allocations: 43.94 kB / 368.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004202/0.3014, allocations: 1.203 MB / 369.3 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003201/0.3017, allocations: 289.8 kB / 369.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007319/0.3025, allocations: 0.6599 MB / 370.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002711/0.3052, allocations: 2.794 MB / 373 MB, free: 4.793 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.3052, allocations: 0 / 373 MB, free: 4.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3052, allocations: 0 / 373 MB, free: 4.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.561e-05/0.3052, allocations: 3.938 kB / 373 MB, free: 4.789 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.005107/0.3104, allocations: 3.381 MB / 376.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.3104, allocations: 12.03 kB / 376.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004857/0.3109, allocations: 414.9 kB / 376.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003839/0.3148, allocations: 2.316 MB / 379.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.3148, allocations: 37 kB / 379.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.3149, allocations: 55.98 kB / 379.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.3163, allocations: 0.7421 MB / 380 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.3163, allocations: 0 / 380 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.172e-05/0.3164, allocations: 23.98 kB / 380 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/0.3164, allocations: 23.98 kB / 380 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.3179, allocations: 0.8631 MB / 380.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004756/0.3227, allocations: 3.116 MB / 384 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.3239, allocations: 0.6142 MB / 384.6 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0302/0.3541, allocations: 30.36 MB / 415 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007482/0.3549, allocations: 389.6 kB / 415.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.3549, allocations: 0 / 415.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002379/0.3573, allocations: 1.489 MB / 416.8 MB, free: 4.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/0.3573, allocations: 59.39 kB / 416.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00354/0.3609, allocations: 3.072 MB / 420 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.371e-05/0.3609, allocations: 37.7 kB / 420 MB, free: 1.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.3622, allocations: 1.569 MB / 421.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.3623, allocations: 169.6 kB / 421.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.249e-05/0.3624, allocations: 19.94 kB / 421.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.3625, allocations: 341.9 kB / 422.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005658/0.3631, allocations: 261.8 kB / 422.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008347/0.364, allocations: 0.6177 MB / 423 MB, free: 14.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006439/0.3646, allocations: 344.5 kB / 423.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.3646, allocations: 8 kB / 423.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002055/0.3667, allocations: 1.276 MB / 424.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.3667, allocations: 12 kB / 424.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001128/0.3668, allocations: 83.98 kB / 424.7 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.086e-05/0.3669, allocations: 23.94 kB / 424.7 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007127/0.3676, allocations: 211.9 kB / 424.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.618e-05/0.3676, allocations: 27.88 kB / 424.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.3686, allocations: 126.9 kB / 425.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.3687, allocations: 64 kB / 425.1 MB, free: 12.02 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.000724/0.3694, allocations: 449.5 kB / 425.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.3698, allocations: 399.1 kB / 426 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002908/0.3727, allocations: 1.274 MB / 427.2 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.3727, allocations: 8 kB / 427.2 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3727, allocations: 3.953 kB / 427.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.3727, allocations: 3.984 kB / 427.2 MB, free: 9.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.376, allocations: 2.182 MB / 429.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.008e-05/0.3761, allocations: 75.98 kB / 429.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.3766, allocations: 99.92 kB / 429.6 MB, free: 7.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.466e-06/0.3766, allocations: 7.953 kB / 429.6 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.432e-05/0.3767, allocations: 35.98 kB / 429.6 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.3767, allocations: 4 kB / 429.6 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3767, allocations: 3.984 kB / 429.7 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.379, allocations: 1.447 MB / 431.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008093/0.3798, allocations: 480 kB / 431.6 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.3801, allocations: 15.98 kB / 431.6 MB, free: 5.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006503/0.3808, allocations: 40.03 kB / 431.6 MB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001481/0.3809, allocations: 63.94 kB / 431.7 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-05/0.381, allocations: 39.98 kB / 431.7 MB, free: 5.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002575/0.3836, allocations: 1.98 MB / 433.7 MB, free: 3.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3836, allocations: 0 / 433.7 MB, free: 3.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001564/0.3851, allocations: 0.5972 MB / 434.3 MB, free: 2.691 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.001043/0.3862, allocations: 0.7378 MB / 435 MB, free: 1.945 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.3878, allocations: 0.8491 MB / 435.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3878, allocations: 128 / 435.9 MB, free: 1.078 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007469/0.3886, allocations: 467.1 kB / 436.3 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.39, allocations: 0.5109 MB / 436.9 MB, free: 80 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00616/0.3961, allocations: 5.143 MB / 442 MB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00109/0.3973, allocations: 1.784 MB / 443.8 MB, free: 9.086 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001137/0.3984, allocations: 361.4 kB / 444.1 MB, free: 8.727 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.3986, allocations: 147.4 kB / 444.3 MB, free: 8.586 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3986, allocations: 4 kB / 444.3 MB, free: 8.582 MB / 382.1 MB Notification: Performance of Templates: time 0.2135/0.6121, allocations: 29.24 MB / 473.5 MB, free: 102.4 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: