Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 111.5 kB / 17.06 MB, free: 6.102 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.001118/0.001118, allocations: 200 kB / 18 MB, free: 5.18 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.311/1.311, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1717/0.1717, allocations: 37.98 MB / 309.2 MB, free: 5.953 MB / 254.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.002281/0.002281, allocations: 75.89 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1115, allocations: 55.23 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.009137/0.1207, allocations: 6.204 MB / 492.8 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004203/0.1249, allocations: 2.123 MB / 494.9 MB, free: 472 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004811/0.1254, allocations: 19.88 kB / 495 MB, free: 452 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.1272, allocations: 0.5177 MB / 495.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001446/0.1287, allocations: 0.4937 MB / 496 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009343/0.1296, allocations: 363.3 kB / 496.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001225/0.1309, allocations: 1.068 MB / 497.4 MB, free: 14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008431/0.1317, allocations: 0.5003 MB / 497.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008027/0.1325, allocations: 462.3 kB / 498.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009694/0.1335, allocations: 0.5567 MB / 498.9 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002121/0.1337, allocations: 84 kB / 499 MB, free: 12.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009406/0.1347, allocations: 0.4954 MB / 499.5 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004002/0.1351, allocations: 395.1 kB / 499.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005641/0.1357, allocations: 473.7 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.137, allocations: 1.227 MB / 0.4898 GB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.137, allocations: 7.922 kB / 0.4898 GB, free: 9.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.137, allocations: 0 / 0.4898 GB, free: 9.816 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.805e-05/0.1371, allocations: 4 kB / 0.4898 GB, free: 9.812 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.00279/0.1399, allocations: 1.233 MB / 0.491 GB, free: 8.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1399, allocations: 11.89 kB / 0.491 GB, free: 8.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001866/0.1401, allocations: 131.1 kB / 0.4912 GB, free: 8.371 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007032/0.1408, allocations: 139.7 kB / 0.4913 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009697/0.1418, allocations: 0.5813 MB / 0.4919 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.73e-05/0.1419, allocations: 54.38 kB / 0.4919 GB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000195/0.1421, allocations: 87.92 kB / 0.492 GB, free: 7.473 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001666/0.1438, allocations: 1.084 MB / 0.493 GB, free: 6.324 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.1438, allocations: 4 kB / 0.4931 GB, free: 6.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.55e-05/0.1439, allocations: 31.98 kB / 0.4931 GB, free: 6.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.1441, allocations: 57.92 kB / 0.4931 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001482/0.1455, allocations: 0.9328 MB / 0.494 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004995/0.1505, allocations: 4.188 MB / 0.4981 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001153/0.1517, allocations: 0.9416 MB / 0.4991 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005831/0.1523, allocations: 455.4 kB / 0.4995 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.904e-05/0.1524, allocations: 16.48 kB / 0.4995 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009236/0.1533, allocations: 0.6357 MB / 0.5001 GB, free: 14.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 4.398e-06/0.1533, allocations: 8 kB / 0.5001 GB, free: 14.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004588/0.1579, allocations: 2.904 MB / 0.503 GB, free: 11.74 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.848e-05/0.158, allocations: 145.5 kB / 0.5031 GB, free: 11.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005076/0.1585, allocations: 481.8 kB / 0.5036 GB, free: 11.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.208e-05/0.1586, allocations: 53.69 kB / 0.5036 GB, free: 11.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002618/0.1589, allocations: 375.7 kB / 0.504 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/0.1591, allocations: 284.1 kB / 0.5042 GB, free: 10.38 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/0.1593, allocations: 178.9 kB / 0.5044 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1595, allocations: 382.8 kB / 0.5048 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.1601, allocations: 394.4 kB / 0.5052 GB, free: 9.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007143/0.1608, allocations: 0.6246 MB / 0.5058 GB, free: 8.715 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.1621, allocations: 1.075 MB / 0.5068 GB, free: 7.535 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1621, allocations: 4 kB / 0.5068 GB, free: 7.531 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002783/0.1649, allocations: 1.521 MB / 0.5083 GB, free: 5.996 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/0.165, allocations: 34.23 kB / 0.5083 GB, free: 5.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002204/0.1672, allocations: 1.155 MB / 0.5095 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.1685, allocations: 440.4 kB / 0.5099 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004381/0.1689, allocations: 131.8 kB / 0.51 GB, free: 4.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007122/0.1761, allocations: 5.166 MB / 0.5151 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000584/0.1767, allocations: 59.94 kB / 0.5151 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-05/0.1768, allocations: 36 kB / 0.5152 GB, free: 14.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,relay.cnt,$PRE.relay.cnt,$whenCondition1,relay.y[3],$PRE.relay.y[3],relay.y[2],$PRE.relay.y[2],relay.y[1],$PRE.relay.y[1],breaker.breaker_c.opening,breaker.breaker_c.t0,$PRE.breaker.breaker_c.t0,breaker.breaker_c.closed,breaker.breaker_c.open,$PRE.breaker.breaker_c.open,breaker.breaker_c.arc,$PRE.breaker.breaker_c.arc,breaker.breaker_b.opening,breaker.breaker_b.t0,$PRE.breaker.breaker_b.t0,breaker.breaker_b.closed,breaker.breaker_b.open,$PRE.breaker.breaker_b.open,breaker.breaker_b.arc,$PRE.breaker.breaker_b.arc,breaker.breaker_a.opening,breaker.breaker_a.t0,$PRE.breaker.breaker_a.t0,breaker.breaker_a.closed,breaker.breaker_a.open,$PRE.breaker.breaker_a.open,breaker.breaker_a.arc,$PRE.breaker.breaker_a.arc,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 1 * 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 {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0004619/0.1772, allocations: 355.7 kB / 0.5155 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.1774, allocations: 67.25 kB / 0.5156 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/0.1791, allocations: 1.126 MB / 0.5167 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/0.1792, allocations: 15.98 kB / 0.5167 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.1792, allocations: 8 kB / 0.5167 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.1792, allocations: 3.984 kB / 0.5167 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003189/0.1824, allocations: 2.142 MB / 0.5188 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.1824, allocations: 3.938 kB / 0.5188 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005746/0.183, allocations: 127.8 kB / 0.5189 GB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.1832, allocations: 82.55 kB / 0.519 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.875e-05/0.1832, allocations: 19.98 kB / 0.519 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002622/0.1859, allocations: 4.226 MB / 0.5231 GB, free: 6.117 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.1859, allocations: 3.938 kB / 0.5231 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002462/0.1884, allocations: 1.761 MB / 0.5248 GB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.1885, allocations: 140.2 kB / 0.525 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.1887, allocations: 27.98 kB / 0.525 GB, free: 4.125 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004592/0.1891, allocations: 51.94 kB / 0.5251 GB, free: 4.074 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.1893, allocations: 80.89 kB / 0.5251 GB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.445e-05/0.1894, allocations: 24 kB / 0.5252 GB, free: 3.973 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000349/0.1897, allocations: 327 kB / 0.5255 GB, free: 3.652 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1897, allocations: 3.938 kB / 0.5255 GB, free: 3.648 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008746/0.1906, allocations: 256 kB / 0.5257 GB, free: 3.398 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_a.closed,breaker.breaker_b.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_b.open,breaker.breaker_a.open,breaker.breaker_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 72 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002738/0.1934, allocations: 2.363 MB / 0.528 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.2153/0.4087, allocations: 1.359 MB / 0.5294 GB, free: 51.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.4087, allocations: 0 / 0.5294 GB, free: 51.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.4099, allocations: 0.9459 MB / 0.5303 GB, free: 51.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/0.4107, allocations: 116.6 kB / 0.5304 GB, free: 51.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.4218, allocations: 7.735 MB / 0.5379 GB, free: 48.36 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005896/0.4225, allocations: 1.034 MB / 0.539 GB, free: 47.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005558/0.423, allocations: 191.3 kB / 0.5391 GB, free: 47.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003503/0.4234, allocations: 294.6 kB / 0.5394 GB, free: 47.39 MB / 414.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4234, allocations: 0 / 0.5394 GB, free: 47.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04302/0.4664, allocations: 19.29 MB / 0.5583 GB, free: 38.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.16, allocations: 7.734 kB / 0.5583 GB, free: 38.12 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)