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.6843/0.6843, 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.001624/0.001624, allocations: 143.3 kB / 151.8 MB, free: 5.008 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.000258, allocations: 4 kB / 184.9 MB, free: 3.93 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1071, allocations: 25.15 MB / 210.1 MB, free: 29.76 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.03795/0.1451, allocations: 36.79 MB / 246.8 MB, free: 13.05 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.1453, allocations: 69.45 kB / 246.9 MB, free: 12.98 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01599/0.1613, allocations: 5.796 MB / 252.7 MB, free: 7.207 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1614, allocations: 4 kB / 252.7 MB, free: 7.203 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.651e-05/0.1614, allocations: 8 kB / 252.7 MB, free: 7.195 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.0008796/0.1623, allocations: 0.5972 MB / 253.3 MB, free: 6.551 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.1623, allocations: 8.031 kB / 253.3 MB, free: 6.543 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.513e-05/0.1624, allocations: 39.53 kB / 253.4 MB, free: 6.504 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.1627, allocations: 267.6 kB / 253.6 MB, free: 6.199 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.1628, allocations: 80.06 kB / 253.7 MB, free: 6.109 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.037e-05/0.1629, allocations: 28.34 kB / 253.7 MB, free: 6.082 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005771/0.1635, allocations: 350.5 kB / 254.1 MB, free: 5.719 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1635, allocations: 0 / 254.1 MB, free: 5.719 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.1635, allocations: 16 kB / 254.1 MB, free: 5.703 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1635, allocations: 8 kB / 254.1 MB, free: 5.695 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.164, allocations: 238.1 kB / 254.3 MB, free: 5.461 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.1658, allocations: 1.402 MB / 255.7 MB, free: 3.957 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004168/0.1662, allocations: 190.7 kB / 255.9 MB, free: 3.762 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.1662, allocations: 7.938 kB / 255.9 MB, free: 3.754 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003126/0.1666, allocations: 176.4 kB / 256.1 MB, free: 3.566 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.685e-06/0.1666, allocations: 4 kB / 256.1 MB, free: 3.562 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.001139/0.1677, allocations: 443.9 kB / 256.5 MB, free: 3.102 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.1678, allocations: 107 kB / 256.6 MB, free: 2.973 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. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002409/0.1681, allocations: 237.8 kB / 256.9 MB, free: 2.734 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.1681, allocations: 37.64 kB / 256.9 MB, free: 2.691 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1682, allocations: 200 kB / 257.1 MB, free: 2.492 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.894e-05/0.1683, allocations: 63.09 kB / 257.2 MB, free: 2.43 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.1683, allocations: 4 kB / 257.2 MB, free: 2.426 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.1684, allocations: 342.8 kB / 257.5 MB, free: 2.082 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.1686, allocations: 83.95 kB / 257.6 MB, free: 2 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.1688, allocations: 159.3 kB / 257.7 MB, free: 1.805 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001936/0.169, allocations: 100.7 kB / 257.8 MB, free: 1.707 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.169, allocations: 0 / 257.8 MB, free: 1.707 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006735/0.1697, allocations: 345.2 kB / 258.2 MB, free: 1.363 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1697, allocations: 8 kB / 258.2 MB, free: 1.355 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.1698, allocations: 0 / 258.2 MB, free: 1.355 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/0.17, allocations: 64.91 kB / 258.2 MB, free: 1.289 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.1703, allocations: 86.64 kB / 258.3 MB, free: 1.207 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.1715, allocations: 1.409 MB / 259.7 MB, free: 15.66 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.1717, allocations: 55.66 kB / 259.8 MB, free: 15.6 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.1718, allocations: 8 kB / 259.8 MB, free: 15.59 MB / 202.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: 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 () * Number of clocked 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.0001884/0.172, allocations: 163.6 kB / 260 MB, free: 15.43 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.304e-05/0.172, allocations: 23.72 kB / 260 MB, free: 15.4 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.541e-05/0.172, allocations: 30.19 kB / 260 MB, free: 15.38 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1721, allocations: 7.938 kB / 260 MB, free: 15.37 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1721, allocations: 0 / 260 MB, free: 15.37 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1721, allocations: 0 / 260 MB, free: 15.37 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.1724, allocations: 341.3 kB / 260.4 MB, free: 14.98 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.1724, allocations: 5.797 kB / 260.4 MB, free: 14.98 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002384/0.1726, allocations: 51.97 kB / 260.4 MB, free: 14.93 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000173/0.1728, allocations: 56.75 kB / 260.5 MB, free: 14.87 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.1728, allocations: 8 kB / 260.5 MB, free: 14.86 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009961/0.1738, allocations: 1.334 MB / 261.8 MB, free: 13.39 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1739, allocations: 0.75 kB / 261.8 MB, free: 13.39 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007215/0.1746, allocations: 378.7 kB / 262.2 MB, free: 13 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.1747, allocations: 120.8 kB / 262.3 MB, free: 12.87 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.378e-05/0.1748, allocations: 7.953 kB / 262.3 MB, free: 12.86 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001759/0.1749, allocations: 23.98 kB / 262.3 MB, free: 12.84 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.996e-05/0.175, allocations: 35.92 kB / 262.4 MB, free: 12.8 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.1751, allocations: 5.75 kB / 262.4 MB, free: 12.8 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0001517/0.1752, allocations: 194 kB / 262.6 MB, free: 12.61 MB / 202.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1752, allocations: 0 / 262.6 MB, free: 12.61 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.1756, allocations: 87.69 kB / 262.6 MB, free: 12.52 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: 4 ($whenCondition1,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 (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.0001248/0.1757, allocations: 107.2 kB / 262.7 MB, free: 12.41 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.0005815/0.1763, allocations: 335.8 kB / 263.1 MB, free: 12.07 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1763, allocations: 0 / 263.1 MB, free: 12.07 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.1766, allocations: 207.1 kB / 263.3 MB, free: 11.86 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.1769, allocations: 64.86 kB / 263.3 MB, free: 11.8 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009451/0.1779, allocations: 0.7844 MB / 264.1 MB, free: 11 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002844/0.1782, allocations: 0.7757 MB / 264.9 MB, free: 10.19 MB / 202.7 MB Notification: Performance of simCode: alias equations: time 0.0001101/0.1783, allocations: 26.28 kB / 264.9 MB, free: 10.16 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.1784, allocations: 19.44 kB / 264.9 MB, free: 10.15 MB / 202.7 MB Notification: Performance of SimCode: time 3.01e-07/0.1784, allocations: 0 / 264.9 MB, free: 10.15 MB / 202.7 MB Notification: Performance of Templates: time 0.005648/0.184, allocations: 2.991 MB / 267.9 MB, free: 7.191 MB / 202.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)