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.0009931/0.000993, allocations: 179.2 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.131/1.131, 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.001598/0.001597, allocations: 114.7 kB / 256.9 MB, free: 4.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002835/0.0002835, allocations: 12 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07599/0.07629, allocations: 44.5 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2369/0.3132, allocations: 73.84 MB / 428.9 MB, free: 15.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.3135, allocations: 69.73 kB / 429 MB, free: 15.59 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01179/0.3253, allocations: 5.426 MB / 434.4 MB, free: 11.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.3254, allocations: 4 kB / 434.4 MB, free: 11.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.222e-05/0.3254, allocations: 6.156 kB / 434.4 MB, free: 11.08 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0007569/0.3262, allocations: 0.574 MB / 435 MB, free: 10.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3262, allocations: 8.031 kB / 435 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.3263, allocations: 44.16 kB / 435 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.3266, allocations: 252.1 kB / 435.3 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.815e-05/0.3266, allocations: 74.19 kB / 435.3 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.3267, allocations: 29.31 kB / 435.4 MB, free: 10.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.3271, allocations: 290.6 kB / 435.7 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3271, allocations: 0 / 435.7 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.943e-05/0.3271, allocations: 14.25 kB / 435.7 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3272, allocations: 12 kB / 435.7 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002801/0.3274, allocations: 186.4 kB / 435.9 MB, free: 9.715 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.3288, allocations: 1.137 MB / 437 MB, free: 8.672 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002866/0.3291, allocations: 155.5 kB / 437.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.3291, allocations: 352 / 437.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/0.3295, allocations: 162.2 kB / 437.3 MB, free: 8.406 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.3295, allocations: 0 / 437.3 MB, free: 8.406 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009553/0.3304, allocations: 402.6 kB / 437.7 MB, free: 8.051 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.3305, allocations: 106.8 kB / 437.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.3306, allocations: 196.8 kB / 438 MB, free: 7.754 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.3307, allocations: 32.7 kB / 438 MB, free: 7.719 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.9e-05/0.3307, allocations: 173.8 kB / 438.2 MB, free: 7.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.093e-05/0.3308, allocations: 69.19 kB / 438.3 MB, free: 7.512 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.3308, allocations: 4.219 kB / 438.3 MB, free: 7.512 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.786e-05/0.3309, allocations: 339.4 kB / 438.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001008/0.331, allocations: 68.41 kB / 438.7 MB, free: 7.133 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.3311, allocations: 131.9 kB / 438.8 MB, free: 7.012 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001075/0.3312, allocations: 69.41 kB / 438.9 MB, free: 6.973 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3312, allocations: 4.031 kB / 438.9 MB, free: 6.969 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003317/0.3316, allocations: 262.8 kB / 439.1 MB, free: 6.766 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.3316, allocations: 9.406 kB / 439.1 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3316, allocations: 0 / 439.1 MB, free: 6.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002478/0.3319, allocations: 58.97 kB / 439.2 MB, free: 6.707 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.3321, allocations: 47.05 kB / 439.2 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008776/0.333, allocations: 1.405 MB / 440.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.3332, allocations: 35.02 kB / 440.7 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.806e-05/0.3332, allocations: 14.69 kB / 440.7 MB, free: 5.145 MB / 314.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.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 (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.0001092/0.3333, allocations: 143.8 kB / 440.8 MB, free: 5.012 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.662e-05/0.3333, allocations: 23.72 kB / 440.9 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.3334, allocations: 31.17 kB / 440.9 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3334, allocations: 0 / 440.9 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.3334, allocations: 3.938 kB / 440.9 MB, free: 4.973 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3334, allocations: 3.984 kB / 440.9 MB, free: 4.969 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.3336, allocations: 323.5 kB / 441.2 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3336, allocations: 0 / 441.2 MB, free: 4.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.3338, allocations: 36.64 kB / 441.3 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001562/0.334, allocations: 51.81 kB / 441.3 MB, free: 4.582 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.334, allocations: 7.812 kB / 441.3 MB, free: 4.578 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000727/0.3347, allocations: 1.332 MB / 442.6 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3347, allocations: 256 / 442.6 MB, free: 3.172 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004846/0.3352, allocations: 335.2 kB / 443 MB, free: 2.906 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.711e-05/0.3353, allocations: 115.2 kB / 443.1 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.3353, allocations: 1.219 kB / 443.1 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.3355, allocations: 27.92 kB / 443.1 MB, free: 2.758 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.748e-05/0.3356, allocations: 31 kB / 443.1 MB, free: 2.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.3356, allocations: 7.938 kB / 443.2 MB, free: 2.727 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.339e-05/0.3357, allocations: 156.7 kB / 443.3 MB, free: 2.598 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.91e-07/0.3357, allocations: 0 / 443.3 MB, free: 2.598 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003011/0.336, allocations: 86.58 kB / 443.4 MB, free: 2.52 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulsStart,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): 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.0001187/0.3361, allocations: 110.7 kB / 443.5 MB, free: 2.406 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.3365, allocations: 283.7 kB / 443.8 MB, free: 2.164 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3366, allocations: 0 / 443.8 MB, free: 2.164 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002079/0.3368, allocations: 185.1 kB / 444 MB, free: 1.996 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.337, allocations: 48.2 kB / 444 MB, free: 1.965 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.3383, allocations: 0.8143 MB / 444.8 MB, free: 1.176 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/0.3384, allocations: 0.7674 MB / 445.6 MB, free: 392 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.627e-05/0.3385, allocations: 29.92 kB / 445.6 MB, free: 360 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.857e-05/0.3386, allocations: 19.44 kB / 445.6 MB, free: 340 kB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3386, allocations: 0 / 445.6 MB, free: 340 kB / 314.7 MB Notification: Performance of Templates: time 0.005456/0.344, allocations: 2.738 MB / 448.4 MB, free: 13.65 MB / 330.7 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)