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.001116/0.001116, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009044/0.009044, allocations: 169.8 kB / 16.27 MB, free: 6.332 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.372/1.372, allocations: 205.4 MB / 222.5 MB, free: 5.551 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.0004273/0.0004274, allocations: 16 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2295, allocations: 47.58 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01198/0.2415, allocations: 13.93 MB / 341 MB, free: 5.402 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02811/0.2697, allocations: 19.65 MB / 360.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002699/0.2724, allocations: 35.81 kB / 360.6 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003616/0.2761, allocations: 1.092 MB / 361.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008848/0.2849, allocations: 1.93 MB / 363.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004705/0.2897, allocations: 1.16 MB / 364.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009862/0.2996, allocations: 6.343 MB / 371.2 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000785/0.3004, allocations: 446.1 kB / 371.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001384/0.3018, allocations: 0.9598 MB / 372.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.303, allocations: 1.086 MB / 373.6 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001516/0.3032, allocations: 44 kB / 373.7 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003519/0.3067, allocations: 1.136 MB / 374.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003456/0.3071, allocations: 293.5 kB / 375.1 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001463/0.3085, allocations: 1.434 MB / 376.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005291/0.3138, allocations: 3.84 MB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3139, allocations: 0 / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3139, allocations: 3.938 kB / 380.4 MB, free: 13.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.231e-05/0.314, allocations: 4 kB / 380.4 MB, free: 13.76 MB / 318.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.004756/0.3187, allocations: 3.358 MB / 383.8 MB, free: 10.33 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/0.3188, allocations: 8.031 kB / 383.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000436/0.3192, allocations: 422.8 kB / 384.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003508/0.3227, allocations: 2.503 MB / 386.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.3228, allocations: 40.94 kB / 386.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.323, allocations: 52 kB / 386.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3243, allocations: 0.7538 MB / 387.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.3244, allocations: 0 / 387.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.846e-05/0.3244, allocations: 20 kB / 387.5 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.17e-05/0.3245, allocations: 19.98 kB / 387.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.3261, allocations: 0.8631 MB / 388.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005295/0.3314, allocations: 3.139 MB / 391.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.3327, allocations: 0.6181 MB / 392.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00103/0.3337, allocations: 0.675 MB / 392.9 MB, free: 1.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02842/0.3621, allocations: 30.22 MB / 423.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007431/0.3629, allocations: 381.7 kB / 423.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.205e-06/0.3629, allocations: 0 / 423.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002153/0.3651, allocations: 1.175 MB / 424.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.3651, allocations: 63.33 kB / 424.7 MB, free: 13.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003465/0.3686, allocations: 3.111 MB / 427.8 MB, free: 9.969 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.332e-05/0.3687, allocations: 37.7 kB / 427.8 MB, free: 9.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/0.37, allocations: 1.573 MB / 429.4 MB, free: 8.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.3702, allocations: 169.6 kB / 429.6 MB, free: 8.172 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.3703, allocations: 73.67 kB / 429.6 MB, free: 8.094 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.3704, allocations: 345.9 kB / 430 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006139/0.3711, allocations: 261.9 kB / 430.2 MB, free: 7.496 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008351/0.3719, allocations: 0.6216 MB / 430.9 MB, free: 6.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.3734, allocations: 0.9443 MB / 431.8 MB, free: 5.586 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.3734, allocations: 4 kB / 431.8 MB, free: 5.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002054/0.3755, allocations: 1.295 MB / 433.1 MB, free: 4.277 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3755, allocations: 8 kB / 433.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000112/0.3756, allocations: 87.98 kB / 433.2 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.515e-05/0.3757, allocations: 16 kB / 433.2 MB, free: 4.168 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007127/0.3764, allocations: 216.1 kB / 433.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.794e-05/0.3764, allocations: 27.92 kB / 433.4 MB, free: 3.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009/0.3773, allocations: 119 kB / 433.6 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.3775, allocations: 68 kB / 433.6 MB, free: 3.746 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 (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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0006681/0.3781, allocations: 453.4 kB / 434.1 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003384/0.3785, allocations: 399.1 kB / 434.5 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00299/0.3815, allocations: 1.262 MB / 435.7 MB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3815, allocations: 4 kB / 435.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.3815, allocations: 0 / 435.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3815, allocations: 3.984 kB / 435.7 MB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003207/0.3847, allocations: 2.202 MB / 437.9 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.192e-05/0.3848, allocations: 75.98 kB / 438 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005087/0.3853, allocations: 107.9 kB / 438.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.3854, allocations: 0 / 438.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.775e-05/0.3854, allocations: 36 kB / 438.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3854, allocations: 0 / 438.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3854, allocations: 0 / 438.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.3878, allocations: 1.396 MB / 439.5 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000617/0.3884, allocations: 496 kB / 440 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002656/0.3887, allocations: 8 kB / 440 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006967/0.3894, allocations: 44.02 kB / 440.1 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.3896, allocations: 63.89 kB / 440.1 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.3896, allocations: 43.92 kB / 440.2 MB, free: 13.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002578/0.3922, allocations: 2.015 MB / 442.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3922, allocations: 4 kB / 442.2 MB, free: 11.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001276/0.3935, allocations: 0.5973 MB / 442.8 MB, free: 10.43 MB / 382.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 (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.001039/0.3946, allocations: 0.7689 MB / 443.6 MB, free: 9.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.3962, allocations: 0.8534 MB / 444.4 MB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3962, allocations: 0 / 444.4 MB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/0.3969, allocations: 471.5 kB / 444.9 MB, free: 8.293 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.399, allocations: 0.4954 MB / 445.4 MB, free: 7.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00625/0.4053, allocations: 5.517 MB / 450.9 MB, free: 2.238 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001083/0.4064, allocations: 1.722 MB / 452.6 MB, free: 500 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.4075, allocations: 353.4 kB / 453 MB, free: 140 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1465/0.5541, allocations: 157.5 kB / 453.1 MB, free: 115 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.5541, allocations: 2.312 kB / 453.1 MB, free: 115 MB / 382.1 MB Notification: Performance of Templates: time 0.04667/0.6008, allocations: 30.88 MB / 484 MB, free: 91.76 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)