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.0009495/0.0009495, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001081/0.001081, allocations: 191 kB / 16.25 MB, free: 6.621 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.376/1.376, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001178/0.001178, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2532/0.2544, allocations: 46.62 MB / 324.9 MB, free: 1.906 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.007331/0.2618, allocations: 6.241 MB / 331.1 MB, free: 12.96 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004719/0.2666, allocations: 2.142 MB / 333.2 MB, free: 11.21 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001085/0.2678, allocations: 21.81 kB / 333.3 MB, free: 11.21 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.2699, allocations: 0.6871 MB / 333.9 MB, free: 10.7 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002506/0.2725, allocations: 0.7165 MB / 334.7 MB, free: 10.15 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.2736, allocations: 445.3 kB / 335.1 MB, free: 9.801 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001719/0.2754, allocations: 1.192 MB / 336.3 MB, free: 8.637 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.2767, allocations: 0.8705 MB / 337.2 MB, free: 7.742 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006172/0.2773, allocations: 462.3 kB / 337.6 MB, free: 7.289 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005923/0.2779, allocations: 0.5406 MB / 338.1 MB, free: 6.746 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.2781, allocations: 112 kB / 338.3 MB, free: 6.637 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006816/0.2788, allocations: 271.8 kB / 338.5 MB, free: 6.371 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.279, allocations: 255.1 kB / 338.8 MB, free: 6.121 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004819/0.2795, allocations: 0.5519 MB / 339.3 MB, free: 5.566 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00154/0.281, allocations: 1.444 MB / 340.8 MB, free: 4.117 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.281, allocations: 0 / 340.8 MB, free: 4.117 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.281, allocations: 0 / 340.8 MB, free: 4.117 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.068e-05/0.2811, allocations: 0 / 340.8 MB, free: 4.117 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.003209/0.2843, allocations: 1.44 MB / 342.2 MB, free: 2.621 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.2843, allocations: 12.03 kB / 342.2 MB, free: 2.609 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002938/0.2873, allocations: 475.2 kB / 342.7 MB, free: 2.145 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008623/0.2882, allocations: 0.5695 MB / 343.3 MB, free: 1.531 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.148e-05/0.2882, allocations: 74.41 kB / 343.3 MB, free: 1.457 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001376/0.2884, allocations: 104.4 kB / 343.4 MB, free: 1.355 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.2902, allocations: 1.059 MB / 344.5 MB, free: 252 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.2903, allocations: 4 kB / 344.5 MB, free: 248 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.922e-05/0.2904, allocations: 40 kB / 344.5 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.612e-05/0.2904, allocations: 24 kB / 344.6 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.2921, allocations: 0.9175 MB / 345.5 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005475/0.2976, allocations: 3.746 MB / 349.2 MB, free: 11.33 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002686/0.3003, allocations: 2.49 MB / 351.7 MB, free: 8.473 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009207/0.3012, allocations: 467.5 kB / 352.2 MB, free: 8.008 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001163/0.3014, allocations: 97.69 kB / 352.3 MB, free: 7.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008752/0.3022, allocations: 0.4891 MB / 352.7 MB, free: 7.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.715e-06/0.3023, allocations: 3.938 kB / 352.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of matching and sorting (n=86): time 0.004374/0.3066, allocations: 1.705 MB / 354.5 MB, free: 5.617 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.3068, allocations: 193 kB / 354.6 MB, free: 5.387 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006384/0.3074, allocations: 474 kB / 355.1 MB, free: 4.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-05/0.3075, allocations: 41.7 kB / 355.1 MB, free: 4.863 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003549/0.3079, allocations: 431.4 kB / 355.6 MB, free: 4.434 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.3081, allocations: 279.9 kB / 355.8 MB, free: 4.156 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.3084, allocations: 166.5 kB / 356 MB, free: 3.988 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.3085, allocations: 378.7 kB / 356.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005221/0.3091, allocations: 277.9 kB / 356.6 MB, free: 3.336 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006699/0.3098, allocations: 0.5239 MB / 357.2 MB, free: 2.711 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.311, allocations: 0.7953 MB / 358 MB, free: 1.824 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.311, allocations: 4 kB / 358 MB, free: 1.82 MB / 286.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002006/0.313, allocations: 1.076 MB / 359 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.76e-05/0.313, allocations: 8 kB / 359.1 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.3131, allocations: 12 kB / 359.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008709/0.3139, allocations: 269.7 kB / 359.3 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005833/0.3145, allocations: 175.6 kB / 359.5 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005489/0.32, allocations: 4.859 MB / 364.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007781/0.3208, allocations: 111 kB / 364.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.491e-05/0.3209, allocations: 39.98 kB / 364.5 MB, free: 10.99 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.0004661/0.3214, allocations: 257.6 kB / 364.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.3215, allocations: 75.09 kB / 364.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001864/0.3234, allocations: 0.9676 MB / 365.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.3234, allocations: 8 kB / 365.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3234, allocations: 0 / 365.8 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.3234, allocations: 3.984 kB / 365.8 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003123/0.3265, allocations: 1.947 MB / 367.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.3266, allocations: 0 / 367.8 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.327, allocations: 103.9 kB / 367.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008006/0.3278, allocations: 269.4 kB / 368.1 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.11e-05/0.3279, allocations: 16 kB / 368.1 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005052/0.333, allocations: 4.805 MB / 372.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.333, allocations: 96 / 372.9 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002377/0.3354, allocations: 1.396 MB / 374.3 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/0.3357, allocations: 212 kB / 374.5 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-05/0.3358, allocations: 27.92 kB / 374.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.3362, allocations: 43.97 kB / 374.6 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001649/0.3364, allocations: 68.91 kB / 374.7 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.296e-05/0.3365, allocations: 27.98 kB / 374.7 MB, free: 368 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003762/0.3368, allocations: 322.8 kB / 375 MB, free: 44 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3369, allocations: 0 / 375 MB, free: 44 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001119/0.338, allocations: 311.3 kB / 375.3 MB, free: 15.73 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.0002678/0.3383, allocations: 166.9 kB / 375.5 MB, free: 15.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.3404, allocations: 1.135 MB / 376.6 MB, free: 14.4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3405, allocations: 4 kB / 376.6 MB, free: 14.39 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.3415, allocations: 0.7407 MB / 377.4 MB, free: 13.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006459/0.3422, allocations: 122 kB / 377.5 MB, free: 13.51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.3456, allocations: 2.109 MB / 379.6 MB, free: 11.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005622/0.3462, allocations: 1.002 MB / 380.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003554/0.3465, allocations: 89.64 kB / 380.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.3467, allocations: 51.42 kB / 380.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3467, allocations: 0 / 380.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of Templates: time 0.02/0.3667, allocations: 12.3 MB / 393 MB, free: 13.88 MB / 334.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)