Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=48000,variableFilter="",fileNamePrefix="Modelica_3.2.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.00583/0.00583, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001213/0.001214, allocations: 199.2 kB / 16.68 MB, free: 5.961 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.551/1.551, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001393/0.001393, allocations: 55.05 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1209, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.005286/0.1262, allocations: 3.081 MB / 376.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.1283, allocations: 0.7912 MB / 377.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000434/0.1288, allocations: 4 kB / 377.1 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.1291, allocations: 63.36 kB / 377.1 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004443/0.1296, allocations: 103 kB / 377.2 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005157/0.1301, allocations: 103.8 kB / 377.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006662/0.1308, allocations: 426 kB / 377.7 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003253/0.1311, allocations: 139.7 kB / 377.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003972/0.1315, allocations: 171.4 kB / 378 MB, free: 12.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00035/0.1319, allocations: 179.2 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.132, allocations: 36 kB / 378.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.1321, allocations: 36 kB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.85e-05/0.1322, allocations: 75.75 kB / 378.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002397/0.1325, allocations: 191.1 kB / 378.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000507/0.133, allocations: 414.5 kB / 379 MB, free: 11.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.133, allocations: 4 kB / 379 MB, free: 11.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.133, allocations: 0 / 379 MB, free: 11.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.827e-05/0.1331, allocations: 0 / 379 MB, free: 11.49 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.001276/0.1343, allocations: 0.651 MB / 379.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1344, allocations: 8.031 kB / 379.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.1345, allocations: 40.47 kB / 379.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005097/0.135, allocations: 277.3 kB / 379.9 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.968e-05/0.1351, allocations: 76.62 kB / 380 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.246e-05/0.1352, allocations: 40.31 kB / 380 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005659/0.1358, allocations: 334.9 kB / 380.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.1358, allocations: 3.984 kB / 380.4 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.1358, allocations: 15.98 kB / 380.4 MB, free: 9.941 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.1359, allocations: 8 kB / 380.4 MB, free: 9.934 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004445/0.1363, allocations: 226.5 kB / 380.6 MB, free: 9.711 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.1384, allocations: 1.356 MB / 382 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003585/0.1388, allocations: 166.6 kB / 382.1 MB, free: 8.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001726/0.139, allocations: 96.69 kB / 382.2 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.139, allocations: 4 kB / 382.2 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.1393, allocations: 149.9 kB / 382.4 MB, free: 7.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.745e-06/0.1393, allocations: 0 / 382.4 MB, free: 7.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001114/0.1404, allocations: 407 kB / 382.8 MB, free: 7.387 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.465e-05/0.1405, allocations: 110.8 kB / 382.9 MB, free: 7.254 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.1408, allocations: 262.7 kB / 383.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.1408, allocations: 29.69 kB / 383.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.141, allocations: 211.8 kB / 383.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.75e-05/0.141, allocations: 71.08 kB / 383.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.517e-05/0.1411, allocations: 65.92 kB / 383.5 MB, free: 6.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.1413, allocations: 334.8 kB / 383.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.1414, allocations: 76.62 kB / 383.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.1416, allocations: 181.5 kB / 384.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.142, allocations: 239.5 kB / 384.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.142, allocations: 4 kB / 384.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006131/0.1426, allocations: 335.7 kB / 384.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.1426, allocations: 11.94 kB / 384.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1427, allocations: 0 / 384.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/0.1429, allocations: 56.81 kB / 384.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.1432, allocations: 68 kB / 384.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001388/0.1446, allocations: 1.568 MB / 386.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.1448, allocations: 47.58 kB / 386.4 MB, free: 3.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.1449, allocations: 15.98 kB / 386.4 MB, free: 3.453 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.0001486/0.145, allocations: 149.9 kB / 386.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.1451, allocations: 27.72 kB / 386.6 MB, free: 3.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.641e-05/0.1451, allocations: 34.11 kB / 386.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1451, allocations: 4 kB / 386.6 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1451, allocations: 4 kB / 386.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1452, allocations: 3.984 kB / 386.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/0.1455, allocations: 337.3 kB / 387 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1455, allocations: 0 / 387 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001825/0.1457, allocations: 39.91 kB / 387 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001745/0.1459, allocations: 60.75 kB / 387.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.1459, allocations: 0 / 387.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.147, allocations: 1.414 MB / 388.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.147, allocations: 4.031 kB / 388.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006284/0.1476, allocations: 350.2 kB / 388.8 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.1477, allocations: 116.8 kB / 388.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/0.1478, allocations: 8 kB / 388.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.1479, allocations: 15.98 kB / 389 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.726e-05/0.148, allocations: 39.95 kB / 389 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.148, allocations: 4 kB / 389 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001496/0.1482, allocations: 181.9 kB / 389.2 MB, free: 460 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1482, allocations: 0 / 389.2 MB, free: 460 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003499/0.1486, allocations: 95.67 kB / 389.3 MB, free: 364 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.0001231/0.1487, allocations: 107.2 kB / 389.4 MB, free: 244 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006/0.1493, allocations: 318.6 kB / 389.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1493, allocations: 0 / 389.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.1496, allocations: 202.5 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.0002594/0.1499, allocations: 44.38 kB / 389.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.1513, allocations: 0.6689 MB / 390.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.1516, allocations: 0.7714 MB / 391.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.24e-05/0.1517, allocations: 26.28 kB / 391.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.183e-05/0.1517, allocations: 23.44 kB / 391.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1517, allocations: 4 kB / 391.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of Templates: time 0.006599/0.1583, allocations: 3.21 MB / 394.6 MB, free: 10.9 MB / 334.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1)