Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001929/0.001929, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.443/1.443, allocations: 194.3 MB / 203.1 MB, free: 9.324 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001769/0.001769, allocations: 113.3 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.386e-05/2.416e-05, allocations: 7.938 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09085, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2875/0.3784, allocations: 73.09 MB / 415.7 MB, free: 22.7 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001613/0.3786, allocations: 74.08 kB / 415.7 MB, free: 22.66 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01269/0.3913, allocations: 5.367 MB / 421.1 MB, free: 18.23 MB / 315.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3914, allocations: 0 / 421.1 MB, free: 18.23 MB / 315.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.3914, allocations: 11.98 kB / 421.1 MB, free: 18.22 MB / 315.1 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.0007767/0.3922, allocations: 0.55 MB / 421.7 MB, free: 17.65 MB / 315.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.3922, allocations: 8.688 kB / 421.7 MB, free: 17.64 MB / 315.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.659e-05/0.3923, allocations: 37.34 kB / 421.7 MB, free: 17.61 MB / 315.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.3926, allocations: 245 kB / 422 MB, free: 17.35 MB / 315.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.343e-05/0.3927, allocations: 64.19 kB / 422 MB, free: 17.28 MB / 315.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.3927, allocations: 31.06 kB / 422 MB, free: 17.25 MB / 315.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002871/0.393, allocations: 164.3 kB / 422.2 MB, free: 17.15 MB / 315.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003588/0.3934, allocations: 246.9 kB / 422.4 MB, free: 16.95 MB / 315.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.3934, allocations: 0.8438 kB / 422.4 MB, free: 16.95 MB / 315.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.921e-05/0.3934, allocations: 0 / 422.4 MB, free: 16.95 MB / 315.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.3935, allocations: 8 kB / 422.5 MB, free: 16.94 MB / 315.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.3948, allocations: 1.077 MB / 423.5 MB, free: 15.95 MB / 315.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3951, allocations: 137.8 kB / 423.7 MB, free: 15.85 MB / 315.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.929e-05/0.3952, allocations: 75.64 kB / 423.7 MB, free: 15.8 MB / 315.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.3952, allocations: 8.328 kB / 423.8 MB, free: 15.79 MB / 315.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.3955, allocations: 152.3 kB / 423.9 MB, free: 15.65 MB / 315.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.3955, allocations: 0 / 423.9 MB, free: 15.65 MB / 315.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005856/0.3961, allocations: 202.9 kB / 424.1 MB, free: 15.48 MB / 315.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.3961, allocations: 106.8 kB / 424.2 MB, free: 15.35 MB / 315.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.3963, allocations: 163.7 kB / 424.4 MB, free: 15.2 MB / 315.1 MB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.3963, allocations: 29.7 kB / 424.4 MB, free: 15.17 MB / 315.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.119e-05/0.3964, allocations: 176.6 kB / 424.6 MB, free: 15.01 MB / 315.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.3964, allocations: 61.53 kB / 424.6 MB, free: 14.96 MB / 315.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.034e-05/0.3965, allocations: 3.938 kB / 424.6 MB, free: 14.96 MB / 315.1 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.3965, allocations: 333.6 kB / 425 MB, free: 14.63 MB / 315.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.29e-05/0.3966, allocations: 54.56 kB / 425 MB, free: 14.59 MB / 315.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.3967, allocations: 114.4 kB / 425.1 MB, free: 14.49 MB / 315.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.445e-05/0.3968, allocations: 68 kB / 425.2 MB, free: 14.45 MB / 315.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3968, allocations: 224 / 425.2 MB, free: 14.45 MB / 315.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0002902/0.3971, allocations: 224.6 kB / 425.4 MB, free: 14.26 MB / 315.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3972, allocations: 16.83 kB / 425.4 MB, free: 14.25 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.3972, allocations: 0 / 425.4 MB, free: 14.25 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000228/0.3974, allocations: 59.03 kB / 425.5 MB, free: 14.2 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002643/0.3977, allocations: 51.16 kB / 425.5 MB, free: 14.15 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008228/0.3985, allocations: 1.371 MB / 426.9 MB, free: 12.72 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.3987, allocations: 33.23 kB / 426.9 MB, free: 12.69 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.3988, allocations: 8 kB / 426.9 MB, free: 12.68 MB / 315.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: switch2.v:VARIABLE(unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 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.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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.0001239/0.3989, allocations: 119.8 kB / 427.1 MB, free: 12.56 MB / 315.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.814e-05/0.3989, allocations: 19.81 kB / 427.1 MB, free: 12.54 MB / 315.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.268e-05/0.399, allocations: 28.72 kB / 427.1 MB, free: 12.53 MB / 315.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.399, allocations: 0 / 427.1 MB, free: 12.53 MB / 315.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.399, allocations: 0 / 427.1 MB, free: 12.53 MB / 315.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.399, allocations: 4 kB / 427.1 MB, free: 12.52 MB / 315.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002118/0.3992, allocations: 269.5 kB / 427.4 MB, free: 12.27 MB / 315.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3992, allocations: 0 / 427.4 MB, free: 12.27 MB / 315.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.3994, allocations: 37.34 kB / 427.4 MB, free: 12.23 MB / 315.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.3996, allocations: 52.19 kB / 427.5 MB, free: 12.19 MB / 315.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3996, allocations: 11.98 kB / 427.5 MB, free: 12.18 MB / 315.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000692/0.4003, allocations: 1.279 MB / 428.7 MB, free: 10.84 MB / 315.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4003, allocations: 0 / 428.7 MB, free: 10.84 MB / 315.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004446/0.4007, allocations: 293.4 kB / 429 MB, free: 10.61 MB / 315.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.732e-05/0.4008, allocations: 115.1 kB / 429.1 MB, free: 10.48 MB / 315.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.093e-05/0.4009, allocations: 11.94 kB / 429.2 MB, free: 10.47 MB / 315.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.401, allocations: 15.98 kB / 429.2 MB, free: 10.45 MB / 315.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.399e-05/0.4011, allocations: 31.25 kB / 429.2 MB, free: 10.43 MB / 315.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.4011, allocations: 7.062 kB / 429.2 MB, free: 10.42 MB / 315.1 MB Notification: Performance of sorting global known variables: time 7.555e-05/0.4012, allocations: 132.6 kB / 429.3 MB, free: 10.31 MB / 315.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4012, allocations: 1.875 kB / 429.3 MB, free: 10.31 MB / 315.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.4016, allocations: 83.03 kB / 429.4 MB, free: 10.23 MB / 315.1 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.quenched,switch2.tSwitch) * 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.0001647/0.4017, allocations: 99.25 kB / 429.5 MB, free: 10.12 MB / 315.1 MB Notification: Performance of simCode: created initialization part: time 0.000399/0.4022, allocations: 259.6 kB / 429.8 MB, free: 9.91 MB / 315.1 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.4022, allocations: 7.188 kB / 429.8 MB, free: 9.906 MB / 315.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001998/0.4024, allocations: 183.2 kB / 430 MB, free: 9.742 MB / 315.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.4026, allocations: 29.53 kB / 430 MB, free: 9.723 MB / 315.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001217/0.4038, allocations: 0.4937 MB / 430.5 MB, free: 9.242 MB / 315.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001713/0.404, allocations: 0.771 MB / 431.3 MB, free: 8.445 MB / 315.1 MB Notification: Performance of simCode: alias equations: time 8.586e-05/0.4041, allocations: 19.19 kB / 431.3 MB, free: 8.43 MB / 315.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.667e-05/0.4042, allocations: 19.44 kB / 431.3 MB, free: 8.41 MB / 315.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4042, allocations: 0 / 431.3 MB, free: 8.41 MB / 315.1 MB Notification: Performance of Templates: time 0.004838/0.409, allocations: 2.35 MB / 433.6 MB, free: 6.121 MB / 315.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1)