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.001052/0.001052, allocations: 182 kB / 13.64 MB, free: 1.676 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.599/1.599, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001624/0.001624, allocations: 116.7 kB / 253.5 MB, free: 9.594 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.801e-05/2.813e-05, allocations: 4 kB / 304.9 MB, free: 29.78 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07094/0.07098, allocations: 44.51 MB / 349.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2919/0.3629, allocations: 73.76 MB / 423.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.3632, allocations: 67.84 kB / 423.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01228/0.3755, allocations: 5.431 MB / 428.7 MB, free: 9.246 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3755, allocations: 3.938 kB / 428.7 MB, free: 9.242 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.3755, allocations: 7.844 kB / 428.7 MB, free: 9.242 MB / 298.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.0006918/0.3762, allocations: 0.5331 MB / 429.2 MB, free: 8.781 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3763, allocations: 11.53 kB / 429.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.416e-05/0.3763, allocations: 31 kB / 429.3 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.3766, allocations: 253.4 kB / 429.5 MB, free: 8.527 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.536e-05/0.3767, allocations: 84.67 kB / 429.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.3767, allocations: 29.38 kB / 429.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000452/0.3772, allocations: 287.1 kB / 429.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3772, allocations: 0 / 429.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/0.3773, allocations: 13.91 kB / 429.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.126e-06/0.3773, allocations: 7.844 kB / 429.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.3776, allocations: 185.2 kB / 430.1 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.379, allocations: 1.148 MB / 431.3 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.3793, allocations: 149.7 kB / 431.4 MB, free: 7.496 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.3794, allocations: 78.81 kB / 431.5 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.3794, allocations: 7.75 kB / 431.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.3797, allocations: 149.2 kB / 431.7 MB, free: 7.383 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.582e-06/0.3797, allocations: 0 / 431.7 MB, free: 7.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005329/0.3802, allocations: 220.8 kB / 431.9 MB, free: 7.305 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.3803, allocations: 110.2 kB / 432 MB, free: 7.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.3804, allocations: 203.6 kB / 432.2 MB, free: 7.062 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.3805, allocations: 33 kB / 432.2 MB, free: 7.027 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.603e-05/0.3806, allocations: 179.8 kB / 432.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.097e-05/0.3806, allocations: 58.36 kB / 432.4 MB, free: 6.852 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.3806, allocations: 11.22 kB / 432.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.694e-05/0.3807, allocations: 332.8 kB / 432.8 MB, free: 6.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.846e-05/0.3808, allocations: 67.03 kB / 432.8 MB, free: 6.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.3809, allocations: 122.6 kB / 433 MB, free: 6.449 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001154/0.3811, allocations: 73.23 kB / 433 MB, free: 6.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3811, allocations: 7.859 kB / 433 MB, free: 6.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0003153/0.3814, allocations: 250.6 kB / 433.3 MB, free: 6.352 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.3814, allocations: 7.688 kB / 433.3 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3814, allocations: 4.156 kB / 433.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/0.3817, allocations: 52.66 kB / 433.3 MB, free: 6.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.3819, allocations: 49.64 kB / 433.4 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009402/0.3828, allocations: 1.406 MB / 434.8 MB, free: 4.938 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.3831, allocations: 46.58 kB / 434.8 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.3831, allocations: 14.89 kB / 434.9 MB, free: 4.91 MB / 298.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 () * 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 7.569e-05/0.3832, allocations: 122.4 kB / 435 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.854e-05/0.3832, allocations: 19.19 kB / 435 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.3833, allocations: 28.36 kB / 435 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.3833, allocations: 3.75 kB / 435 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.3833, allocations: 4 kB / 435 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3833, allocations: 0 / 435 MB, free: 4.777 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.3835, allocations: 326.5 kB / 435.4 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.3835, allocations: 4 kB / 435.4 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001534/0.3837, allocations: 38.14 kB / 435.4 MB, free: 4.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.3839, allocations: 46.67 kB / 435.4 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.3839, allocations: 11.42 kB / 435.5 MB, free: 4.496 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007379/0.3846, allocations: 1.319 MB / 436.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3847, allocations: 0 / 436.8 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005032/0.3852, allocations: 335.9 kB / 437.1 MB, free: 3.066 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.878e-05/0.3853, allocations: 111.3 kB / 437.2 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.3853, allocations: 9.938 kB / 437.2 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.3855, allocations: 23.5 kB / 437.2 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.356e-05/0.3856, allocations: 27.27 kB / 437.3 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3856, allocations: 11.7 kB / 437.3 MB, free: 2.926 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001126/0.3857, allocations: 163.5 kB / 437.4 MB, free: 2.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3857, allocations: 0 / 437.4 MB, free: 2.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003201/0.386, allocations: 75.56 kB / 437.5 MB, free: 2.832 MB / 298.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) * 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.0001375/0.3862, allocations: 113.2 kB / 437.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004123/0.3866, allocations: 278.8 kB / 437.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3866, allocations: 0 / 437.9 MB, free: 2.605 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.3868, allocations: 187.5 kB / 438.1 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.3871, allocations: 44.84 kB / 438.1 MB, free: 2.473 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.3882, allocations: 0.5098 MB / 438.6 MB, free: 2.168 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.3883, allocations: 0.7653 MB / 439.4 MB, free: 1.426 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.807e-05/0.3884, allocations: 25.56 kB / 439.4 MB, free: 1.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.894e-05/0.3885, allocations: 22.81 kB / 439.4 MB, free: 1.406 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3885, allocations: 0 / 439.4 MB, free: 1.406 MB / 298.7 MB Notification: Performance of Templates: time 0.005125/0.3936, allocations: 2.749 MB / 442.2 MB, free: 40 kB / 298.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)