Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001065/0.001065, allocations: 114.2 kB / 17.07 MB, free: 5.969 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.001068/0.001068, allocations: 198.9 kB / 18.01 MB, free: 5.051 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.315/1.315, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001287/0.001287, allocations: 52.41 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.09405, allocations: 46.62 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.2247/0.3188, allocations: 6.242 MB / 380.7 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004105/0.323, allocations: 2.176 MB / 382.9 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006269/0.3237, allocations: 21.34 kB / 382.9 MB, free: 9.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001949/0.3256, allocations: 0.765 MB / 383.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001738/0.3274, allocations: 0.7874 MB / 384.5 MB, free: 8.352 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.3285, allocations: 0.4914 MB / 385 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.3302, allocations: 1.19 MB / 386.2 MB, free: 7.57 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00135/0.3315, allocations: 0.8355 MB / 387 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007767/0.3323, allocations: 469.8 kB / 387.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007807/0.3331, allocations: 0.5465 MB / 388 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001954/0.3333, allocations: 115.2 kB / 388.1 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000985/0.3343, allocations: 270.9 kB / 388.4 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002854/0.3346, allocations: 255 kB / 388.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006233/0.3352, allocations: 0.5497 MB / 389.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002065/0.3373, allocations: 1.467 MB / 390.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3373, allocations: 1.062 kB / 390.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3373, allocations: 0 / 390.6 MB, free: 5.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.08e-05/0.3374, allocations: 0 / 390.6 MB, free: 5.402 MB / 318.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.003296/0.3407, allocations: 1.437 MB / 392.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.3407, allocations: 8.188 kB / 392.1 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002872/0.3436, allocations: 478.5 kB / 392.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009423/0.3445, allocations: 0.5722 MB / 393.1 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.916e-05/0.3446, allocations: 77.36 kB / 393.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.3448, allocations: 105.4 kB / 393.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002028/0.3468, allocations: 1.054 MB / 394.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.3469, allocations: 9.438 kB / 394.4 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.696e-05/0.347, allocations: 41.98 kB / 394.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.562e-05/0.347, allocations: 29.06 kB / 394.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001784/0.3488, allocations: 0.9167 MB / 395.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005138/0.354, allocations: 3.712 MB / 399.1 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002778/0.3568, allocations: 2.479 MB / 401.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009853/0.3578, allocations: 474.7 kB / 402 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001254/0.3579, allocations: 95.89 kB / 402.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009491/0.3589, allocations: 0.4955 MB / 402.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 3.236e-06/0.3589, allocations: 0 / 402.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.005063/0.364, allocations: 1.697 MB / 404.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.3641, allocations: 194.8 kB / 404.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006912/0.3648, allocations: 476 kB / 405 MB, free: 12.35 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.3649, allocations: 42.39 kB / 405 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003382/0.3652, allocations: 433.3 kB / 405.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002198/0.3654, allocations: 282.8 kB / 405.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002567/0.3657, allocations: 168.1 kB / 405.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3659, allocations: 376.7 kB / 406.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005946/0.3665, allocations: 275 kB / 406.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007844/0.3673, allocations: 0.5226 MB / 407 MB, free: 10.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.3687, allocations: 0.8061 MB / 407.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.3687, allocations: 1.438 kB / 407.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002159/0.3709, allocations: 1.079 MB / 408.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.3709, allocations: 12.09 kB / 408.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.612e-05/0.3709, allocations: 7.906 kB / 408.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008948/0.3718, allocations: 270.1 kB / 409.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006181/0.3725, allocations: 164 kB / 409.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005378/0.3779, allocations: 4.854 MB / 414.2 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007943/0.3787, allocations: 109.6 kB / 414.3 MB, free: 5.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.147e-05/0.3787, allocations: 40.7 kB / 414.4 MB, free: 4.996 MB / 334.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.0004351/0.3792, allocations: 248.2 kB / 414.6 MB, free: 4.793 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.3793, allocations: 78.89 kB / 414.7 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.3814, allocations: 0.9558 MB / 415.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.3814, allocations: 9.5 kB / 415.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.3814, allocations: 4 kB / 415.6 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.3814, allocations: 5.109 kB / 415.6 MB, free: 4.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.3848, allocations: 1.945 MB / 417.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3848, allocations: 0 / 417.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004426/0.3853, allocations: 100 kB / 417.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007867/0.3861, allocations: 262.2 kB / 417.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.3862, allocations: 21.42 kB / 418 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005426/0.3916, allocations: 4.802 MB / 422.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3916, allocations: 288 / 422.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002786/0.3944, allocations: 1.393 MB / 424.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.3948, allocations: 220 kB / 424.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.305e-05/0.3949, allocations: 24.06 kB / 424.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004514/0.3954, allocations: 47.95 kB / 424.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.3956, allocations: 68.91 kB / 424.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.3956, allocations: 27.92 kB / 424.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004197/0.3961, allocations: 326.8 kB / 424.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3961, allocations: 4 kB / 424.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001353/0.3974, allocations: 307.1 kB / 425.2 MB, free: 11.18 MB / 350.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.0003523/0.3978, allocations: 155.1 kB / 425.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00232/0.4001, allocations: 1.105 MB / 426.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.4001, allocations: 0 / 426.4 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.4014, allocations: 0.7549 MB / 427.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007257/0.4021, allocations: 120.8 kB / 427.3 MB, free: 9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.4053, allocations: 1.678 MB / 429 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006589/0.406, allocations: 0.9982 MB / 430 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000336/0.4063, allocations: 89.66 kB / 430.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.4065, allocations: 55.42 kB / 430.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4065, allocations: 0 / 430.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of Templates: time 0.02079/0.4273, allocations: 13.06 MB / 443.2 MB, free: 9.039 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & ./Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)