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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6951/0.6951, allocations: 110.8 MB / 118.3 MB, free: 10.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001726/0.001726, allocations: 151.4 kB / 144 MB, free: 9.809 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.848e-05/1.841e-05, allocations: 4 kB / 173.9 MB, free: 11.87 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05725/0.05729, allocations: 25.17 MB / 199 MB, free: 2.648 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.2193, allocations: 35.08 MB / 234.1 MB, free: 4.859 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001688/0.2195, allocations: 63.97 kB / 234.2 MB, free: 4.797 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01194/0.2315, allocations: 5.059 MB / 239.2 MB, free: 15.8 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.2315, allocations: 4 kB / 239.2 MB, free: 15.8 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.521e-05/0.2315, allocations: 8 kB / 239.3 MB, free: 15.79 MB / 186.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.0008089/0.2324, allocations: 0.5367 MB / 239.8 MB, free: 15.21 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.71e-05/0.2324, allocations: 8.031 kB / 239.8 MB, free: 15.21 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.037e-05/0.2325, allocations: 35.62 kB / 239.8 MB, free: 15.17 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.2329, allocations: 246.5 kB / 240.1 MB, free: 14.89 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.501e-05/0.233, allocations: 68.19 kB / 240.1 MB, free: 14.81 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.577e-05/0.233, allocations: 16 kB / 240.2 MB, free: 14.8 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003175/0.2333, allocations: 163.4 kB / 240.3 MB, free: 14.64 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.2338, allocations: 257.8 kB / 240.6 MB, free: 14.37 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.2338, allocations: 4 kB / 240.6 MB, free: 14.37 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.2339, allocations: 0 / 240.6 MB, free: 14.37 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.2339, allocations: 8 kB / 240.6 MB, free: 14.36 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002013/0.2359, allocations: 1.084 MB / 241.7 MB, free: 13.21 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.2363, allocations: 140.5 kB / 241.8 MB, free: 13.06 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.2364, allocations: 72.89 kB / 241.9 MB, free: 12.99 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.2365, allocations: 0 / 241.9 MB, free: 12.99 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003366/0.2368, allocations: 155.3 kB / 242 MB, free: 12.81 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 1.563e-06/0.2368, allocations: 0 / 242 MB, free: 12.81 MB / 186.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007655/0.2376, allocations: 201.9 kB / 242.2 MB, free: 12.61 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.485e-05/0.2377, allocations: 106.8 kB / 242.3 MB, free: 12.48 MB / 186.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.0002602/0.238, allocations: 174 kB / 242.5 MB, free: 12.3 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.238, allocations: 25.7 kB / 242.5 MB, free: 12.27 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.2382, allocations: 179.9 kB / 242.7 MB, free: 12.09 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.2383, allocations: 68.17 kB / 242.8 MB, free: 12.02 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.459e-05/0.2383, allocations: 0 / 242.8 MB, free: 12.02 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.2384, allocations: 336.4 kB / 243.1 MB, free: 11.68 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.2386, allocations: 52.52 kB / 243.1 MB, free: 11.63 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.2387, allocations: 119.5 kB / 243.3 MB, free: 11.49 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001334/0.2389, allocations: 60.62 kB / 243.3 MB, free: 11.43 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2389, allocations: 0 / 243.3 MB, free: 11.43 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004293/0.2393, allocations: 236.5 kB / 243.5 MB, free: 11.2 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.2394, allocations: 8 kB / 243.6 MB, free: 11.19 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-06/0.2394, allocations: 0.7812 kB / 243.6 MB, free: 11.19 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.2397, allocations: 56.45 kB / 243.6 MB, free: 11.13 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.24, allocations: 51.91 kB / 243.7 MB, free: 11.08 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.2415, allocations: 1.357 MB / 245 MB, free: 9.609 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.2418, allocations: 31.77 kB / 245 MB, free: 9.578 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.2418, allocations: 12 kB / 245.1 MB, free: 9.566 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" ) "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.0001833/0.242, allocations: 131.5 kB / 245.2 MB, free: 9.438 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.216e-05/0.242, allocations: 15.81 kB / 245.2 MB, free: 9.422 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.127e-05/0.2421, allocations: 25.92 kB / 245.2 MB, free: 9.395 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.2421, allocations: 4 kB / 245.2 MB, free: 9.391 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.713e-06/0.2421, allocations: 1.125 kB / 245.2 MB, free: 9.391 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.734e-06/0.2421, allocations: 3.984 kB / 245.2 MB, free: 9.387 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.2424, allocations: 273.9 kB / 245.5 MB, free: 9.082 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2424, allocations: 0 / 245.5 MB, free: 9.082 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001703/0.2426, allocations: 35.98 kB / 245.5 MB, free: 9.047 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001688/0.2428, allocations: 48.81 kB / 245.6 MB, free: 8.996 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.2428, allocations: 4 kB / 245.6 MB, free: 8.992 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/0.2438, allocations: 1.283 MB / 246.9 MB, free: 7.598 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.2439, allocations: 0 / 246.9 MB, free: 7.598 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005687/0.2444, allocations: 298.6 kB / 247.2 MB, free: 7.285 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.685e-05/0.2445, allocations: 112.9 kB / 247.3 MB, free: 7.156 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.2446, allocations: 4.812 kB / 247.3 MB, free: 7.152 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001638/0.2447, allocations: 20.78 kB / 247.3 MB, free: 7.133 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.644e-05/0.2448, allocations: 31.94 kB / 247.3 MB, free: 7.102 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.267e-05/0.2449, allocations: 4 kB / 247.3 MB, free: 7.098 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.245, allocations: 139.7 kB / 247.5 MB, free: 6.965 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.314e-06/0.245, allocations: 0 / 247.5 MB, free: 6.965 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0003553/0.2453, allocations: 79.67 kB / 247.6 MB, free: 6.887 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.000168/0.2455, allocations: 111.2 kB / 247.7 MB, free: 6.766 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0004542/0.246, allocations: 257.7 kB / 247.9 MB, free: 6.504 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.246, allocations: 0 / 247.9 MB, free: 6.504 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00024/0.2462, allocations: 183.7 kB / 248.1 MB, free: 6.316 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.2466, allocations: 40.27 kB / 248.1 MB, free: 6.277 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008044/0.2474, allocations: 420 kB / 248.5 MB, free: 5.855 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003707/0.2478, allocations: 0.7633 MB / 249.3 MB, free: 5.066 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 9.728e-05/0.2479, allocations: 18.08 kB / 249.3 MB, free: 5.047 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.2479, allocations: 15.44 kB / 249.3 MB, free: 5.031 MB / 186.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2479, allocations: 0 / 249.3 MB, free: 5.031 MB / 186.7 MB Notification: Performance of Templates: time 0.005652/0.2536, allocations: 2.441 MB / 251.8 MB, free: 2.652 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)