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.001173/0.001173, allocations: 156.1 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.203/1.203, allocations: 170.7 MB / 178.7 MB, free: 6.973 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.001523/0.001523, allocations: 104.5 kB / 218 MB, free: 15.33 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.368e-05/1.371e-05, allocations: 0 / 262.2 MB, free: 3.062 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2243, allocations: 38.77 MB / 301 MB, free: 39.14 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08956/0.314, allocations: 68.7 MB / 369.7 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.3143, allocations: 63.97 kB / 369.7 MB, free: 10.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0157/0.33, allocations: 5.962 MB / 375.7 MB, free: 4.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.33, allocations: 0 / 375.7 MB, free: 4.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.3301, allocations: 8 kB / 375.7 MB, free: 4.973 MB / 282.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.0009815/0.331, allocations: 0.5777 MB / 376.3 MB, free: 4.352 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3311, allocations: 12.03 kB / 376.3 MB, free: 4.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.026e-05/0.3312, allocations: 40.38 kB / 376.3 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.3315, allocations: 267.9 kB / 376.6 MB, free: 3.996 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.172e-05/0.3316, allocations: 76.17 kB / 376.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.339e-05/0.3317, allocations: 20 kB / 376.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003241/0.332, allocations: 177.5 kB / 376.9 MB, free: 3.715 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004235/0.3325, allocations: 274.7 kB / 377.1 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3325, allocations: 0 / 377.1 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.784e-05/0.3325, allocations: 0 / 377.1 MB, free: 3.426 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.3325, allocations: 8 kB / 377.1 MB, free: 3.418 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.3344, allocations: 1.34 MB / 378.5 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003297/0.3347, allocations: 158.6 kB / 378.6 MB, free: 1.832 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.3349, allocations: 64.86 kB / 378.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.3349, allocations: 320 / 378.7 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.3352, allocations: 145.7 kB / 378.8 MB, free: 1.605 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 1.222e-06/0.3352, allocations: 224 / 378.8 MB, free: 1.605 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005591/0.3358, allocations: 202.2 kB / 379 MB, free: 1.398 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.11e-05/0.3359, allocations: 110.8 kB / 379.2 MB, free: 1.266 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.3361, allocations: 200.4 kB / 379.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.3361, allocations: 25.7 kB / 379.4 MB, free: 1.035 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.3363, allocations: 208.1 kB / 379.6 MB, free: 0.8242 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.666e-05/0.3363, allocations: 63.19 kB / 379.6 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.3363, allocations: 0 / 379.6 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.3365, allocations: 334.8 kB / 380 MB, free: 436 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.3366, allocations: 59.98 kB / 380 MB, free: 376 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.3368, allocations: 147.7 kB / 380.2 MB, free: 192 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.3369, allocations: 63.91 kB / 380.2 MB, free: 128 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.337, allocations: 0 / 380.2 MB, free: 128 kB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003894/0.3374, allocations: 250 kB / 380.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3374, allocations: 4 kB / 380.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.3374, allocations: 4 kB / 380.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002694/0.3377, allocations: 61.09 kB / 380.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.338, allocations: 75.89 kB / 380.6 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.3391, allocations: 1.369 MB / 382 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.3394, allocations: 43.83 kB / 382 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.3394, allocations: 15.98 kB / 382 MB, free: 14.19 MB / 298.7 MB 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.0001416/0.3396, allocations: 114.9 kB / 382.2 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.3396, allocations: 23.72 kB / 382.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.782e-05/0.3397, allocations: 25.95 kB / 382.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.3397, allocations: 7.984 kB / 382.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.843e-06/0.3397, allocations: 0 / 382.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3397, allocations: 6.109 kB / 382.2 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.34, allocations: 285.9 kB / 382.5 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.34, allocations: 3.984 kB / 382.5 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002541/0.3403, allocations: 55.97 kB / 382.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.3404, allocations: 56.75 kB / 382.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.551e-05/0.3405, allocations: 0 / 382.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009999/0.3415, allocations: 1.278 MB / 383.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3415, allocations: 3.938 kB / 383.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.342, allocations: 309.4 kB / 384.2 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.874e-05/0.3421, allocations: 112.8 kB / 384.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.421e-05/0.3422, allocations: 0 / 384.3 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.3424, allocations: 24.05 kB / 384.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.844e-05/0.3425, allocations: 31.94 kB / 384.4 MB, free: 11.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.3425, allocations: 7.953 kB / 384.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.3426, allocations: 152.5 kB / 384.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3426, allocations: 0 / 384.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003649/0.343, allocations: 87.69 kB / 384.6 MB, free: 11.43 MB / 298.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.0001745/0.3432, allocations: 111.2 kB / 384.7 MB, free: 11.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004593/0.3437, allocations: 257.6 kB / 385 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3437, allocations: 4 kB / 385 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.3439, allocations: 181.6 kB / 385.1 MB, free: 10.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002139/0.3441, allocations: 28.47 kB / 385.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.3454, allocations: 479 kB / 385.6 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.3457, allocations: 0.7831 MB / 386.4 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.3458, allocations: 18.06 kB / 386.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.583e-05/0.3459, allocations: 27.38 kB / 386.5 MB, free: 9.492 MB / 298.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3459, allocations: 0 / 386.5 MB, free: 9.492 MB / 298.7 MB Notification: Performance of Templates: time 0.005605/0.3515, allocations: 2.421 MB / 388.9 MB, free: 7.129 MB / 298.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)