Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001083/0.001083, allocations: 178.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.135/1.135, allocations: 194.5 MB / 211.6 MB, free: 3.043 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001593/0.001593, allocations: 109.1 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002824, allocations: 12 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07261/0.07291, allocations: 44.49 MB / 355.1 MB, free: 2.348 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2075/0.2805, allocations: 74.48 MB / 429.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001617/0.2807, allocations: 70.72 kB / 429.6 MB, free: 15.05 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01266/0.2934, allocations: 6.09 MB / 435.7 MB, free: 9.988 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.2934, allocations: 0 / 435.7 MB, free: 9.988 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.2934, allocations: 8 kB / 435.7 MB, free: 9.98 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0006654/0.2941, allocations: 0.6093 MB / 436.3 MB, free: 9.352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.2941, allocations: 8.031 kB / 436.3 MB, free: 9.344 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.374e-05/0.2942, allocations: 39.92 kB / 436.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.2944, allocations: 269.5 kB / 436.6 MB, free: 9.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.411e-05/0.2945, allocations: 74.56 kB / 436.7 MB, free: 8.945 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.2945, allocations: 34.44 kB / 436.7 MB, free: 8.922 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004224/0.295, allocations: 332.1 kB / 437.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.295, allocations: 3.375 kB / 437.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.945e-05/0.295, allocations: 18.73 kB / 437.1 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.295, allocations: 12 kB / 437.1 MB, free: 8.656 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003279/0.2954, allocations: 221.8 kB / 437.3 MB, free: 8.504 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.2967, allocations: 1.391 MB / 438.7 MB, free: 7.219 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/0.297, allocations: 171.3 kB / 438.9 MB, free: 7.094 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.297, allocations: 7.984 kB / 438.9 MB, free: 7.086 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000252/0.2972, allocations: 159.1 kB / 439 MB, free: 6.938 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.2973, allocations: 0 / 439 MB, free: 6.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009306/0.2982, allocations: 419.8 kB / 439.4 MB, free: 6.566 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.2983, allocations: 110.3 kB / 439.5 MB, free: 6.438 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001838/0.2984, allocations: 232.5 kB / 439.8 MB, free: 6.246 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.2985, allocations: 32.7 kB / 439.8 MB, free: 6.211 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.127e-05/0.2986, allocations: 202.8 kB / 440 MB, free: 6.043 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.2986, allocations: 65.52 kB / 440.1 MB, free: 5.988 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.291e-05/0.2986, allocations: 7.062 kB / 440.1 MB, free: 5.984 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.076e-05/0.2987, allocations: 343.3 kB / 440.4 MB, free: 5.652 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.2988, allocations: 79.64 kB / 440.5 MB, free: 5.602 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.299, allocations: 161.4 kB / 440.6 MB, free: 5.438 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001383/0.2991, allocations: 90.45 kB / 440.7 MB, free: 5.383 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.2991, allocations: 8.031 kB / 440.7 MB, free: 5.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005217/0.2997, allocations: 322.7 kB / 441.1 MB, free: 5.121 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.2997, allocations: 7.984 kB / 441.1 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2997, allocations: 4 kB / 441.1 MB, free: 5.109 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002203/0.2999, allocations: 59.38 kB / 441.1 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.3002, allocations: 63.98 kB / 441.2 MB, free: 5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000851/0.301, allocations: 1.408 MB / 442.6 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002102/0.3012, allocations: 51 kB / 442.6 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.3013, allocations: 11.06 kB / 442.7 MB, free: 3.469 MB / 314.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: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0001197/0.3014, allocations: 154.8 kB / 442.8 MB, free: 3.328 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.871e-05/0.3014, allocations: 23.72 kB / 442.8 MB, free: 3.305 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.115e-05/0.3015, allocations: 35.19 kB / 442.9 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3015, allocations: 4 kB / 442.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.3015, allocations: 0 / 442.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3015, allocations: 0 / 442.9 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.3017, allocations: 338.9 kB / 443.2 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.3017, allocations: 4 kB / 443.2 MB, free: 2.949 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.3019, allocations: 37.11 kB / 443.2 MB, free: 2.914 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001536/0.3021, allocations: 54.56 kB / 443.3 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.3021, allocations: 12.8 kB / 443.3 MB, free: 2.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007013/0.3028, allocations: 1.331 MB / 444.6 MB, free: 1.461 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3028, allocations: 0 / 444.6 MB, free: 1.461 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005485/0.3034, allocations: 355.3 kB / 445 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.052e-05/0.3034, allocations: 111.5 kB / 445.1 MB, free: 1.059 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.3035, allocations: 11.2 kB / 445.1 MB, free: 1.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/0.3037, allocations: 23.98 kB / 445.1 MB, free: 1.031 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.03e-05/0.3037, allocations: 34.19 kB / 445.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.3038, allocations: 7.938 kB / 445.2 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001057/0.3039, allocations: 189.9 kB / 445.4 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3039, allocations: 0 / 445.4 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003013/0.3042, allocations: 93.81 kB / 445.4 MB, free: 0.7578 MB / 314.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: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * 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): 18 * 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 9.525e-05/0.3043, allocations: 108.5 kB / 445.5 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004392/0.3047, allocations: 308.4 kB / 445.9 MB, free: 396 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3047, allocations: 0.5625 kB / 445.9 MB, free: 396 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000222/0.305, allocations: 198.2 kB / 446 MB, free: 212 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001706/0.3051, allocations: 35.64 kB / 446.1 MB, free: 192 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.3064, allocations: 0.8403 MB / 446.9 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.3068, allocations: 0.7794 MB / 447.7 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000103/0.3069, allocations: 24.36 kB / 447.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.514e-05/0.3069, allocations: 31.36 kB / 447.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3069, allocations: 0 / 447.8 MB, free: 14.51 MB / 330.7 MB Notification: Performance of Templates: time 0.005436/0.3124, allocations: 2.77 MB / 450.5 MB, free: 11.8 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)