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.6506/0.6506, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001669/0.001669, allocations: 143.2 kB / 151.9 MB, free: 5 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002658/0.0002659, allocations: 4 kB / 184.9 MB, free: 3.93 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1379, allocations: 25.15 MB / 210 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04481/0.1827, allocations: 35.85 MB / 245.9 MB, free: 14 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.183, allocations: 67.95 kB / 246 MB, free: 13.93 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01355/0.1966, allocations: 5.121 MB / 251.1 MB, free: 8.832 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1966, allocations: 0 / 251.1 MB, free: 8.832 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.424e-05/0.1966, allocations: 8 kB / 251.1 MB, free: 8.824 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.0008638/0.1975, allocations: 0.5562 MB / 251.6 MB, free: 8.219 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.1975, allocations: 8.031 kB / 251.7 MB, free: 8.211 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.011e-05/0.1976, allocations: 35.62 kB / 251.7 MB, free: 8.176 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.198, allocations: 258.4 kB / 251.9 MB, free: 7.883 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.725e-05/0.198, allocations: 76.06 kB / 252 MB, free: 7.793 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.1981, allocations: 28 kB / 252 MB, free: 7.766 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004783/0.1986, allocations: 294 kB / 252.3 MB, free: 7.461 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.1986, allocations: 7.938 kB / 252.3 MB, free: 7.453 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.1987, allocations: 16 kB / 252.4 MB, free: 7.438 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.1987, allocations: 8 kB / 252.4 MB, free: 7.43 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003249/0.199, allocations: 182.2 kB / 252.5 MB, free: 7.25 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.2006, allocations: 1.147 MB / 253.7 MB, free: 6.02 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.201, allocations: 151.1 kB / 253.8 MB, free: 5.863 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.201, allocations: 0 / 253.8 MB, free: 5.863 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000279/0.2013, allocations: 159.5 kB / 254 MB, free: 5.684 MB / 186.7 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.2013, allocations: 0 / 254 MB, free: 5.684 MB / 186.7 MB Notification: Performance of matching and sorting (n=21): time 0.001063/0.2024, allocations: 399.3 kB / 254.4 MB, free: 5.27 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.03e-05/0.2025, allocations: 106.8 kB / 254.5 MB, free: 5.141 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.0002423/0.2027, allocations: 220.2 kB / 254.7 MB, free: 4.922 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.2027, allocations: 25.7 kB / 254.7 MB, free: 4.891 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.2029, allocations: 180.3 kB / 254.9 MB, free: 4.711 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.2029, allocations: 66.81 kB / 255 MB, free: 4.648 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.145e-05/0.2029, allocations: 4 kB / 255 MB, free: 4.645 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.2031, allocations: 342.8 kB / 255.3 MB, free: 4.301 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.2032, allocations: 52.5 kB / 255.4 MB, free: 4.246 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.2034, allocations: 119.9 kB / 255.5 MB, free: 4.105 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.2035, allocations: 77.06 kB / 255.5 MB, free: 4.031 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2036, allocations: 0 / 255.5 MB, free: 4.031 MB / 186.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004534/0.204, allocations: 257.6 kB / 255.8 MB, free: 3.773 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.2041, allocations: 8 kB / 255.8 MB, free: 3.766 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2041, allocations: 0 / 255.8 MB, free: 3.766 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002934/0.2044, allocations: 60.97 kB / 255.9 MB, free: 3.703 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000219/0.2046, allocations: 51.86 kB / 255.9 MB, free: 3.652 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/0.2059, allocations: 1.412 MB / 257.3 MB, free: 2.105 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.2061, allocations: 39.98 kB / 257.4 MB, free: 2.066 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.2062, allocations: 14.81 kB / 257.4 MB, free: 2.055 MB / 186.7 MB Warning: Assuming fixed start value for the following 5 variables: switch2.quenched:DISCRETE(fixed = true protected = true ) type: Boolean switch2.tSwitch:DISCRETE(unit = "s" fixed = true protected = true ) type: Real switch2.off:DISCRETE(fixed = true protected = true ) type: Boolean inductor1.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real inductor2.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" 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 () * Number of clocked 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.0002056/0.2064, allocations: 147.5 kB / 257.5 MB, free: 1.902 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.379e-05/0.2064, allocations: 31.67 kB / 257.6 MB, free: 1.871 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.451e-05/0.2065, allocations: 26.19 kB / 257.6 MB, free: 1.848 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2065, allocations: 4 kB / 257.6 MB, free: 1.844 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.2065, allocations: 0 / 257.6 MB, free: 1.844 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.2065, allocations: 3.984 kB / 257.6 MB, free: 1.84 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.2068, allocations: 313.4 kB / 257.9 MB, free: 1.484 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2068, allocations: 0 / 257.9 MB, free: 1.484 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.207, allocations: 35.94 kB / 257.9 MB, free: 1.449 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.2072, allocations: 60.75 kB / 258 MB, free: 1.387 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.2072, allocations: 7.984 kB / 258 MB, free: 1.379 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001079/0.2083, allocations: 1.321 MB / 259.3 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.2083, allocations: 32 / 259.3 MB, free: 15.93 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006427/0.209, allocations: 338.4 kB / 259.7 MB, free: 15.58 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.2091, allocations: 112.8 kB / 259.8 MB, free: 15.45 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.2092, allocations: 8 kB / 259.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.2093, allocations: 19.98 kB / 259.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.597e-05/0.2094, allocations: 36 kB / 259.8 MB, free: 15.39 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.2095, allocations: 9.719 kB / 259.8 MB, free: 15.38 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0001513/0.2096, allocations: 165.1 kB / 260 MB, free: 15.22 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2096, allocations: 0 / 260 MB, free: 15.22 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0003565/0.21, allocations: 75.84 kB / 260.1 MB, free: 15.14 MB / 202.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) * Number of clocked states: 0 () * 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.0001657/0.2102, allocations: 112.1 kB / 260.2 MB, free: 15.02 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0005503/0.2107, allocations: 296.1 kB / 260.5 MB, free: 14.72 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.2107, allocations: 0 / 260.5 MB, free: 14.72 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000277/0.211, allocations: 194.5 kB / 260.7 MB, free: 14.52 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.2114, allocations: 58.2 kB / 260.7 MB, free: 14.46 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009614/0.2123, allocations: 0.7286 MB / 261.4 MB, free: 13.72 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.2127, allocations: 0.7638 MB / 262.2 MB, free: 12.93 MB / 202.7 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.2128, allocations: 25.92 kB / 262.2 MB, free: 12.91 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.695e-05/0.2129, allocations: 23.44 kB / 262.3 MB, free: 12.88 MB / 202.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2129, allocations: 2.25 kB / 262.3 MB, free: 12.88 MB / 202.7 MB Notification: Performance of Templates: time 0.006016/0.2189, allocations: 2.885 MB / 265.1 MB, free: 10.03 MB / 202.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)