Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001028/0.001028, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.263/1.263, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001517/0.001517, allocations: 103 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.522e-05/2.524e-05, allocations: 4 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06633/0.06637, allocations: 38.77 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2712/0.3376, allocations: 69.36 MB / 377 MB, free: 6.84 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001907/0.3378, allocations: 71.66 kB / 377.1 MB, free: 6.805 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0154/0.3532, allocations: 6.023 MB / 383.1 MB, free: 1.672 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3532, allocations: 0 / 383.1 MB, free: 1.672 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.3533, allocations: 8 kB / 383.1 MB, free: 1.664 MB / 266.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.0008479/0.3541, allocations: 0.5813 MB / 383.7 MB, free: 1.062 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.3542, allocations: 8.031 kB / 383.7 MB, free: 1.055 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.466e-05/0.3543, allocations: 43.52 kB / 383.7 MB, free: 1.012 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.3546, allocations: 271 kB / 384 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.508e-05/0.3547, allocations: 80.5 kB / 384.1 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.783e-05/0.3547, allocations: 30.09 kB / 384.1 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000478/0.3552, allocations: 319.8 kB / 384.4 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.3552, allocations: 3.938 kB / 384.4 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.3553, allocations: 13.38 kB / 384.4 MB, free: 384 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.3553, allocations: 8 kB / 384.4 MB, free: 376 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003289/0.3556, allocations: 200.7 kB / 384.6 MB, free: 240 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001847/0.3575, allocations: 1.408 MB / 386 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.3578, allocations: 159.2 kB / 386.2 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.358, allocations: 75.09 kB / 386.3 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.358, allocations: 11.25 kB / 386.3 MB, free: 14.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.3582, allocations: 144 kB / 386.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 1.372e-06/0.3583, allocations: 0 / 386.4 MB, free: 14.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005541/0.3588, allocations: 214.9 kB / 386.6 MB, free: 14.44 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.3589, allocations: 110.8 kB / 386.7 MB, free: 14.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.3591, allocations: 230.2 kB / 387 MB, free: 14.12 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/0.3592, allocations: 33.08 kB / 387 MB, free: 14.08 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.3593, allocations: 206.1 kB / 387.2 MB, free: 13.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.966e-05/0.3594, allocations: 61.3 kB / 387.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.3594, allocations: 7.438 kB / 387.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.3595, allocations: 337.1 kB / 387.6 MB, free: 13.53 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.3596, allocations: 69.88 kB / 387.7 MB, free: 13.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.3598, allocations: 149.2 kB / 387.8 MB, free: 13.33 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.36, allocations: 75.94 kB / 387.9 MB, free: 13.28 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.36, allocations: 0 / 387.9 MB, free: 13.28 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004107/0.3604, allocations: 277 kB / 388.2 MB, free: 13.06 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3604, allocations: 4 kB / 388.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3604, allocations: 7.984 kB / 388.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002559/0.3607, allocations: 59.81 kB / 388.2 MB, free: 13 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002898/0.361, allocations: 83.83 kB / 388.3 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.3623, allocations: 1.403 MB / 389.7 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.3625, allocations: 51.52 kB / 389.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.3626, allocations: 11.69 kB / 389.8 MB, free: 11.38 MB / 282.7 MB 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 9.548e-05/0.3627, allocations: 119.2 kB / 389.9 MB, free: 11.27 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.674e-05/0.3627, allocations: 23.72 kB / 389.9 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.397e-05/0.3628, allocations: 34.89 kB / 389.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3628, allocations: 3.953 kB / 389.9 MB, free: 11.22 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3628, allocations: 4 kB / 389.9 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3628, allocations: 7.984 kB / 390 MB, free: 11.21 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003414/0.3631, allocations: 335.6 kB / 390.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3631, allocations: 0 / 390.3 MB, free: 10.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002511/0.3634, allocations: 59.89 kB / 390.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001727/0.3636, allocations: 54.88 kB / 390.4 MB, free: 10.78 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.3636, allocations: 11.45 kB / 390.4 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001084/0.3647, allocations: 1.319 MB / 391.7 MB, free: 9.379 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3647, allocations: 8.016 kB / 391.7 MB, free: 9.371 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006215/0.3654, allocations: 319.3 kB / 392 MB, free: 9.109 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.3655, allocations: 111.6 kB / 392.2 MB, free: 8.988 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.583e-05/0.3655, allocations: 11.39 kB / 392.2 MB, free: 8.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.3657, allocations: 23.36 kB / 392.2 MB, free: 8.961 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.25e-05/0.3658, allocations: 39.56 kB / 392.2 MB, free: 8.926 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3658, allocations: 4 kB / 392.2 MB, free: 8.922 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.366, allocations: 184.1 kB / 392.4 MB, free: 8.777 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.366, allocations: 0 / 392.4 MB, free: 8.777 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.3664, allocations: 94.81 kB / 392.5 MB, free: 8.691 MB / 282.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.0001436/0.3665, allocations: 106.9 kB / 392.6 MB, free: 8.578 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004802/0.367, allocations: 287.1 kB / 392.9 MB, free: 8.336 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.367, allocations: 0 / 392.9 MB, free: 8.336 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.3673, allocations: 182.2 kB / 393.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002334/0.3675, allocations: 42.55 kB / 393.1 MB, free: 8.141 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.3688, allocations: 484.6 kB / 393.6 MB, free: 7.688 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.3692, allocations: 0.7835 MB / 394.4 MB, free: 6.875 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001129/0.3693, allocations: 26.06 kB / 394.4 MB, free: 6.848 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.62e-05/0.3693, allocations: 19.44 kB / 394.4 MB, free: 6.832 MB / 282.7 MB Notification: Performance of SimCode: time 3.3e-07/0.3693, allocations: 4 kB / 394.4 MB, free: 6.828 MB / 282.7 MB Notification: Performance of Templates: time 0.006011/0.3753, allocations: 2.857 MB / 397.3 MB, free: 3.992 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)