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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7098/0.7098, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001713/0.001713, allocations: 155.5 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.63e-05/1.65e-05, allocations: 0 / 173.9 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05204/0.05208, allocations: 25.17 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0529/0.105, allocations: 36.04 MB / 235.1 MB, free: 9.598 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.1053, allocations: 59.97 kB / 235.1 MB, free: 9.539 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01509/0.1204, allocations: 5.73 MB / 240.9 MB, free: 3.781 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1204, allocations: 4 kB / 240.9 MB, free: 3.777 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.1204, allocations: 4 kB / 240.9 MB, free: 3.773 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0008142/0.1212, allocations: 0.5695 MB / 241.4 MB, free: 3.156 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.1213, allocations: 12.03 kB / 241.4 MB, free: 3.145 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.425e-05/0.1214, allocations: 35.53 kB / 241.5 MB, free: 3.109 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.1217, allocations: 263.4 kB / 241.7 MB, free: 2.809 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.234e-05/0.1218, allocations: 76.39 kB / 241.8 MB, free: 2.723 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.503e-05/0.1218, allocations: 16.34 kB / 241.8 MB, free: 2.707 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003292/0.1222, allocations: 185.4 kB / 242 MB, free: 2.527 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004871/0.1226, allocations: 270.7 kB / 242.3 MB, free: 2.242 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1227, allocations: 4 kB / 242.3 MB, free: 2.238 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.65e-05/0.1227, allocations: 3.938 kB / 242.3 MB, free: 2.234 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.1227, allocations: 8 kB / 242.3 MB, free: 2.227 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.1245, allocations: 1.343 MB / 243.6 MB, free: 0.7969 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.1248, allocations: 146.7 kB / 243.8 MB, free: 0.6445 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.1249, allocations: 64.86 kB / 243.8 MB, free: 0.5781 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.125, allocations: 8 kB / 243.8 MB, free: 0.5703 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.1252, allocations: 143.5 kB / 244 MB, free: 420 kB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 1.493e-06/0.1252, allocations: 4 kB / 244 MB, free: 416 kB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005079/0.1257, allocations: 200.7 kB / 244.2 MB, free: 208 kB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.35e-05/0.1258, allocations: 106.8 kB / 244.3 MB, free: 76 kB / 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. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1095/0.2353, allocations: 194.4 kB / 244.5 MB, free: 42.41 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.2354, allocations: 26.5 kB / 244.5 MB, free: 42.38 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.2356, allocations: 207.7 kB / 244.7 MB, free: 42.28 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.181e-05/0.2357, allocations: 62.91 kB / 244.8 MB, free: 42.25 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.286e-05/0.2357, allocations: 0 / 244.8 MB, free: 42.25 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.2358, allocations: 335 kB / 245.1 MB, free: 41.94 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.2359, allocations: 54.09 kB / 245.2 MB, free: 41.94 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.2361, allocations: 143.8 kB / 245.3 MB, free: 41.84 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.2362, allocations: 70.17 kB / 245.4 MB, free: 41.84 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2362, allocations: 1.375 kB / 245.4 MB, free: 41.84 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006265/0.2369, allocations: 280.3 kB / 245.6 MB, free: 41.78 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.2369, allocations: 5.5 kB / 245.6 MB, free: 41.78 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.869e-06/0.2369, allocations: 2.75 kB / 245.6 MB, free: 41.78 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002544/0.2372, allocations: 57.75 kB / 245.7 MB, free: 41.77 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003273/0.2375, allocations: 86.45 kB / 245.8 MB, free: 41.77 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.2386, allocations: 1.361 MB / 247.1 MB, free: 40.51 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002731/0.2389, allocations: 41.8 kB / 247.2 MB, free: 40.5 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.72e-05/0.2389, allocations: 13.11 kB / 247.2 MB, free: 40.5 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.0001558/0.2391, allocations: 126.2 kB / 247.3 MB, free: 40.39 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.2391, allocations: 24.88 kB / 247.3 MB, free: 40.38 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.588e-05/0.2392, allocations: 24.33 kB / 247.4 MB, free: 40.38 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.2392, allocations: 1.188 kB / 247.4 MB, free: 40.38 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.2392, allocations: 0.9688 kB / 247.4 MB, free: 40.38 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.2392, allocations: 4.031 kB / 247.4 MB, free: 40.38 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00031/0.2395, allocations: 288 kB / 247.7 MB, free: 40.22 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.2395, allocations: 0 / 247.7 MB, free: 40.22 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.2398, allocations: 64.88 kB / 247.7 MB, free: 40.22 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001778/0.24, allocations: 48.89 kB / 247.8 MB, free: 40.21 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.24, allocations: 2.469 kB / 247.8 MB, free: 40.21 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000781/0.2408, allocations: 1.28 MB / 249.1 MB, free: 39.01 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.2408, allocations: 2.625 kB / 249.1 MB, free: 39.01 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005353/0.2414, allocations: 304.8 kB / 249.4 MB, free: 38.92 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.399e-05/0.2415, allocations: 112.4 kB / 249.5 MB, free: 38.82 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.589e-05/0.2415, allocations: 5.016 kB / 249.5 MB, free: 38.82 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.2417, allocations: 24.73 kB / 249.5 MB, free: 38.82 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.2418, allocations: 33.39 kB / 249.5 MB, free: 38.81 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.2418, allocations: 7.453 kB / 249.5 MB, free: 38.81 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.242, allocations: 150.1 kB / 249.7 MB, free: 38.74 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.242, allocations: 1.156 kB / 249.7 MB, free: 38.74 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004504/0.2424, allocations: 80.77 kB / 249.8 MB, free: 38.73 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.0001495/0.2426, allocations: 114 kB / 249.9 MB, free: 38.64 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000469/0.2431, allocations: 267 kB / 250.1 MB, free: 38.53 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2431, allocations: 0 / 250.1 MB, free: 38.53 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000238/0.2433, allocations: 181.8 kB / 250.3 MB, free: 38.42 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.2436, allocations: 34.03 kB / 250.3 MB, free: 38.42 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007545/0.2444, allocations: 442.1 kB / 250.8 MB, free: 38.19 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.2447, allocations: 0.7772 MB / 251.5 MB, free: 37.49 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.2449, allocations: 21.33 kB / 251.6 MB, free: 37.49 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.96e-05/0.2449, allocations: 22.5 kB / 251.6 MB, free: 37.48 MB / 186.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2449, allocations: 0 / 251.6 MB, free: 37.48 MB / 186.7 MB Notification: Performance of Templates: time 0.006067/0.251, allocations: 2.535 MB / 254.1 MB, free: 37.3 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)