Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.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.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz") translateModel(Modelica.Electrical.Spice3.Examples.Graetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 104.7 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.001732/0.001732, allocations: 196 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.416/1.416, 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.001076/0.001076, allocations: 51.94 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1011, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.1784/0.2796, allocations: 5.207 MB / 379.7 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007424/0.287, allocations: 6.56 MB / 386.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007147/0.2878, allocations: 49.81 kB / 386.3 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001411/0.2893, allocations: 0.4921 MB / 386.8 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002392/0.2917, allocations: 0.8075 MB / 387.6 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.293, allocations: 438.2 kB / 388 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002764/0.2958, allocations: 1.979 MB / 390 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/0.2961, allocations: 168.7 kB / 390.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004949/0.2966, allocations: 366.1 kB / 390.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003564/0.297, allocations: 342.9 kB / 390.8 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.43e-05/0.297, allocations: 30.62 kB / 390.9 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001117/0.2982, allocations: 469.3 kB / 391.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.67e-05/0.2983, allocations: 107.6 kB / 391.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000308/0.2986, allocations: 451.7 kB / 391.9 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001428/0.3, allocations: 1.271 MB / 393.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3, allocations: 0.7969 kB / 393.2 MB, free: 3.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3, allocations: 4 kB / 393.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.3001, allocations: 1.688 kB / 393.2 MB, free: 3.77 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001834/0.3019, allocations: 1.443 MB / 394.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3019, allocations: 9.094 kB / 394.6 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3021, allocations: 131.9 kB / 394.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/0.3032, allocations: 0.8497 MB / 395.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.3032, allocations: 18.44 kB / 395.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.3033, allocations: 22.84 kB / 395.6 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005104/0.3038, allocations: 313.2 kB / 395.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.3038, allocations: 0 / 395.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.3038, allocations: 14.75 kB / 395.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3038, allocations: 5.812 kB / 396 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003998/0.3042, allocations: 224.3 kB / 396.2 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.306, allocations: 1.117 MB / 397.3 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003841/0.3064, allocations: 236.2 kB / 397.5 MB, free: 1.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/0.3068, allocations: 294 kB / 397.8 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008457/0.3077, allocations: 0.7601 MB / 398.6 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.3077, allocations: 37.47 kB / 398.6 MB, free: 148 kB / 318.1 MB Notification: Performance of pre-optimization done (n=38): time 2.796e-06/0.3077, allocations: 4 kB / 398.6 MB, free: 144 kB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.002977/0.3107, allocations: 1.544 MB / 400.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001838/0.3109, allocations: 121.7 kB / 400.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.312, allocations: 0.9285 MB / 401.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.312, allocations: 31.08 kB / 401.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003512/0.3124, allocations: 354 kB / 401.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.3125, allocations: 133 kB / 401.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3127, allocations: 118.3 kB / 401.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.3128, allocations: 323.8 kB / 402.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002446/0.3131, allocations: 125.5 kB / 402.3 MB, free: 13.81 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002682/0.3134, allocations: 162.8 kB / 402.4 MB, free: 13.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.3148, allocations: 0.7381 MB / 403.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3148, allocations: 4 kB / 403.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009984/0.3158, allocations: 0.551 MB / 403.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/0.3159, allocations: 41.02 kB / 403.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.773e-05/0.316, allocations: 12.41 kB / 403.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002257/0.3162, allocations: 76.75 kB / 403.8 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.3164, allocations: 46.48 kB / 403.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.3191, allocations: 3.323 MB / 407.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004144/0.3195, allocations: 13.23 kB / 407.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.737e-05/0.3196, allocations: 20.02 kB / 407.2 MB, free: 9.742 MB / 334.1 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004324/0.32, allocations: 278.5 kB / 407.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.3202, allocations: 121.6 kB / 407.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.3215, allocations: 0.6626 MB / 408.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.3215, allocations: 4.109 kB / 408.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3216, allocations: 2.156 kB / 408.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.3216, allocations: 3.344 kB / 408.3 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008766/0.3225, allocations: 0.6198 MB / 408.9 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.488e-05/0.3225, allocations: 10.38 kB / 408.9 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001896/0.3227, allocations: 37.62 kB / 409 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002/0.3229, allocations: 68.3 kB / 409 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/0.3229, allocations: 22.38 kB / 409.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/0.3256, allocations: 3.334 MB / 412.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3256, allocations: 0 / 412.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.3269, allocations: 0.849 MB / 413.2 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004679/0.3274, allocations: 277.3 kB / 413.5 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.3275, allocations: 11.38 kB / 413.5 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.3278, allocations: 9.625 kB / 413.5 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.363e-05/0.3279, allocations: 37.05 kB / 413.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.328, allocations: 16.56 kB / 413.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000759/0.3287, allocations: 0.6247 MB / 414.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3287, allocations: 0 / 414.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000909/0.3296, allocations: 222.7 kB / 414.4 MB, free: 4.129 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005873/0.3302, allocations: 317.3 kB / 414.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001154/0.3314, allocations: 0.7715 MB / 415.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3314, allocations: 3.938 kB / 415.5 MB, free: 3.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000657/0.3321, allocations: 0.6195 MB / 416.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005686/0.3327, allocations: 109.9 kB / 416.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002246/0.3349, allocations: 1.575 MB / 417.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.3355, allocations: 0.9962 MB / 418.8 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000263/0.3358, allocations: 98.69 kB / 418.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.575e-05/0.3358, allocations: 46.75 kB / 419 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3359, allocations: 0 / 419 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of Templates: time 0.01704/0.3529, allocations: 8.869 MB / 427.8 MB, free: 8.742 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)