Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.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.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier") translateModel(Modelica.Electrical.Analog.Examples.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001279/0.001283, allocations: 103.9 kB / 17.06 MB, free: 6.027 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.001102/0.001102, allocations: 195 kB / 18 MB, free: 5.105 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.599/1.599, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.001165/0.001165, allocations: 52.14 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005177/0.1071, allocations: 4.189 MB / 378.7 MB, free: 356 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2582/0.3654, allocations: 0.9524 MB / 379.6 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.3659, allocations: 11.25 kB / 379.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003668/0.3663, allocations: 95.02 kB / 379.7 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000796/0.3671, allocations: 196.2 kB / 379.9 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005569/0.3677, allocations: 161.3 kB / 380.1 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.3688, allocations: 0.7364 MB / 380.8 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004428/0.3693, allocations: 226.4 kB / 381.1 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005031/0.3698, allocations: 281.5 kB / 381.3 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004719/0.3703, allocations: 328.1 kB / 381.6 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.045e-05/0.3704, allocations: 61.06 kB / 381.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001492/0.3705, allocations: 64.16 kB / 381.8 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.3707, allocations: 150 kB / 381.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.371, allocations: 327.1 kB / 382.2 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006872/0.3717, allocations: 0.7156 MB / 383 MB, free: 9.051 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3718, allocations: 1.344 kB / 383 MB, free: 9.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3718, allocations: 0 / 383 MB, free: 9.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.3718, allocations: 0 / 383 MB, free: 9.051 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001401/0.3732, allocations: 0.9047 MB / 383.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.3732, allocations: 9.312 kB / 383.9 MB, free: 8.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.3734, allocations: 71.69 kB / 383.9 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.3739, allocations: 381.8 kB / 384.3 MB, free: 8.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.948e-05/0.374, allocations: 41.62 kB / 384.4 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.275e-05/0.3741, allocations: 54.22 kB / 384.4 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009887/0.3751, allocations: 0.55 MB / 385 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.3751, allocations: 0 / 385 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.737e-05/0.3752, allocations: 20.42 kB / 385 MB, free: 7.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.3752, allocations: 15.83 kB / 385 MB, free: 7.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008931/0.3761, allocations: 451.2 kB / 385.4 MB, free: 7.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002906/0.379, allocations: 2.021 MB / 387.5 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008631/0.3799, allocations: 0.64 MB / 388.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005572/0.3804, allocations: 401.8 kB / 388.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.233e-05/0.3805, allocations: 7.094 kB / 388.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.3805, allocations: 41.53 kB / 388.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=60): time 2.405e-06/0.3805, allocations: 1.156 kB / 388.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.004382/0.3849, allocations: 2.027 MB / 390.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.385, allocations: 58.64 kB / 390.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000456/0.3854, allocations: 371.7 kB / 391 MB, free: 4.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.295e-05/0.3855, allocations: 36.14 kB / 391 MB, free: 4.199 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.3856, allocations: 231.6 kB / 391.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3857, allocations: 200.4 kB / 391.4 MB, free: 3.859 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.3859, allocations: 96.67 kB / 391.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.956e-05/0.386, allocations: 353.2 kB / 391.9 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.3863, allocations: 170.2 kB / 392 MB, free: 3.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.3866, allocations: 216.6 kB / 392.3 MB, free: 3.324 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.3872, allocations: 373.2 kB / 392.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3872, allocations: 0 / 392.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001188/0.3884, allocations: 0.6676 MB / 393.3 MB, free: 2.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.3884, allocations: 10.38 kB / 393.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-06/0.3885, allocations: 1.125 kB / 393.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007599/0.3892, allocations: 265.6 kB / 393.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003117/0.3896, allocations: 55.88 kB / 393.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006387/0.3959, allocations: 7.5 MB / 401.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005107/0.3965, allocations: 19.69 kB / 401.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.894e-05/0.3965, allocations: 15.62 kB / 401.1 MB, free: 11.85 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002795/0.3968, allocations: 176.7 kB / 401.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.139e-05/0.3969, allocations: 51.39 kB / 401.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.3971, allocations: 64.94 kB / 401.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3971, allocations: 5.469 kB / 401.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.671e-05/0.3971, allocations: 7.828 kB / 401.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3971, allocations: 2.109 kB / 401.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.3994, allocations: 1.341 MB / 402.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.3994, allocations: 0.7031 kB / 402.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.3997, allocations: 55.47 kB / 402.8 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006714/0.4003, allocations: 263 kB / 403.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.4004, allocations: 12.97 kB / 403.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007092/0.4075, allocations: 7.499 MB / 410.6 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4075, allocations: 3.938 kB / 410.6 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/0.4098, allocations: 1.026 MB / 411.6 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003465/0.4102, allocations: 162.6 kB / 411.8 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.114e-05/0.4102, allocations: 15.39 kB / 411.8 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002737/0.4105, allocations: 19.14 kB / 411.8 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.4107, allocations: 53.06 kB / 411.9 MB, free: 3.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.754e-05/0.4108, allocations: 17.27 kB / 411.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000338/0.4111, allocations: 259.5 kB / 412.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4111, allocations: 1.125 kB / 412.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009928/0.4121, allocations: 171.5 kB / 412.3 MB, free: 3.039 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001926/0.4123, allocations: 114.4 kB / 412.4 MB, free: 2.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001891/0.4142, allocations: 1.04 MB / 413.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4142, allocations: 3.938 kB / 413.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001308/0.4155, allocations: 0.8376 MB / 414.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.4162, allocations: 98.77 kB / 414.4 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002499/0.4187, allocations: 1.273 MB / 415.7 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.4192, allocations: 0.8764 MB / 416.6 MB, free: 128 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000211/0.4194, allocations: 54.42 kB / 416.6 MB, free: 108 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.167e-05/0.4195, allocations: 30.92 kB / 416.6 MB, free: 96 kB / 334.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4195, allocations: 0 / 416.6 MB, free: 96 kB / 334.1 MB Notification: Performance of Templates: time 0.01706/0.4366, allocations: 9.426 MB / 426.1 MB, free: 9.168 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1)