Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00119/0.00119, allocations: 105.9 kB / 16.5 MB, free: 6.688 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.001143/0.001143, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.674/1.674, allocations: 205.1 MB / 223.3 MB, free: 12.4 MB / 190.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.001748/0.001748, allocations: 55.91 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1704, allocations: 46.64 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.00675/0.1772, allocations: 3.134 MB / 329.1 MB, free: 1.715 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.1793, allocations: 0.7799 MB / 329.9 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002457/0.1796, allocations: 4 kB / 329.9 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.1799, allocations: 43.69 kB / 329.9 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.1802, allocations: 91.22 kB / 330 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004636/0.1806, allocations: 91.88 kB / 330.1 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004584/0.1811, allocations: 402.1 kB / 330.5 MB, free: 312 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.1814, allocations: 116.3 kB / 330.6 MB, free: 192 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.1817, allocations: 147.4 kB / 330.8 MB, free: 44 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002808/0.182, allocations: 163.3 kB / 330.9 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-05/0.182, allocations: 27.91 kB / 330.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.725e-05/0.1821, allocations: 24 kB / 331 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.624e-05/0.1822, allocations: 67.75 kB / 331 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002937/0.1825, allocations: 179.1 kB / 331.2 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006883/0.1832, allocations: 402.8 kB / 331.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.1832, allocations: 0 / 331.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.1832, allocations: 0 / 331.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.1833, allocations: 0 / 331.6 MB, free: 15.2 MB / 286.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.001556/0.1848, allocations: 0.651 MB / 332.3 MB, free: 14.49 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.1849, allocations: 8.031 kB / 332.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.185, allocations: 36.56 kB / 332.3 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005351/0.1855, allocations: 285.1 kB / 332.6 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.1857, allocations: 80.61 kB / 332.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.923e-05/0.1858, allocations: 32.38 kB / 332.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000708/0.1865, allocations: 342.8 kB / 333 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.1866, allocations: 4 kB / 333 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.419e-05/0.1866, allocations: 16 kB / 333 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.1866, allocations: 8 kB / 333 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.1872, allocations: 218.5 kB / 333.3 MB, free: 13.42 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002488/0.1897, allocations: 1.364 MB / 334.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.1901, allocations: 174.5 kB / 334.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001939/0.1904, allocations: 92.77 kB / 334.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.033e-05/0.1904, allocations: 4 kB / 334.9 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005085/0.1909, allocations: 149.9 kB / 335 MB, free: 11.51 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.1909, allocations: 3.938 kB / 335 MB, free: 11.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.00131/0.1922, allocations: 403.1 kB / 335.4 MB, free: 11.08 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.1924, allocations: 110.8 kB / 335.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003387/0.1927, allocations: 266.6 kB / 335.8 MB, free: 10.68 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.535e-05/0.1928, allocations: 29.7 kB / 335.8 MB, free: 10.65 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.193, allocations: 207.9 kB / 336 MB, free: 10.44 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.506e-05/0.1931, allocations: 71 kB / 336.1 MB, free: 10.37 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.1932, allocations: 58.03 kB / 336.2 MB, free: 10.31 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.1934, allocations: 334.8 kB / 336.5 MB, free: 9.973 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.1937, allocations: 80.61 kB / 336.6 MB, free: 9.895 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.194, allocations: 185.4 kB / 336.7 MB, free: 9.672 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.1944, allocations: 235.6 kB / 337 MB, free: 9.406 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.1944, allocations: 4 kB / 337 MB, free: 9.402 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007924/0.1952, allocations: 343.5 kB / 337.3 MB, free: 9.059 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.443e-05/0.1953, allocations: 8 kB / 337.3 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.1953, allocations: 0 / 337.3 MB, free: 9.051 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003777/0.1957, allocations: 60.8 kB / 337.4 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002981/0.196, allocations: 68.06 kB / 337.4 MB, free: 8.922 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.1982, allocations: 1.401 MB / 338.8 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.1985, allocations: 39.67 kB / 338.9 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.1986, allocations: 19.98 kB / 338.9 MB, free: 7.328 MB / 286.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.0002732/0.1988, allocations: 152.8 kB / 339.1 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.996e-05/0.1989, allocations: 27.72 kB / 339.1 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.375e-05/0.199, allocations: 34.27 kB / 339.1 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.199, allocations: 4 kB / 339.1 MB, free: 7.109 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.199, allocations: 7.875 kB / 339.1 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.446e-06/0.199, allocations: 0 / 339.1 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000489/0.1995, allocations: 345.3 kB / 339.5 MB, free: 6.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1995, allocations: 0 / 339.5 MB, free: 6.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.1997, allocations: 35.98 kB / 339.5 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001968/0.2, allocations: 56.81 kB / 339.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.2, allocations: 0 / 339.6 MB, free: 6.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.2016, allocations: 1.331 MB / 340.9 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2016, allocations: 0 / 340.9 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008568/0.2024, allocations: 350.3 kB / 341.2 MB, free: 4.793 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.2026, allocations: 124.6 kB / 341.3 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.831e-05/0.2027, allocations: 4 kB / 341.4 MB, free: 4.648 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.2028, allocations: 19.98 kB / 341.4 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.203, allocations: 27.95 kB / 341.4 MB, free: 4.602 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.203, allocations: 4 kB / 341.4 MB, free: 4.598 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.2032, allocations: 182 kB / 341.6 MB, free: 4.418 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2033, allocations: 4.062 kB / 341.6 MB, free: 4.414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004653/0.2037, allocations: 87.84 kB / 341.7 MB, free: 4.328 MB / 286.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.0002533/0.204, allocations: 103.4 kB / 341.8 MB, free: 4.219 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008196/0.2048, allocations: 318.3 kB / 342.1 MB, free: 3.895 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2048, allocations: 0.6875 kB / 342.1 MB, free: 3.895 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.2052, allocations: 198.6 kB / 342.3 MB, free: 3.688 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.2056, allocations: 28.55 kB / 342.3 MB, free: 3.66 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00201/0.2076, allocations: 0.8078 MB / 343.1 MB, free: 2.828 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006711/0.2083, allocations: 0.7677 MB / 343.9 MB, free: 2.035 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.2085, allocations: 34.27 kB / 343.9 MB, free: 2 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.598e-05/0.2086, allocations: 19.44 kB / 343.9 MB, free: 1.98 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2086, allocations: 0 / 343.9 MB, free: 1.98 MB / 286.1 MB Notification: Performance of Templates: time 0.008779/0.2173, allocations: 2.8 MB / 346.7 MB, free: 15.18 MB / 302.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)