Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00129/0.001291, 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.315/1.315, allocations: 170.6 MB / 183.8 MB, free: 11.42 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.001587/0.001587, allocations: 103.5 kB / 223.2 MB, free: 4.043 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.227e-05/4.265e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07431/0.07437, allocations: 38.78 MB / 307.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2555/0.3299, allocations: 68.36 MB / 376 MB, free: 7.844 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.3302, allocations: 67.22 kB / 376.1 MB, free: 7.809 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01429/0.3445, allocations: 5.353 MB / 381.4 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3446, allocations: 4 kB / 381.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.3446, allocations: 4 kB / 381.4 MB, free: 3.238 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0008046/0.3454, allocations: 0.5368 MB / 382 MB, free: 2.676 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3455, allocations: 8.031 kB / 382 MB, free: 2.668 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.977e-05/0.3456, allocations: 39.56 kB / 382 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.3459, allocations: 247.2 kB / 382.3 MB, free: 2.367 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.405e-05/0.3459, allocations: 81.55 kB / 382.3 MB, free: 2.285 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.346, allocations: 30.06 kB / 382.4 MB, free: 2.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.3464, allocations: 295.1 kB / 382.6 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3465, allocations: 0 / 382.6 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.072e-05/0.3465, allocations: 11.19 kB / 382.7 MB, free: 2.035 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.3465, allocations: 8 kB / 382.7 MB, free: 2.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003023/0.3468, allocations: 185.3 kB / 382.8 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.3484, allocations: 1.143 MB / 384 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002846/0.3487, allocations: 157.2 kB / 384.1 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.3489, allocations: 82.09 kB / 384.2 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.187e-05/0.3489, allocations: 3.953 kB / 384.2 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002585/0.3492, allocations: 151.7 kB / 384.4 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.3492, allocations: 0 / 384.4 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005897/0.3498, allocations: 227.6 kB / 384.6 MB, free: 352 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/0.3499, allocations: 106.8 kB / 384.7 MB, free: 220 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.3501, allocations: 201 kB / 384.9 MB, free: 48 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.3501, allocations: 32.64 kB / 384.9 MB, free: 12 kB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.3503, allocations: 176.9 kB / 385.1 MB, free: 15.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.3503, allocations: 62.05 kB / 385.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.141e-05/0.3503, allocations: 3.562 kB / 385.2 MB, free: 15.81 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.3505, allocations: 337.9 kB / 385.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.3506, allocations: 62.5 kB / 385.6 MB, free: 15.44 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.3508, allocations: 133.4 kB / 385.7 MB, free: 15.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/0.3509, allocations: 67.17 kB / 385.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3509, allocations: 4 kB / 385.8 MB, free: 15.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003784/0.3513, allocations: 259.2 kB / 386 MB, free: 15.06 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3513, allocations: 4 kB / 386 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3513, allocations: 4 kB / 386 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.3516, allocations: 55.72 kB / 386.1 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.3518, allocations: 51.67 kB / 386.1 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3531, allocations: 1.401 MB / 387.5 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.3534, allocations: 47.42 kB / 387.6 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.14e-05/0.3534, allocations: 11.62 kB / 387.6 MB, free: 13.43 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,$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 (32): * Single equations (assignments): 31 * 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.0001042/0.3535, allocations: 131.6 kB / 387.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.3536, allocations: 19.81 kB / 387.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.191e-05/0.3536, allocations: 27.95 kB / 387.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3536, allocations: 4 kB / 387.8 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.3537, allocations: 4 kB / 387.8 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3537, allocations: 0 / 387.8 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003103/0.354, allocations: 327.8 kB / 388.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.354, allocations: 0 / 388.1 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.3542, allocations: 35.92 kB / 388.1 MB, free: 12.9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/0.3543, allocations: 56.5 kB / 388.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.3544, allocations: 7.625 kB / 388.2 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.3554, allocations: 1.316 MB / 389.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3554, allocations: 0 / 389.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005861/0.356, allocations: 339.6 kB / 389.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.3562, allocations: 115.1 kB / 389.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.3562, allocations: 3.188 kB / 389.9 MB, free: 11.06 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.3564, allocations: 19.98 kB / 390 MB, free: 11.04 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.484e-05/0.3565, allocations: 34.5 kB / 390 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.418e-05/0.3565, allocations: 4 kB / 390 MB, free: 11.01 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000137/0.3566, allocations: 168.6 kB / 390.2 MB, free: 10.87 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3566, allocations: 4.062 kB / 390.2 MB, free: 10.86 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003722/0.357, allocations: 82.73 kB / 390.3 MB, free: 10.79 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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 (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000147/0.3572, allocations: 106.6 kB / 390.4 MB, free: 10.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004617/0.3576, allocations: 276.6 kB / 390.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3577, allocations: 0 / 390.6 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.3579, allocations: 192.1 kB / 390.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.3582, allocations: 33.92 kB / 390.9 MB, free: 10.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.3596, allocations: 0.5062 MB / 391.4 MB, free: 9.75 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.3599, allocations: 0.7635 MB / 392.1 MB, free: 8.961 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.36, allocations: 18.08 kB / 392.1 MB, free: 8.945 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.895e-05/0.3601, allocations: 23.42 kB / 392.2 MB, free: 8.922 MB / 282.7 MB Notification: Performance of SimCode: time 4.51e-07/0.3601, allocations: 0 / 392.2 MB, free: 8.922 MB / 282.7 MB Notification: Performance of Templates: time 0.006131/0.3662, allocations: 2.761 MB / 394.9 MB, free: 6.18 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)