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.001022/0.001021, allocations: 99.7 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.001253/0.001254, allocations: 177.3 kB / 15.94 MB, free: 228 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.501/1.501, allocations: 205.4 MB / 222.1 MB, free: 5.523 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.0006017/0.0006017, allocations: 12 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2502, allocations: 47.58 MB / 326.4 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01142/0.2617, allocations: 11.75 MB / 338.2 MB, free: 7.723 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02122/0.2829, allocations: 17.06 MB / 355.2 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003452/0.2864, allocations: 31.81 kB / 355.3 MB, free: 6.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003639/0.2901, allocations: 0.9835 MB / 356.3 MB, free: 5.598 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008391/0.2985, allocations: 2.115 MB / 358.4 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004225/0.3028, allocations: 1.137 MB / 359.5 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01134/0.3141, allocations: 6.197 MB / 365.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008094/0.315, allocations: 437 kB / 366.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.3163, allocations: 0.8512 MB / 367 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.3175, allocations: 1.025 MB / 368 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001504/0.3176, allocations: 51.94 kB / 368.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004105/0.3217, allocations: 1.21 MB / 369.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004663/0.3222, allocations: 285.8 kB / 369.6 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008875/0.3231, allocations: 0.6521 MB / 370.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003511/0.3266, allocations: 2.79 MB / 373 MB, free: 4.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3267, allocations: 0 / 373 MB, free: 4.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.536e-06/0.3267, allocations: 0 / 373 MB, free: 4.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.405e-05/0.3268, allocations: 4 kB / 373 MB, free: 4.781 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.005533/0.3323, allocations: 3.385 MB / 376.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.3324, allocations: 12.02 kB / 376.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004727/0.3329, allocations: 414.9 kB / 376.8 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00465/0.3375, allocations: 2.316 MB / 379.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.818e-05/0.3376, allocations: 33 kB / 379.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.3378, allocations: 52 kB / 379.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.3392, allocations: 0.746 MB / 379.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3392, allocations: 4 kB / 380 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.3393, allocations: 16 kB / 380 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.606e-05/0.3393, allocations: 27.97 kB / 380 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.3409, allocations: 0.8592 MB / 380.9 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005734/0.3466, allocations: 3.112 MB / 384 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.3479, allocations: 0.622 MB / 384.6 MB, free: 8.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02966/0.3775, allocations: 30.36 MB / 414.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007919/0.3784, allocations: 393.6 kB / 415.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.315e-06/0.3784, allocations: 0 / 415.3 MB, free: 6.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002416/0.3808, allocations: 1.489 MB / 416.8 MB, free: 4.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.3809, allocations: 59.41 kB / 416.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003689/0.3846, allocations: 3.072 MB / 419.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.907e-05/0.3847, allocations: 37.7 kB / 420 MB, free: 1.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001305/0.386, allocations: 1.569 MB / 421.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.3861, allocations: 177.6 kB / 421.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.252e-05/0.3862, allocations: 16 kB / 421.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3863, allocations: 337.9 kB / 422.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/0.3869, allocations: 261.8 kB / 422.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.3877, allocations: 0.6216 MB / 422.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006605/0.3884, allocations: 340.5 kB / 423.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3884, allocations: 4 kB / 423.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002205/0.3906, allocations: 1.279 MB / 424.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.3907, allocations: 9 kB / 424.6 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.3908, allocations: 87.92 kB / 424.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.044e-05/0.3908, allocations: 24 kB / 424.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007209/0.3915, allocations: 211.6 kB / 424.9 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.392e-05/0.3916, allocations: 31.81 kB / 424.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009826/0.3926, allocations: 122.9 kB / 425 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.3927, allocations: 71.97 kB / 425.1 MB, free: 12 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.0008521/0.3935, allocations: 445.5 kB / 425.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000459/0.394, allocations: 399.1 kB / 425.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.3971, allocations: 1.286 MB / 427.2 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3972, allocations: 4 kB / 427.2 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3972, allocations: 3.953 kB / 427.2 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3972, allocations: 4 kB / 427.2 MB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003455/0.4007, allocations: 2.182 MB / 429.4 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001014/0.4008, allocations: 71.98 kB / 429.5 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004949/0.4013, allocations: 107.9 kB / 429.6 MB, free: 7.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.4013, allocations: 3.953 kB / 429.6 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.572e-05/0.4014, allocations: 31.98 kB / 429.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.4014, allocations: 4 kB / 429.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4014, allocations: 0 / 429.6 MB, free: 7.387 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.4038, allocations: 1.447 MB / 431.1 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008822/0.4047, allocations: 488 kB / 431.6 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002921/0.405, allocations: 12 kB / 431.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006705/0.4056, allocations: 39.95 kB / 431.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.4058, allocations: 64 kB / 431.7 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-05/0.4059, allocations: 39.98 kB / 431.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002535/0.4085, allocations: 1.984 MB / 433.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4085, allocations: 0 / 433.7 MB, free: 3.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001604/0.4101, allocations: 0.5973 MB / 434.3 MB, free: 2.668 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.001193/0.4113, allocations: 0.7417 MB / 435 MB, free: 1.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.413, allocations: 0.8491 MB / 435.9 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.413, allocations: 0 / 435.9 MB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007749/0.4138, allocations: 463.2 kB / 436.3 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.4153, allocations: 0.507 MB / 436.8 MB, free: 60 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006889/0.4222, allocations: 5.143 MB / 442 MB, free: 10.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.4235, allocations: 1.781 MB / 443.8 MB, free: 9.07 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001314/0.4248, allocations: 365.4 kB / 444.1 MB, free: 8.707 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000243/0.4251, allocations: 151.4 kB / 444.3 MB, free: 8.562 MB / 382.1 MB Notification: Performance of SimCode: time 1.412e-06/0.4251, allocations: 0 / 444.3 MB, free: 8.562 MB / 382.1 MB Notification: Performance of Templates: time 0.1969/0.622, allocations: 29.25 MB / 473.5 MB, free: 103.6 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: