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.001188/0.001188, allocations: 86.33 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.001575/0.001574, 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.448/1.448, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004366/0.0004368, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2459, allocations: 47.59 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.005595/0.2515, allocations: 5.418 MB / 331.9 MB, free: 13.13 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004135/0.2557, allocations: 2.02 MB / 333.9 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.2568, allocations: 21.12 kB / 333.9 MB, free: 11.47 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.2578, allocations: 202.5 kB / 334.1 MB, free: 11.32 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002362/0.2602, allocations: 0.6286 MB / 334.8 MB, free: 10.83 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001129/0.2614, allocations: 387.6 kB / 335.2 MB, free: 10.53 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001744/0.2631, allocations: 1.075 MB / 336.2 MB, free: 9.715 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002019/0.2652, allocations: 0.9413 MB / 337.2 MB, free: 8.723 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007104/0.2659, allocations: 366.5 kB / 337.5 MB, free: 8.363 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008119/0.2667, allocations: 465.9 kB / 338 MB, free: 7.906 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002057/0.2669, allocations: 48 kB / 338 MB, free: 7.859 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007444/0.2677, allocations: 199.7 kB / 338.2 MB, free: 7.664 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001892/0.2679, allocations: 175.2 kB / 338.4 MB, free: 7.492 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003023/0.2682, allocations: 209.2 kB / 338.6 MB, free: 7.281 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.2693, allocations: 1.071 MB / 339.7 MB, free: 6.207 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2693, allocations: 0 / 339.7 MB, free: 6.207 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.2694, allocations: 4 kB / 339.7 MB, free: 6.203 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.463e-05/0.2694, allocations: 7.938 kB / 339.7 MB, free: 6.195 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.002898/0.2723, allocations: 1.265 MB / 340.9 MB, free: 4.875 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2724, allocations: 12.03 kB / 341 MB, free: 4.863 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002806/0.2752, allocations: 474.3 kB / 341.4 MB, free: 4.398 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009217/0.2761, allocations: 0.5606 MB / 342 MB, free: 3.797 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.331e-05/0.2762, allocations: 81.98 kB / 342.1 MB, free: 3.715 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.2763, allocations: 104 kB / 342.2 MB, free: 3.613 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.2782, allocations: 1.055 MB / 343.2 MB, free: 2.508 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.2783, allocations: 4 kB / 343.2 MB, free: 2.504 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.822e-05/0.2784, allocations: 40 kB / 343.3 MB, free: 2.465 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.355e-05/0.2784, allocations: 24 kB / 343.3 MB, free: 2.441 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001723/0.2801, allocations: 0.937 MB / 344.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005495/0.2856, allocations: 3.766 MB / 348 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/0.2882, allocations: 2.498 MB / 350.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008705/0.2891, allocations: 483.4 kB / 351 MB, free: 10.21 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.2892, allocations: 97.73 kB / 351.1 MB, free: 10.1 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008459/0.2901, allocations: 0.4969 MB / 351.5 MB, free: 9.574 MB / 286.1 MB Notification: Performance of pre-optimization done (n=86): time 2.715e-06/0.2901, allocations: 0 / 351.5 MB, free: 9.574 MB / 286.1 MB Notification: Performance of matching and sorting (n=86): time 0.004217/0.2943, allocations: 1.718 MB / 353.3 MB, free: 7.809 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.2945, allocations: 200.9 kB / 353.5 MB, free: 7.566 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006249/0.2951, allocations: 470 kB / 353.9 MB, free: 7.094 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.877e-05/0.2952, allocations: 41.7 kB / 354 MB, free: 7.047 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003643/0.2955, allocations: 435.3 kB / 354.4 MB, free: 6.613 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000242/0.2958, allocations: 284 kB / 354.7 MB, free: 6.332 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.299e-05/0.2958, allocations: 16 kB / 354.7 MB, free: 6.316 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.296, allocations: 374.7 kB / 355 MB, free: 5.941 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/0.2966, allocations: 285.9 kB / 355.3 MB, free: 5.664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007443/0.2973, allocations: 0.5317 MB / 355.9 MB, free: 5.031 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006706/0.298, allocations: 339 kB / 356.2 MB, free: 4.699 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.699e-06/0.298, allocations: 4 kB / 356.2 MB, free: 4.695 MB / 286.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001992/0.3, allocations: 1.088 MB / 357.3 MB, free: 3.594 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3001, allocations: 11.95 kB / 357.3 MB, free: 3.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3001, allocations: 8 kB / 357.3 MB, free: 3.574 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008078/0.3009, allocations: 275.7 kB / 357.6 MB, free: 3.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005763/0.3015, allocations: 167.7 kB / 357.7 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004874/0.3064, allocations: 4.379 MB / 362.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006298/0.307, allocations: 115.2 kB / 362.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.678e-05/0.3071, allocations: 40 kB / 362.3 MB, free: 14.34 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.0004195/0.3075, allocations: 249.6 kB / 362.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.3076, allocations: 71.16 kB / 362.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001918/0.3096, allocations: 0.9871 MB / 363.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/0.3096, allocations: 15.92 kB / 363.6 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3096, allocations: 0 / 363.6 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.3096, allocations: 3.984 kB / 363.6 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002999/0.3126, allocations: 1.963 MB / 365.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.3126, allocations: 0 / 365.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004371/0.3131, allocations: 103.9 kB / 365.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007055/0.3138, allocations: 278 kB / 365.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.456e-05/0.3139, allocations: 15.98 kB / 365.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004479/0.3184, allocations: 4.345 MB / 370.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3184, allocations: 8.047 kB / 370.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/0.3208, allocations: 1.411 MB / 371.7 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003422/0.3212, allocations: 220 kB / 371.9 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.3213, allocations: 16 kB / 371.9 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.3217, allocations: 51.97 kB / 372 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.3219, allocations: 72.89 kB / 372.1 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.633e-05/0.3219, allocations: 23.98 kB / 372.1 MB, free: 4.113 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003572/0.3223, allocations: 314.9 kB / 372.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3223, allocations: 0 / 372.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001137/0.3235, allocations: 327.2 kB / 372.7 MB, free: 3.488 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.000271/0.3237, allocations: 155 kB / 372.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.3257, allocations: 1.111 MB / 374 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3257, allocations: 0 / 374 MB, free: 2.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.3268, allocations: 0.7446 MB / 374.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006965/0.3276, allocations: 126 kB / 374.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003312/0.3309, allocations: 2.063 MB / 376.9 MB, free: 15.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.3315, allocations: 0.9944 MB / 377.9 MB, free: 14.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003871/0.3319, allocations: 93.64 kB / 378 MB, free: 14.08 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.332, allocations: 47.42 kB / 378 MB, free: 14.03 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.332, allocations: 0 / 378 MB, free: 14.03 MB / 318.1 MB Notification: Performance of Templates: time 0.02023/0.3522, allocations: 11.14 MB / 389.2 MB, free: 2.879 MB / 318.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)