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.008355/0.008355, allocations: 102.5 kB / 15.73 MB, free: 6.062 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.001682/0.001683, allocations: 195.9 kB / 16.68 MB, free: 5.977 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.665/1.665, allocations: 205.1 MB / 222.6 MB, free: 4.477 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.001588/0.001588, allocations: 55.02 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1611, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005519/0.1667, allocations: 3.081 MB / 376.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.1691, allocations: 0.7989 MB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002758/0.1695, allocations: 4 kB / 377.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.1697, allocations: 59.42 kB / 377.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002938/0.17, allocations: 103 kB / 377.2 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005117/0.1706, allocations: 111.8 kB / 377.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005585/0.1711, allocations: 418 kB / 377.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003072/0.1715, allocations: 143.7 kB / 377.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000246/0.1717, allocations: 171.4 kB / 378 MB, free: 12.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.172, allocations: 167.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.172, allocations: 36 kB / 378.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.747e-05/0.1721, allocations: 36 kB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.1722, allocations: 79.69 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002348/0.1725, allocations: 191.1 kB / 378.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004949/0.173, allocations: 414.5 kB / 379 MB, free: 11.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.173, allocations: 0 / 379 MB, free: 11.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.173, allocations: 8 kB / 379 MB, free: 11.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.173, allocations: 0 / 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.001511/0.1745, allocations: 0.6471 MB / 379.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.926e-05/0.1746, allocations: 8.031 kB / 379.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.1748, allocations: 48.41 kB / 379.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000687/0.1755, allocations: 281.3 kB / 379.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.1756, allocations: 72.62 kB / 380 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.461e-05/0.1757, allocations: 32.38 kB / 380 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006911/0.1764, allocations: 342.9 kB / 380.4 MB, free: 9.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.1764, allocations: 7.938 kB / 380.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.766e-05/0.1765, allocations: 16 kB / 380.4 MB, free: 9.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.1765, allocations: 8 kB / 380.4 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000469/0.177, allocations: 210.5 kB / 380.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002422/0.1794, allocations: 1.372 MB / 382 MB, free: 8.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003964/0.1798, allocations: 166.5 kB / 382.1 MB, free: 8.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.18, allocations: 92.77 kB / 382.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.1801, allocations: 4 kB / 382.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003347/0.1804, allocations: 149.9 kB / 382.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.044e-06/0.1804, allocations: 0 / 382.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001313/0.1817, allocations: 403.1 kB / 382.8 MB, free: 7.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.1819, allocations: 114.8 kB / 382.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003543/0.1822, allocations: 254.7 kB / 383.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.209e-05/0.1823, allocations: 33.69 kB / 383.2 MB, free: 6.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.1825, allocations: 207.8 kB / 383.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.488e-05/0.1826, allocations: 71.08 kB / 383.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.1827, allocations: 65.92 kB / 383.5 MB, free: 6.594 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002167/0.183, allocations: 338.8 kB / 383.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001661/0.1831, allocations: 76.62 kB / 383.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002756/0.1834, allocations: 181.4 kB / 384.1 MB, free: 5.961 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004057/0.1838, allocations: 235.6 kB / 384.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.709e-05/0.1839, allocations: 4 kB / 384.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000712/0.1846, allocations: 339.6 kB / 384.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.1846, allocations: 13.03 kB / 384.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.1846, allocations: 0 / 384.7 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003281/0.185, allocations: 57.06 kB / 384.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.1853, allocations: 63.91 kB / 384.8 MB, free: 5.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/0.1869, allocations: 1.568 MB / 386.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002636/0.1872, allocations: 47.58 kB / 386.4 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.1872, allocations: 16.09 kB / 386.4 MB, free: 3.449 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.0001977/0.1874, allocations: 145.8 kB / 386.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.33e-05/0.1875, allocations: 31.7 kB / 386.6 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.031e-05/0.1875, allocations: 30.12 kB / 386.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1875, allocations: 4 kB / 386.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.1876, allocations: 11.92 kB / 386.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.864e-06/0.1876, allocations: 3.984 kB / 386.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004349/0.188, allocations: 337.3 kB / 387 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.188, allocations: 7.938 kB / 387 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/0.1882, allocations: 43.91 kB / 387 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001924/0.1884, allocations: 52.75 kB / 387.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.375e-05/0.1885, allocations: 4 kB / 387.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001447/0.1899, allocations: 1.418 MB / 388.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.19, allocations: 0 / 388.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007922/0.1908, allocations: 350.1 kB / 388.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001285/0.1909, allocations: 112.8 kB / 388.9 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.548e-05/0.191, allocations: 8.125 kB / 389 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.1912, allocations: 23.98 kB / 389 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.1913, allocations: 27.89 kB / 389 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.1913, allocations: 8 kB / 389 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001999/0.1915, allocations: 186 kB / 389.2 MB, free: 444 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1915, allocations: 0 / 389.2 MB, free: 444 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004328/0.192, 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.0002382/0.1922, allocations: 111.2 kB / 389.4 MB, free: 228 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007547/0.193, allocations: 314.4 kB / 389.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.193, allocations: 0 / 389.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.1933, allocations: 199.2 kB / 389.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000315/0.1936, allocations: 44.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.001715/0.1954, allocations: 0.6683 MB / 390.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.1958, allocations: 0.7714 MB / 391.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.196, allocations: 26.28 kB / 391.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.211e-05/0.196, allocations: 23.38 kB / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of SimCode: time 1.022e-06/0.196, allocations: 0 / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Templates: time 0.008827/0.2049, allocations: 3.144 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)