Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005999/0.005999, allocations: 102.5 kB / 15.73 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 199.2 kB / 16.68 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.661/1.661, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 51.31 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1764/0.1781, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00538/0.1835, allocations: 3.089 MB / 376.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002826/0.1864, allocations: 0.7834 MB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004/0.187, allocations: 11.94 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003021/0.1873, allocations: 59.42 kB / 377.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.1876, allocations: 107 kB / 377.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006166/0.1882, allocations: 111.8 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006053/0.1888, allocations: 418 kB / 377.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004005/0.1893, allocations: 147.7 kB / 377.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.1896, allocations: 155.4 kB / 378 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002632/0.1898, allocations: 179.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.508e-05/0.1899, allocations: 32 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.565e-05/0.19, allocations: 36 kB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001289/0.1901, allocations: 75.77 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002625/0.1904, allocations: 191.1 kB / 378.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.1909, allocations: 422.5 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.1909, allocations: 0 / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.552e-06/0.1909, allocations: 0 / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.191, allocations: 3.938 kB / 379 MB, free: 11.48 MB / 318.1 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.001584/0.1926, allocations: 0.651 MB / 379.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/0.1926, allocations: 8.031 kB / 379.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001383/0.1928, allocations: 44.47 kB / 379.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006984/0.1935, allocations: 273.3 kB / 379.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.1936, allocations: 84.61 kB / 380 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-05/0.1937, allocations: 28.38 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006794/0.1944, allocations: 338.9 kB / 380.4 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.1944, allocations: 0 / 380.4 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.518e-05/0.1945, allocations: 16 kB / 380.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.1945, allocations: 8 kB / 380.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004242/0.1949, allocations: 218.5 kB / 380.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002172/0.1971, allocations: 1.364 MB / 382 MB, free: 8.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003843/0.1975, allocations: 170.5 kB / 382.1 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000197/0.1977, allocations: 96.75 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.1978, allocations: 0 / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003623/0.1981, allocations: 157.9 kB / 382.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.774e-06/0.1981, allocations: 0 / 382.4 MB, free: 7.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001324/0.1995, allocations: 403.1 kB / 382.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1996, allocations: 114.7 kB / 382.9 MB, free: 7.238 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.2, allocations: 254.7 kB / 383.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.2, allocations: 33.7 kB / 383.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.2002, allocations: 207.7 kB / 383.4 MB, free: 6.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.331e-05/0.2003, allocations: 75.08 kB / 383.4 MB, free: 6.656 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.2005, allocations: 61.94 kB / 383.5 MB, free: 6.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.2007, allocations: 338.8 kB / 383.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.2009, allocations: 80.61 kB / 383.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.2012, allocations: 177.4 kB / 384.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004552/0.2017, allocations: 235.6 kB / 384.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.2017, allocations: 0 / 384.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008099/0.2025, allocations: 343.5 kB / 384.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.2025, allocations: 4 kB / 384.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.2026, allocations: 4 kB / 384.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003597/0.2029, allocations: 61.09 kB / 384.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/0.2032, allocations: 63.91 kB / 384.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001549/0.2048, allocations: 1.564 MB / 386.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002998/0.2051, allocations: 55.72 kB / 386.4 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.2051, allocations: 16 kB / 386.4 MB, free: 3.441 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002152/0.2054, allocations: 149.8 kB / 386.6 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.877e-05/0.2054, allocations: 23.72 kB / 386.6 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.192e-05/0.2055, allocations: 38.05 kB / 386.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-06/0.2055, allocations: 0 / 386.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2055, allocations: 0 / 386.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.2055, allocations: 4 kB / 386.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004716/0.206, allocations: 341.3 kB / 387 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.206, allocations: 0 / 387 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002085/0.2062, allocations: 39.92 kB / 387 MB, free: 2.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002178/0.2065, allocations: 52.75 kB / 387.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.03e-05/0.2065, allocations: 15.98 kB / 387.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001627/0.2081, allocations: 1.414 MB / 388.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.2082, allocations: 0 / 388.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007615/0.2089, allocations: 346.2 kB / 388.8 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.2091, allocations: 120.9 kB / 388.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.2091, allocations: 7.938 kB / 388.9 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.2093, allocations: 19.98 kB / 389 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.2095, allocations: 31.89 kB / 389 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.2095, allocations: 7.984 kB / 389 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.2097, allocations: 182 kB / 389.2 MB, free: 448 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2097, allocations: 4 kB / 389.2 MB, free: 444 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004509/0.2101, allocations: 91.69 kB / 389.3 MB, free: 352 kB / 318.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: 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001848/0.2103, allocations: 111.2 kB / 389.4 MB, free: 228 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007307/0.2111, allocations: 310.4 kB / 389.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.2111, allocations: 0.6875 kB / 389.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003287/0.2114, allocations: 210.5 kB / 389.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2117, allocations: 40.45 kB / 389.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.2136, allocations: 0.6644 MB / 390.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006466/0.2143, allocations: 0.7752 MB / 391.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.2145, allocations: 22.3 kB / 391.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.88e-05/0.2145, allocations: 27.42 kB / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of SimCode: time 1.673e-06/0.2146, allocations: 0 / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Templates: time 0.008766/0.2233, allocations: 3.136 MB / 394.6 MB, free: 10.96 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)