Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.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.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") translateModel(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000915/0.0009151, allocations: 84.38 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.001088/0.001089, 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.589/1.589, allocations: 205.4 MB / 222.1 MB, free: 5.633 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.000557/0.0005575, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3052, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.006391/0.3117, allocations: 5.422 MB / 331.9 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005642/0.3174, allocations: 2.009 MB / 333.9 MB, free: 11.49 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.3188, allocations: 24 kB / 333.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.3199, allocations: 206.9 kB / 334.1 MB, free: 11.33 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003188/0.3231, allocations: 0.6406 MB / 334.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001508/0.3246, allocations: 379.2 kB / 335.2 MB, free: 10.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.3271, allocations: 1.075 MB / 336.2 MB, free: 9.73 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002429/0.3295, allocations: 0.9375 MB / 337.2 MB, free: 8.742 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.3306, allocations: 374.4 kB / 337.5 MB, free: 8.375 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001213/0.3318, allocations: 457.9 kB / 338 MB, free: 7.926 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003474/0.3322, allocations: 48 kB / 338 MB, free: 7.879 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.3333, allocations: 199.8 kB / 338.2 MB, free: 7.684 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002948/0.3336, allocations: 175.2 kB / 338.4 MB, free: 7.512 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004812/0.3341, allocations: 213.2 kB / 338.6 MB, free: 7.297 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001592/0.3357, allocations: 1.071 MB / 339.7 MB, free: 6.223 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.132e-05/0.3357, allocations: 0 / 339.7 MB, free: 6.223 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3357, allocations: 0 / 339.7 MB, free: 6.223 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.521e-05/0.3358, allocations: 0 / 339.7 MB, free: 6.223 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003367/0.3392, allocations: 1.276 MB / 340.9 MB, free: 4.891 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.3392, allocations: 8.031 kB / 341 MB, free: 4.883 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/0.3423, allocations: 478.3 kB / 341.4 MB, free: 4.414 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.3435, allocations: 0.5567 MB / 342 MB, free: 3.816 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.44e-05/0.3436, allocations: 81.98 kB / 342.1 MB, free: 3.734 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002325/0.3439, allocations: 104 kB / 342.2 MB, free: 3.633 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.3463, allocations: 1.051 MB / 343.2 MB, free: 2.531 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.3464, allocations: 7.938 kB / 343.2 MB, free: 2.523 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.3465, allocations: 43.98 kB / 343.3 MB, free: 2.48 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.832e-05/0.3465, allocations: 28 kB / 343.3 MB, free: 2.453 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001933/0.3485, allocations: 0.9253 MB / 344.2 MB, free: 1.531 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006404/0.3549, allocations: 3.769 MB / 348 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/0.3576, allocations: 2.498 MB / 350.5 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009157/0.3585, allocations: 483.4 kB / 351 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000113/0.3587, allocations: 97.75 kB / 351.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008957/0.3596, allocations: 0.5008 MB / 351.6 MB, free: 9.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 3.957e-06/0.3596, allocations: 0 / 351.6 MB, free: 9.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=86): time 0.004236/0.3638, allocations: 1.722 MB / 353.3 MB, free: 7.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001352/0.364, allocations: 188.9 kB / 353.5 MB, free: 7.59 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005861/0.3646, allocations: 478 kB / 353.9 MB, free: 7.109 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.199e-05/0.3646, allocations: 41.7 kB / 354 MB, free: 7.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.365, allocations: 431.3 kB / 354.4 MB, free: 6.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/0.3652, allocations: 280 kB / 354.7 MB, free: 6.355 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.3653, allocations: 20 kB / 354.7 MB, free: 6.336 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.3655, allocations: 382.7 kB / 355.1 MB, free: 5.953 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/0.366, allocations: 281.9 kB / 355.3 MB, free: 5.68 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007532/0.3668, allocations: 0.5278 MB / 355.9 MB, free: 5.051 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006522/0.3675, allocations: 347 kB / 356.2 MB, free: 4.711 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.3675, allocations: 4 kB / 356.2 MB, free: 4.707 MB / 286.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002004/0.3695, allocations: 1.08 MB / 357.3 MB, free: 3.613 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.3695, allocations: 16.17 kB / 357.3 MB, free: 3.598 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.3696, allocations: 7.938 kB / 357.3 MB, free: 3.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008596/0.3704, allocations: 271.6 kB / 357.6 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005805/0.371, allocations: 167.7 kB / 357.7 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005604/0.3766, allocations: 4.387 MB / 362.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006587/0.3773, allocations: 111.1 kB / 362.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.551e-05/0.3774, allocations: 36 kB / 362.3 MB, free: 14.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005142/0.3779, allocations: 253.6 kB / 362.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3781, allocations: 67.16 kB / 362.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.38, allocations: 0.9871 MB / 363.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.38, allocations: 8 kB / 363.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.38, allocations: 7.938 kB / 363.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.38, allocations: 7.984 kB / 363.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003236/0.3833, allocations: 1.966 MB / 365.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3833, allocations: 0 / 365.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004264/0.3837, allocations: 103.9 kB / 365.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007481/0.3845, allocations: 266 kB / 365.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.674e-05/0.3846, allocations: 19.98 kB / 365.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005422/0.39, allocations: 4.349 MB / 370.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.39, allocations: 0 / 370.3 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002458/0.3925, allocations: 1.408 MB / 371.7 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.3929, allocations: 227.9 kB / 371.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.393, allocations: 28 kB / 371.9 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004632/0.3935, allocations: 47.97 kB / 372 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.3937, allocations: 64.89 kB / 372.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.437e-05/0.3937, allocations: 32 kB / 372.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004218/0.3942, allocations: 314.9 kB / 372.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3942, allocations: 0 / 372.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001285/0.3955, allocations: 319.2 kB / 372.7 MB, free: 3.508 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003242/0.3958, allocations: 155 kB / 372.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.3978, allocations: 1.119 MB / 374 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.3978, allocations: 1.25 kB / 374 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001176/0.399, allocations: 0.747 MB / 374.7 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007334/0.3998, allocations: 109.9 kB / 374.8 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.4034, allocations: 2.078 MB / 376.9 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007171/0.4041, allocations: 0.9944 MB / 377.9 MB, free: 14.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004179/0.4045, allocations: 85.66 kB / 378 MB, free: 14.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.4047, allocations: 51.42 kB / 378 MB, free: 14.04 MB / 318.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4047, allocations: 0 / 378 MB, free: 14.04 MB / 318.1 MB Notification: Performance of Templates: time 0.0199/0.4246, allocations: 11.14 MB / 389.2 MB, free: 2.891 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)