Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.6498/0.6498, allocations: 110.8 MB / 118 MB, free: 14.6 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001705/0.001705, allocations: 160 kB / 143.7 MB, free: 4.926 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.514e-06/7.544e-06, allocations: 0 / 173.4 MB, free: 23.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04384/0.04387, allocations: 25.18 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1332/0.1772, allocations: 34.54 MB / 233.2 MB, free: 4.371 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/0.1774, allocations: 63.66 kB / 233.2 MB, free: 4.371 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01434/0.1918, allocations: 5.65 MB / 238.9 MB, free: 3.918 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.977e-05/0.1918, allocations: 7.75 kB / 238.9 MB, free: 3.918 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0008272/0.1926, allocations: 0.6264 MB / 239.5 MB, free: 3.461 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1927, allocations: 7.75 kB / 239.5 MB, free: 3.461 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.701e-05/0.1928, allocations: 51.22 kB / 239.6 MB, free: 3.434 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.1931, allocations: 302.3 kB / 239.9 MB, free: 3.199 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1932, allocations: 8.5 kB / 239.9 MB, free: 3.199 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.1932, allocations: 19.38 kB / 239.9 MB, free: 3.199 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003695/0.1936, allocations: 212.7 kB / 240.1 MB, free: 3.195 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004088/0.194, allocations: 288.8 kB / 240.4 MB, free: 3.117 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.194, allocations: 0.6094 kB / 240.4 MB, free: 3.117 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.194, allocations: 0 / 240.4 MB, free: 3.117 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.1941, allocations: 7.844 kB / 240.4 MB, free: 3.117 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.1958, allocations: 1.373 MB / 241.8 MB, free: 2.348 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.1961, allocations: 184 kB / 241.9 MB, free: 2.32 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.1962, allocations: 87.44 kB / 242 MB, free: 2.309 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.563e-05/0.1962, allocations: 4.531 kB / 242 MB, free: 2.309 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.1962, allocations: 42.2 kB / 242.1 MB, free: 2.262 MB / 170.7 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.1963, allocations: 0 / 242.1 MB, free: 2.262 MB / 170.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004252/0.1967, allocations: 239.2 kB / 242.3 MB, free: 2.191 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.889e-05/0.1967, allocations: 59.83 kB / 242.4 MB, free: 2.125 MB / 170.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage3.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage2.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Sources.mo:361:5-361:68:writable] Warning: Parameter SineVoltage1.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Ideal.mo:1014:11-1015:34:writable] Warning: Parameter With_Ron_Goff.Vknee has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Ideal.mo:1014:11-1015:34:writable] Warning: Parameter Ideal.Vknee has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.197, allocations: 251.9 kB / 242.6 MB, free: 2.016 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.197, allocations: 26.45 kB / 242.6 MB, free: 1.984 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.1971, allocations: 180.3 kB / 242.8 MB, free: 1.855 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.443e-05/0.1972, allocations: 76.08 kB / 242.9 MB, free: 1.809 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.1972, allocations: 0 / 242.9 MB, free: 1.809 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.372e-05/0.1973, allocations: 333.6 kB / 243.2 MB, free: 1.496 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.684e-05/0.1974, allocations: 63.22 kB / 243.3 MB, free: 1.496 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.1975, allocations: 103.3 kB / 243.4 MB, free: 1.445 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.1976, allocations: 65.89 kB / 243.4 MB, free: 1.441 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1976, allocations: 0 / 243.4 MB, free: 1.441 MB / 170.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005693/0.1982, allocations: 304.4 kB / 243.7 MB, free: 1.352 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.1982, allocations: 9.562 kB / 243.7 MB, free: 1.352 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1982, allocations: 0.5625 kB / 243.7 MB, free: 1.352 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003832/0.1986, allocations: 114.1 kB / 243.9 MB, free: 1.324 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.1988, allocations: 41.19 kB / 243.9 MB, free: 1.316 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.2016, allocations: 3.986 MB / 247.9 MB, free: 13.59 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002149/0.2018, allocations: 19.55 kB / 247.9 MB, free: 13.58 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.2019, allocations: 7.625 kB / 247.9 MB, free: 13.58 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: With_Ron_Goff_Vknee.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: With_Ron_Goff.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Ideal.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.202, allocations: 128.6 kB / 248 MB, free: 13.46 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.2021, allocations: 35.16 kB / 248.1 MB, free: 13.44 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.643e-05/0.2022, allocations: 36.56 kB / 248.1 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2022, allocations: 3.844 kB / 248.1 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2022, allocations: 0 / 248.1 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2022, allocations: 0 / 248.1 MB, free: 13.43 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003512/0.2025, allocations: 321.1 kB / 248.4 MB, free: 13.2 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2026, allocations: 0 / 248.4 MB, free: 13.2 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001294/0.2027, allocations: 35.14 kB / 248.5 MB, free: 13.19 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002968/0.203, allocations: 103.7 kB / 248.6 MB, free: 13.15 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.001e-05/0.203, allocations: 7.891 kB / 248.6 MB, free: 13.14 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00312/0.2062, allocations: 3.967 MB / 252.5 MB, free: 9.422 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.2062, allocations: 3.984 kB / 252.5 MB, free: 9.418 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003918/0.2066, allocations: 348.6 kB / 252.9 MB, free: 9.227 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.2067, allocations: 139 kB / 253 MB, free: 9.098 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.2068, allocations: 0 / 253 MB, free: 9.098 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.207, allocations: 19.55 kB / 253 MB, free: 9.094 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-05/0.2071, allocations: 26.58 kB / 253.1 MB, free: 9.078 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.2071, allocations: 8.062 kB / 253.1 MB, free: 9.074 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001656/0.2073, allocations: 191.5 kB / 253.3 MB, free: 8.984 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004559/0.2078, allocations: 105 kB / 253.4 MB, free: 8.965 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001411/0.2079, allocations: 101.9 kB / 253.5 MB, free: 8.875 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0006288/0.2085, allocations: 488.5 kB / 253.9 MB, free: 8.547 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2086, allocations: 0 / 253.9 MB, free: 8.547 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003326/0.2089, allocations: 403.3 kB / 254.3 MB, free: 8.227 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.2093, allocations: 59.81 kB / 254.4 MB, free: 8.207 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008138/0.2101, allocations: 383.3 kB / 254.8 MB, free: 8.012 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.2105, allocations: 0.8204 MB / 255.6 MB, free: 7.242 MB / 186.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2106, allocations: 0 / 255.6 MB, free: 7.242 MB / 186.7 MB Notification: Performance of Templates: time 0.008616/0.2192, allocations: 4.575 MB / 260.2 MB, free: 4.945 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1)