Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") [: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.6508/0.6508, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001684/0.001684, allocations: 156 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.583e-06/6.613e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04262/0.04264, allocations: 25.16 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.1822, allocations: 35.02 MB / 233.6 MB, free: 4.621 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.1825, allocations: 60.88 kB / 233.7 MB, free: 4.621 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.0195/0.202, allocations: 4.785 MB / 238.5 MB, free: 4.277 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.112e-05/0.2021, allocations: 7.844 kB / 238.5 MB, free: 4.273 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00109/0.2032, allocations: 0.543 MB / 239 MB, free: 3.855 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.2032, allocations: 8.391 kB / 239 MB, free: 3.855 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.2034, allocations: 35.03 kB / 239.1 MB, free: 3.84 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004142/0.2038, allocations: 261.4 kB / 239.3 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.969e-05/0.2039, allocations: 64.95 kB / 239.4 MB, free: 3.547 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.347e-05/0.204, allocations: 16 kB / 239.4 MB, free: 3.547 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004935/0.2045, allocations: 162.7 kB / 239.6 MB, free: 3.543 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005765/0.205, allocations: 248.5 kB / 239.8 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.2051, allocations: 0 / 239.8 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.2051, allocations: 0 / 239.8 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.2052, allocations: 8.141 kB / 239.8 MB, free: 3.477 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002324/0.2075, allocations: 1.08 MB / 240.9 MB, free: 2.867 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.2077, allocations: 96.66 kB / 241 MB, free: 2.848 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.2079, allocations: 70.16 kB / 241.1 MB, free: 2.84 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.627e-05/0.208, allocations: 3.438 kB / 241.1 MB, free: 2.84 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.2083, allocations: 147.2 kB / 241.2 MB, free: 2.758 MB / 170.7 MB Notification: Performance of pre-optimization done (n=21): time 2.315e-06/0.2083, allocations: 0 / 241.2 MB, free: 2.758 MB / 170.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008455/0.2091, allocations: 200.9 kB / 241.4 MB, free: 2.699 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.2092, allocations: 107.2 kB / 241.5 MB, free: 2.574 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. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Blocks/Sources.mo:2660:7-2661:28:writable] Warning: Parameter booleanPulse.period 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.0002963/0.2095, allocations: 170.8 kB / 241.7 MB, free: 2.473 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.442e-05/0.2096, allocations: 30.05 kB / 241.7 MB, free: 2.441 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.2097, allocations: 166.2 kB / 241.9 MB, free: 2.309 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.417e-05/0.2098, allocations: 65.7 kB / 241.9 MB, free: 2.266 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/0.2098, allocations: 0 / 241.9 MB, free: 2.266 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2099, allocations: 334.4 kB / 242.3 MB, free: 1.949 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.2101, allocations: 54.58 kB / 242.3 MB, free: 1.945 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.2103, allocations: 117.6 kB / 242.4 MB, free: 1.879 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001844/0.2105, allocations: 63.81 kB / 242.5 MB, free: 1.867 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2106, allocations: 0 / 242.5 MB, free: 1.867 MB / 170.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006027/0.2112, allocations: 234.9 kB / 242.7 MB, free: 1.801 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2112, allocations: 7.625 kB / 242.7 MB, free: 1.801 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.2112, allocations: 0 / 242.7 MB, free: 1.801 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003984/0.2116, allocations: 54.67 kB / 242.8 MB, free: 1.789 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/0.212, allocations: 51.94 kB / 242.8 MB, free: 1.785 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.2133, allocations: 1.266 MB / 244.1 MB, free: 0.5703 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004208/0.2137, allocations: 34.42 kB / 244.1 MB, free: 0.5586 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.2138, allocations: 8.438 kB / 244.1 MB, free: 0.5586 MB / 170.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" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$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 (32): * Single equations (assignments): 31 * 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.0001989/0.214, allocations: 123.4 kB / 244.3 MB, free: 456 kB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.502e-05/0.214, allocations: 20.05 kB / 244.3 MB, free: 444 kB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.306e-05/0.2141, allocations: 22.56 kB / 244.3 MB, free: 440 kB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2141, allocations: 3.719 kB / 244.3 MB, free: 440 kB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2142, allocations: 0.75 kB / 244.3 MB, free: 440 kB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.2142, allocations: 0.75 kB / 244.3 MB, free: 440 kB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004175/0.2146, allocations: 274.2 kB / 244.6 MB, free: 268 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2146, allocations: 0.6094 kB / 244.6 MB, free: 268 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000299/0.2149, allocations: 31.12 kB / 244.6 MB, free: 268 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002849/0.2152, allocations: 57.58 kB / 244.7 MB, free: 256 kB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.2153, allocations: 1.312 kB / 244.7 MB, free: 256 kB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001418/0.2167, allocations: 1.255 MB / 245.9 MB, free: 15.03 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.508e-06/0.2167, allocations: 4.156 kB / 245.9 MB, free: 15.02 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009529/0.2177, allocations: 303.8 kB / 246.2 MB, free: 14.93 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.2179, allocations: 122.7 kB / 246.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.577e-05/0.218, allocations: 0.75 kB / 246.3 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.2183, allocations: 15.05 kB / 246.4 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.2184, allocations: 24.59 kB / 246.4 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-05/0.2185, allocations: 9.016 kB / 246.4 MB, free: 14.82 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001771/0.2187, allocations: 131.9 kB / 246.5 MB, free: 14.73 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006111/0.2193, allocations: 77.41 kB / 246.6 MB, free: 14.72 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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 (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002051/0.2195, allocations: 111 kB / 246.7 MB, free: 14.62 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0007396/0.2203, allocations: 247.8 kB / 246.9 MB, free: 14.51 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2203, allocations: 3.938 kB / 246.9 MB, free: 14.51 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003979/0.2207, allocations: 174.1 kB / 247.1 MB, free: 14.4 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004958/0.2212, allocations: 37.19 kB / 247.2 MB, free: 14.39 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.2226, allocations: 414.4 kB / 247.6 MB, free: 14.13 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005383/0.2232, allocations: 0.7875 MB / 248.3 MB, free: 13.39 MB / 186.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2232, allocations: 0 / 248.3 MB, free: 13.39 MB / 186.7 MB Notification: Performance of Templates: time 0.009417/0.2326, allocations: 2.692 MB / 251 MB, free: 12.07 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)