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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001062/0.001062, allocations: 189.5 kB / 8.134 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.233/1.233, allocations: 194.2 MB / 202.8 MB, free: 8.816 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001836/0.001836, allocations: 118.5 kB / 247.7 MB, free: 6.215 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.424e-06/7.544e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08057/0.0806, allocations: 44.48 MB / 342 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2143/0.295, allocations: 73.92 MB / 416 MB, free: 21.13 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.2953, allocations: 68.86 kB / 416 MB, free: 21.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02167/0.317, allocations: 8.466 MB / 424.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.414e-05/0.317, allocations: 12 kB / 424.5 MB, free: 14.13 MB / 314.7 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.001211/0.3182, allocations: 0.7619 MB / 425.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.3183, allocations: 12.03 kB / 425.3 MB, free: 13.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.3184, allocations: 69.78 kB / 425.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004536/0.3189, allocations: 367.7 kB / 425.7 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.938e-05/0.3189, allocations: 16 kB / 425.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.661e-05/0.319, allocations: 35.66 kB / 425.8 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006416/0.3196, allocations: 379.6 kB / 426.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006236/0.3203, allocations: 449.2 kB / 426.6 MB, free: 12.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3203, allocations: 7.922 kB / 426.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.3204, allocations: 4 kB / 426.6 MB, free: 12.29 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3204, allocations: 12 kB / 426.6 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002429/0.3228, allocations: 1.966 MB / 428.6 MB, free: 10.61 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.3232, allocations: 241.5 kB / 428.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004035/0.3236, allocations: 360.3 kB / 429.1 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.3236, allocations: 10.47 kB / 429.2 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.3236, allocations: 43.81 kB / 429.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 2.474e-06/0.3237, allocations: 0 / 429.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.001801/0.3255, allocations: 1.143 MB / 430.3 MB, free: 9.199 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.059e-05/0.3255, allocations: 55.91 kB / 430.4 MB, free: 9.133 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.3257, allocations: 268.4 kB / 430.7 MB, free: 8.918 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.3258, allocations: 25.7 kB / 430.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.224e-05/0.3259, allocations: 189.9 kB / 430.9 MB, free: 8.719 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.095e-05/0.3259, allocations: 190.1 kB / 431.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-05/0.326, allocations: 0 / 431.1 MB, free: 8.551 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.24e-05/0.326, allocations: 362.2 kB / 431.4 MB, free: 8.207 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.3263, allocations: 141 kB / 431.5 MB, free: 8.129 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.3265, allocations: 183.8 kB / 431.7 MB, free: 8.012 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002301/0.3267, allocations: 153.5 kB / 431.9 MB, free: 7.914 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.3267, allocations: 0 / 431.9 MB, free: 7.914 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009023/0.3277, allocations: 0.5759 MB / 432.5 MB, free: 7.465 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.3277, allocations: 8 kB / 432.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3277, allocations: 0 / 432.5 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006586/0.3284, allocations: 249 kB / 432.7 MB, free: 7.266 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003215/0.3287, allocations: 59.91 kB / 432.8 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004578/0.3333, allocations: 6.396 MB / 439.2 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002846/0.3336, allocations: 11.98 kB / 439.2 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.8e-05/0.3336, allocations: 15.25 kB / 439.2 MB, free: 0.9023 MB / 314.7 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 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.3337, allocations: 120.5 kB / 439.3 MB, free: 0.7812 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/0.3338, allocations: 47.44 kB / 439.4 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.581e-05/0.3339, allocations: 57.28 kB / 439.4 MB, free: 0.707 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.334, allocations: 11.94 kB / 439.4 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/0.334, allocations: 0 / 439.4 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.334, allocations: 3.984 kB / 439.4 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.3357, allocations: 1.155 MB / 440.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.3357, allocations: 0 / 440.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/0.3361, allocations: 62.97 kB / 440.6 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006727/0.3368, allocations: 252.4 kB / 440.9 MB, free: 15.52 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.3368, allocations: 7.984 kB / 440.9 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005765/0.3426, allocations: 6.397 MB / 447.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3426, allocations: 0 / 447.3 MB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001387/0.344, allocations: 0.9039 MB / 448.2 MB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.3443, allocations: 159.8 kB / 448.4 MB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.877e-05/0.3444, allocations: 3.906 kB / 448.4 MB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003035/0.3447, allocations: 11.98 kB / 448.4 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.3448, allocations: 36.02 kB / 448.4 MB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.339e-05/0.3448, allocations: 15.86 kB / 448.4 MB, free: 8.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002367/0.3451, allocations: 217.4 kB / 448.6 MB, free: 8.191 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001068/0.3461, allocations: 144 kB / 448.8 MB, free: 8.051 MB / 330.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002492/0.3464, allocations: 100.1 kB / 448.9 MB, free: 7.941 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.3479, allocations: 0.8693 MB / 449.7 MB, free: 7.184 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3479, allocations: 3.938 kB / 449.7 MB, free: 7.18 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009556/0.3489, allocations: 0.6921 MB / 450.4 MB, free: 6.539 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.3493, allocations: 49.92 kB / 450.5 MB, free: 6.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.3516, allocations: 0.9716 MB / 451.5 MB, free: 5.598 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006002/0.3522, allocations: 0.8979 MB / 452.4 MB, free: 4.668 MB / 330.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3522, allocations: 0 / 452.4 MB, free: 4.668 MB / 330.7 MB Notification: Performance of Templates: time 0.01469/0.3669, allocations: 7.647 MB / 460 MB, free: 13.07 MB / 346.7 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)