Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [: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.7197/0.7197, allocations: 110.7 MB / 118 MB, free: 14.58 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001891/0.001891, allocations: 156 kB / 143.7 MB, free: 4.906 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 8.686e-06/8.817e-06, allocations: 4 kB / 173.5 MB, free: 23.03 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04081/0.04084, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1349/0.1758, allocations: 35.97 MB / 234.6 MB, free: 4.406 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.176, allocations: 64.02 kB / 234.6 MB, free: 4.406 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01429/0.1903, allocations: 5.454 MB / 240.1 MB, free: 4.008 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.416e-05/0.1904, allocations: 7.531 kB / 240.1 MB, free: 4.008 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009354/0.1913, allocations: 0.5802 MB / 240.7 MB, free: 3.574 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.1914, allocations: 8.406 kB / 240.7 MB, free: 3.574 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.1915, allocations: 42.91 kB / 240.7 MB, free: 3.551 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003545/0.1919, allocations: 273.3 kB / 241 MB, free: 3.316 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.498e-05/0.1919, allocations: 64.62 kB / 241.1 MB, free: 3.25 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.001e-05/0.192, allocations: 19.5 kB / 241.1 MB, free: 3.25 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003603/0.1924, allocations: 177.2 kB / 241.3 MB, free: 3.25 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004537/0.1928, allocations: 281.5 kB / 241.5 MB, free: 3.172 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.1928, allocations: 0.6562 kB / 241.5 MB, free: 3.172 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.1929, allocations: 8 kB / 241.5 MB, free: 3.164 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1929, allocations: 7.75 kB / 241.6 MB, free: 3.164 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.1948, allocations: 1.333 MB / 242.9 MB, free: 2.258 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001581/0.195, allocations: 96.05 kB / 243 MB, free: 2.23 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1951, allocations: 74.03 kB / 243.1 MB, free: 2.219 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.1951, allocations: 7.844 kB / 243.1 MB, free: 2.211 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.1953, allocations: 136 kB / 243.2 MB, free: 2.125 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 1.483e-06/0.1953, allocations: 0 / 243.2 MB, free: 2.125 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005141/0.1958, allocations: 201.6 kB / 243.4 MB, free: 2.043 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.1959, allocations: 106.7 kB / 243.5 MB, free: 1.918 MB / 170.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Analog/Basic.mo:68:3-69:40:writable] Warning: Parameter resistor2.R 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/Basic.mo:68:3-69:40:writable] Warning: Parameter resistor1.R has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002062/0.1961, allocations: 199.5 kB / 243.7 MB, free: 1.801 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.1961, allocations: 29.45 kB / 243.7 MB, free: 1.77 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.555e-05/0.1962, allocations: 183.3 kB / 243.9 MB, free: 1.613 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.1963, allocations: 66.56 kB / 244 MB, free: 1.566 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.1963, allocations: 0 / 244 MB, free: 1.566 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.244e-05/0.1963, allocations: 339 kB / 244.3 MB, free: 1.242 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.253e-05/0.1964, allocations: 55.45 kB / 244.3 MB, free: 1.238 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.1966, allocations: 140.4 kB / 244.5 MB, free: 1.129 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.1967, allocations: 76.5 kB / 244.6 MB, free: 1.109 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1967, allocations: 0 / 244.6 MB, free: 1.109 MB / 170.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005207/0.1972, allocations: 269.6 kB / 244.8 MB, free: 1.023 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1973, allocations: 3.906 kB / 244.8 MB, free: 1.023 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1973, allocations: 3.75 kB / 244.8 MB, free: 1.023 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002622/0.1975, allocations: 58.12 kB / 244.9 MB, free: 1 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003119/0.1979, allocations: 85.64 kB / 245 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009062/0.1988, allocations: 1.266 MB / 246.2 MB, free: 15.73 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002682/0.1991, allocations: 47.05 kB / 246.3 MB, free: 15.71 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.1991, allocations: 10.91 kB / 246.3 MB, free: 15.71 MB / 186.7 MB Warning: Assuming fixed start value for the following 5 variables: switch2.quenched:DISCRETE(fixed = false protected = true ) type: Boolean switch2.tSwitch:DISCRETE(unit = "s" fixed = false protected = true ) type: Real switch2.off:DISCRETE(fixed = false protected = true ) type: Boolean inductor1.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real inductor2.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000162/0.1993, allocations: 118.1 kB / 246.4 MB, free: 15.59 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.1993, allocations: 31.23 kB / 246.4 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.334e-05/0.1994, allocations: 23.67 kB / 246.5 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1994, allocations: 3.844 kB / 246.5 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.1994, allocations: 0 / 246.5 MB, free: 15.57 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1994, allocations: 3.984 kB / 246.5 MB, free: 15.56 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.1997, allocations: 289.2 kB / 246.8 MB, free: 15.35 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1997, allocations: 4 kB / 246.8 MB, free: 15.35 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.2, allocations: 66.2 kB / 246.8 MB, free: 15.33 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001792/0.2002, allocations: 58.28 kB / 246.9 MB, free: 15.3 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.725e-05/0.2002, allocations: 0 / 246.9 MB, free: 15.3 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008961/0.2011, allocations: 1.244 MB / 248.1 MB, free: 14.07 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2011, allocations: 0 / 248.1 MB, free: 14.07 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000521/0.2016, allocations: 311.8 kB / 248.4 MB, free: 13.95 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.2017, allocations: 116.2 kB / 248.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.55e-05/0.2018, allocations: 3.906 kB / 248.5 MB, free: 13.83 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002212/0.202, allocations: 26.64 kB / 248.6 MB, free: 13.82 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.2021, allocations: 22.95 kB / 248.6 MB, free: 13.81 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.2021, allocations: 7.312 kB / 248.6 MB, free: 13.81 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001089/0.2022, allocations: 149 kB / 248.7 MB, free: 13.73 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.2026, allocations: 85.09 kB / 248.8 MB, free: 13.71 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001481/0.2027, allocations: 98.66 kB / 248.9 MB, free: 13.62 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004354/0.2032, allocations: 275.8 kB / 249.2 MB, free: 13.5 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2032, allocations: 0 / 249.2 MB, free: 13.5 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002249/0.2034, allocations: 167 kB / 249.4 MB, free: 13.39 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003028/0.2037, allocations: 45.78 kB / 249.4 MB, free: 13.38 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008844/0.2046, allocations: 428.1 kB / 249.8 MB, free: 13.11 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000425/0.2051, allocations: 0.7976 MB / 250.6 MB, free: 12.35 MB / 186.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2051, allocations: 0 / 250.6 MB, free: 12.35 MB / 186.7 MB Notification: Performance of Templates: time 0.00633/0.2114, allocations: 2.807 MB / 253.4 MB, free: 10.96 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)