Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001446/0.001446, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.321/1.321, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001262/0.001262, allocations: 63.91 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1834/0.1847, allocations: 46.63 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.006558/0.1913, allocations: 6.257 MB / 331.6 MB, free: 12.86 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003291/0.1946, allocations: 2.173 MB / 333.7 MB, free: 11.08 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003294/0.195, allocations: 25 kB / 333.8 MB, free: 11.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.1967, allocations: 0.7534 MB / 334.5 MB, free: 10.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.1982, allocations: 0.7814 MB / 335.3 MB, free: 9.879 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000867/0.199, allocations: 0.4962 MB / 335.8 MB, free: 9.395 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.2001, allocations: 1.187 MB / 337 MB, free: 8.203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/0.2011, allocations: 0.8315 MB / 337.8 MB, free: 7.352 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004475/0.2016, allocations: 462.3 kB / 338.3 MB, free: 6.898 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006043/0.2022, allocations: 0.5483 MB / 338.8 MB, free: 6.348 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001479/0.2023, allocations: 112 kB / 338.9 MB, free: 6.238 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004424/0.2028, allocations: 271.8 kB / 339.2 MB, free: 5.973 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.203, allocations: 255.1 kB / 339.4 MB, free: 5.723 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004648/0.2035, allocations: 0.5519 MB / 340 MB, free: 5.168 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.2047, allocations: 1.441 MB / 341.4 MB, free: 3.723 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2047, allocations: 0 / 341.4 MB, free: 3.723 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2047, allocations: 4 kB / 341.4 MB, free: 3.719 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2048, allocations: 0 / 341.4 MB, free: 3.719 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.002733/0.2075, allocations: 1.436 MB / 342.9 MB, free: 2.227 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.2075, allocations: 8.031 kB / 342.9 MB, free: 2.219 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002932/0.2105, allocations: 475.2 kB / 343.3 MB, free: 1.754 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007736/0.2113, allocations: 0.5655 MB / 343.9 MB, free: 1.145 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.756e-05/0.2113, allocations: 78.41 kB / 344 MB, free: 1.066 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.2115, allocations: 104.4 kB / 344.1 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.2132, allocations: 1.055 MB / 345.1 MB, free: 15.86 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.98e-05/0.2132, allocations: 7.938 kB / 345.2 MB, free: 15.85 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.453e-05/0.2133, allocations: 44 kB / 345.2 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.922e-05/0.2133, allocations: 24 kB / 345.2 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.2151, allocations: 0.9174 MB / 346.1 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005134/0.2202, allocations: 3.75 MB / 349.9 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002713/0.2229, allocations: 2.486 MB / 352.4 MB, free: 8.078 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009464/0.2239, allocations: 471.4 kB / 352.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.607e-05/0.224, allocations: 97.75 kB / 352.9 MB, free: 7.496 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008364/0.2248, allocations: 0.493 MB / 353.4 MB, free: 6.973 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.264e-06/0.2249, allocations: 0 / 353.4 MB, free: 6.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=86): time 0.004406/0.2293, allocations: 1.694 MB / 355.1 MB, free: 5.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.973e-05/0.2294, allocations: 204.9 kB / 355.3 MB, free: 4.988 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005295/0.2299, allocations: 470 kB / 355.8 MB, free: 4.516 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.787e-05/0.23, allocations: 49.73 kB / 355.8 MB, free: 4.461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.2303, allocations: 431.4 kB / 356.2 MB, free: 4.031 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002142/0.2305, allocations: 280 kB / 356.5 MB, free: 3.754 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.2307, allocations: 162.6 kB / 356.7 MB, free: 3.59 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2309, allocations: 374.7 kB / 357 MB, free: 3.215 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005754/0.2315, allocations: 277.9 kB / 357.3 MB, free: 2.941 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007455/0.2322, allocations: 0.5239 MB / 357.8 MB, free: 2.316 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.2335, allocations: 0.7992 MB / 358.6 MB, free: 1.422 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2335, allocations: 4 kB / 358.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001913/0.2354, allocations: 1.076 MB / 359.7 MB, free: 336 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.2355, allocations: 8 kB / 359.7 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.2355, allocations: 12.22 kB / 359.7 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000847/0.2363, allocations: 277.4 kB / 360 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.2369, allocations: 167.7 kB / 360.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005253/0.2422, allocations: 4.851 MB / 365 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005797/0.2428, allocations: 107 kB / 365.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.684e-05/0.2428, allocations: 40 kB / 365.2 MB, free: 10.6 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,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003589/0.2432, allocations: 253.7 kB / 365.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.2433, allocations: 75.09 kB / 365.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001953/0.2453, allocations: 0.9559 MB / 366.4 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.2453, allocations: 8 kB / 366.5 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.2453, allocations: 11.94 kB / 366.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.2453, allocations: 7.969 kB / 366.5 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/0.2484, allocations: 1.931 MB / 368.4 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/0.2484, allocations: 4 kB / 368.4 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.2488, allocations: 103.8 kB / 368.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000736/0.2496, allocations: 277.5 kB / 368.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.947e-05/0.2496, allocations: 20 kB / 368.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/0.2546, allocations: 4.805 MB / 373.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.2546, allocations: 4.031 kB / 373.6 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.257, allocations: 1.396 MB / 375 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.2572, allocations: 216 kB / 375.2 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.174e-05/0.2573, allocations: 16 kB / 375.2 MB, free: 108 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004458/0.2578, allocations: 43.97 kB / 375.3 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001611/0.2579, allocations: 68.95 kB / 375.3 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.92e-05/0.258, allocations: 27.94 kB / 375.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003382/0.2583, allocations: 326.8 kB / 375.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.373e-06/0.2583, allocations: 0 / 375.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009857/0.2593, allocations: 315 kB / 376 MB, free: 15.34 MB / 318.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002197/0.2596, allocations: 159.7 kB / 376.2 MB, free: 15.18 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00217/0.2617, allocations: 1.143 MB / 377.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.2618, allocations: 0 / 377.3 MB, free: 14.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.2629, allocations: 0.7398 MB / 378 MB, free: 13.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.2635, allocations: 118.1 kB / 378.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.2662, allocations: 1.699 MB / 379.8 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.2667, allocations: 1.002 MB / 380.8 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003346/0.2671, allocations: 89.66 kB / 380.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.2672, allocations: 47.42 kB / 381 MB, free: 10.23 MB / 318.1 MB Notification: Performance of SimCode: time 1.91e-07/0.2672, allocations: 0 / 381 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Templates: time 0.01931/0.2865, allocations: 12.53 MB / 393.5 MB, free: 13.68 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)