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.8583/0.8583, allocations: 110.8 MB / 123.3 MB, free: 10.78 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00162/0.00162, allocations: 143.5 kB / 149.1 MB, free: 0.9922 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.931e-05, allocations: 0 / 180.2 MB, free: 17.56 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06055/0.06059, allocations: 25.17 MB / 205.4 MB, free: 8.43 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05985/0.1205, allocations: 36.7 MB / 242.1 MB, free: 3.672 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.1208, allocations: 59.97 kB / 242.1 MB, free: 3.613 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1709/0.2917, allocations: 5.79 MB / 247.9 MB, free: 41.14 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2917, allocations: 0 / 247.9 MB, free: 41.14 MB / 186.7 MB Notification: Performance of Transformations before backend: time 2.623e-05/0.2918, allocations: 6.844 kB / 247.9 MB, free: 41.14 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.001001/0.2928, allocations: 0.5736 MB / 248.5 MB, free: 40.71 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/0.2929, allocations: 12.34 kB / 248.5 MB, free: 40.71 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001244/0.293, allocations: 39.8 kB / 248.6 MB, free: 40.69 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.2935, allocations: 264.4 kB / 248.8 MB, free: 40.47 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.2936, allocations: 77.16 kB / 248.9 MB, free: 40.41 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.133e-05/0.2937, allocations: 32.38 kB / 248.9 MB, free: 40.41 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007616/0.2944, allocations: 323.4 kB / 249.2 MB, free: 40.33 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.907e-05/0.2945, allocations: 7.188 kB / 249.3 MB, free: 40.32 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.35e-05/0.2945, allocations: 11.48 kB / 249.3 MB, free: 40.32 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.478e-05/0.2946, allocations: 10.41 kB / 249.3 MB, free: 40.32 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005299/0.2951, allocations: 198.4 kB / 249.5 MB, free: 40.32 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.2978, allocations: 1.403 MB / 250.9 MB, free: 39.37 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004981/0.2983, allocations: 167.1 kB / 251 MB, free: 39.29 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.2985, allocations: 73.52 kB / 251.1 MB, free: 39.26 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.2985, allocations: 2.875 kB / 251.1 MB, free: 39.26 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.2989, allocations: 145.3 kB / 251.3 MB, free: 39.15 MB / 186.7 MB Notification: Performance of pre-optimization done (n=19): time 2.665e-06/0.2989, allocations: 4 kB / 251.3 MB, free: 39.15 MB / 186.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007699/0.2997, allocations: 219.2 kB / 251.5 MB, free: 39.05 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.177e-05/0.2998, allocations: 105.6 kB / 251.6 MB, free: 38.92 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.0003415/0.3001, allocations: 234.6 kB / 251.8 MB, free: 38.79 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.3002, allocations: 31.08 kB / 251.8 MB, free: 38.75 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3003, allocations: 204.4 kB / 252 MB, free: 38.58 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.402e-05/0.3004, allocations: 68.48 kB / 252.1 MB, free: 38.53 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.272e-05/0.3004, allocations: 5.594 kB / 252.1 MB, free: 38.52 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 9.644e-05/0.3005, allocations: 331 kB / 252.4 MB, free: 38.2 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.3007, allocations: 66.92 kB / 252.5 MB, free: 38.18 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.3008, allocations: 143.6 kB / 252.6 MB, free: 38.04 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001555/0.301, allocations: 77.58 kB / 252.7 MB, free: 38.01 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.301, allocations: 0 / 252.7 MB, free: 38.01 MB / 186.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006303/0.3017, allocations: 316.2 kB / 253 MB, free: 37.87 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3017, allocations: 8.719 kB / 253 MB, free: 37.87 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3017, allocations: 4.688 kB / 253 MB, free: 37.87 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003057/0.302, allocations: 51.34 kB / 253.1 MB, free: 37.86 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003887/0.3024, allocations: 88.03 kB / 253.2 MB, free: 37.84 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.3039, allocations: 1.403 MB / 254.6 MB, free: 36.44 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003542/0.3043, allocations: 53.95 kB / 254.6 MB, free: 36.42 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.168e-05/0.3043, allocations: 12.69 kB / 254.6 MB, free: 36.41 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 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.0002101/0.3046, allocations: 128.2 kB / 254.8 MB, free: 36.3 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.87e-05/0.3046, allocations: 28 kB / 254.8 MB, free: 36.28 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.914e-05/0.3047, allocations: 30.97 kB / 254.8 MB, free: 36.26 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3047, allocations: 5.938 kB / 254.8 MB, free: 36.25 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3047, allocations: 1.219 kB / 254.8 MB, free: 36.25 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3047, allocations: 3.953 kB / 254.8 MB, free: 36.25 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000426/0.3052, allocations: 336 kB / 255.2 MB, free: 36 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3052, allocations: 0 / 255.2 MB, free: 36 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.3055, allocations: 62.08 kB / 255.2 MB, free: 35.99 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001775/0.3056, allocations: 52.59 kB / 255.3 MB, free: 35.97 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.3057, allocations: 8.703 kB / 255.3 MB, free: 35.97 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008844/0.3066, allocations: 1.323 MB / 256.6 MB, free: 34.64 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.3066, allocations: 7.703 kB / 256.6 MB, free: 34.63 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006701/0.3073, allocations: 320.2 kB / 256.9 MB, free: 34.46 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.3074, allocations: 112.8 kB / 257 MB, free: 34.35 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.3074, allocations: 2.375 kB / 257 MB, free: 34.35 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.3076, allocations: 32.3 kB / 257.1 MB, free: 34.34 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.3077, allocations: 33.28 kB / 257.1 MB, free: 34.34 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.3078, allocations: 3.75 kB / 257.1 MB, free: 34.34 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001834/0.3079, allocations: 188.8 kB / 257.3 MB, free: 34.22 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3079, allocations: 0 / 257.3 MB, free: 34.22 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004416/0.3084, allocations: 91.12 kB / 257.4 MB, free: 34.2 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.0001829/0.3086, allocations: 107 kB / 257.5 MB, free: 34.11 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0005627/0.3092, allocations: 286.3 kB / 257.8 MB, free: 33.93 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3092, allocations: 1.281 kB / 257.8 MB, free: 33.93 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.3094, allocations: 196.3 kB / 258 MB, free: 33.79 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/0.3098, allocations: 57.5 kB / 258 MB, free: 33.77 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008449/0.3107, allocations: 449.3 kB / 258.4 MB, free: 33.5 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.3109, allocations: 0.7804 MB / 259.2 MB, free: 32.79 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 0.000116/0.3111, allocations: 24.17 kB / 259.3 MB, free: 32.79 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.3111, allocations: 26 kB / 259.3 MB, free: 32.78 MB / 186.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3111, allocations: 0 / 259.3 MB, free: 32.78 MB / 186.7 MB Notification: Performance of Templates: time 0.006557/0.3177, allocations: 2.993 MB / 262.3 MB, free: 31.86 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)