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.0008428/0.0008427, allocations: 87.55 kB / 16.31 MB, free: 6.449 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.0008552/0.0008551, allocations: 183 kB / 17.21 MB, free: 6.316 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.547/1.547, allocations: 205.4 MB / 223.4 MB, free: 5.801 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.4064/0.4064, allocations: 38.06 MB / 309.7 MB, free: 8.918 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.0005826/0.0005828, allocations: 24 kB / 376.6 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1444, allocations: 56.33 MB / 433 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.008139/0.1526, allocations: 6.072 MB / 439 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004169/0.1568, allocations: 2.187 MB / 441.2 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004629/0.1573, allocations: 27.81 kB / 441.2 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004759/0.1578, allocations: 127 kB / 441.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001403/0.1592, allocations: 485.7 kB / 441.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009234/0.1601, allocations: 307.5 kB / 442.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.1614, allocations: 1.181 MB / 443.3 MB, free: 12.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.1625, allocations: 0.7261 MB / 444 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005216/0.163, allocations: 370.4 kB / 444.4 MB, free: 11.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007187/0.1638, allocations: 0.5257 MB / 444.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.493e-05/0.1639, allocations: 36 kB / 445 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008032/0.1647, allocations: 463.2 kB / 445.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000358/0.165, allocations: 355 kB / 445.8 MB, free: 9.855 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.1652, allocations: 181.3 kB / 445.9 MB, free: 9.672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000895/0.1661, allocations: 0.8768 MB / 446.8 MB, free: 8.793 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/0.1662, allocations: 4 kB / 446.8 MB, free: 8.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1662, allocations: 0 / 446.8 MB, free: 8.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1662, allocations: 0 / 446.8 MB, free: 8.789 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.002365/0.1686, allocations: 1.12 MB / 447.9 MB, free: 7.617 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.582e-05/0.1686, allocations: 8.031 kB / 448 MB, free: 7.609 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001743/0.1688, allocations: 126.9 kB / 448.1 MB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000669/0.1695, allocations: 130.8 kB / 448.2 MB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008879/0.1704, allocations: 0.5453 MB / 448.8 MB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.914e-05/0.1705, allocations: 54 kB / 448.8 MB, free: 6.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.1706, allocations: 87.94 kB / 448.9 MB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001546/0.1722, allocations: 1.08 MB / 450 MB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.1722, allocations: 3.984 kB / 450 MB, free: 5.469 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.76e-05/0.1723, allocations: 39.92 kB / 450 MB, free: 5.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.1724, allocations: 45.98 kB / 450.1 MB, free: 5.387 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.1739, allocations: 0.9367 MB / 451 MB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005271/0.1792, allocations: 4.223 MB / 455.2 MB, free: 52 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3094/0.4886, allocations: 0.9345 MB / 456.2 MB, free: 51.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006531/0.4893, allocations: 445.6 kB / 456.6 MB, free: 51.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.456e-05/0.4894, allocations: 11.3 kB / 456.6 MB, free: 51.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001212/0.4906, allocations: 0.647 MB / 457.2 MB, free: 51.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=92): time 3.667e-06/0.4906, allocations: 2.906 kB / 457.2 MB, free: 51.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=93): time 0.004349/0.495, allocations: 2.913 MB / 460.2 MB, free: 50.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.4951, allocations: 156.8 kB / 460.3 MB, free: 50.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005018/0.4956, allocations: 469.8 kB / 460.8 MB, free: 50.11 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.261e-05/0.4957, allocations: 45.8 kB / 460.8 MB, free: 50.08 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002098/0.4959, allocations: 383.4 kB / 461.2 MB, free: 49.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/0.4961, allocations: 283.8 kB / 461.5 MB, free: 49.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-05/0.4961, allocations: 20.25 kB / 461.5 MB, free: 49.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4962, allocations: 385.8 kB / 461.9 MB, free: 49.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006999/0.4969, allocations: 385.5 kB / 462.2 MB, free: 49.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009844/0.4979, allocations: 0.6185 MB / 462.9 MB, free: 49.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008081/0.4987, allocations: 492.3 kB / 463.3 MB, free: 49.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.384e-06/0.4988, allocations: 3.25 kB / 463.3 MB, free: 49.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.00286/0.5016, allocations: 1.515 MB / 464.9 MB, free: 48.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-05/0.5017, allocations: 35.27 kB / 464.9 MB, free: 48.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002045/0.5038, allocations: 1.156 MB / 466 MB, free: 48.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.5049, allocations: 431.8 kB / 466.5 MB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004044/0.5054, allocations: 133.4 kB / 466.6 MB, free: 48.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006506/0.5119, allocations: 4.693 MB / 471.3 MB, free: 45.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000688/0.5126, allocations: 78.3 kB / 471.4 MB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-05/0.5127, allocations: 38.72 kB / 471.4 MB, free: 45.45 MB / 382.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,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0005113/0.5132, allocations: 347.9 kB / 471.7 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.5134, allocations: 68.22 kB / 471.8 MB, free: 45.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001644/0.515, allocations: 1.134 MB / 472.9 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/0.515, allocations: 15.28 kB / 473 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.515, allocations: 0 / 473 MB, free: 44.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/0.5151, allocations: 13.09 kB / 473 MB, free: 44.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002905/0.518, allocations: 2.148 MB / 475.1 MB, free: 43.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.842e-06/0.518, allocations: 2.938 kB / 475.1 MB, free: 43.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005266/0.5185, allocations: 122.9 kB / 475.2 MB, free: 43.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001664/0.5187, allocations: 95.17 kB / 475.3 MB, free: 43.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.362e-05/0.5188, allocations: 20.52 kB / 475.4 MB, free: 43.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/0.5208, allocations: 3.909 MB / 479.3 MB, free: 39.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.5208, allocations: 3.156 kB / 479.3 MB, free: 39.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002439/0.5232, allocations: 1.77 MB / 481 MB, free: 38.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001586/0.5234, allocations: 136.1 kB / 481.2 MB, free: 38.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.919e-05/0.5235, allocations: 24.61 kB / 481.2 MB, free: 38.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004055/0.5239, allocations: 61.59 kB / 481.3 MB, free: 38.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001839/0.5241, allocations: 91.86 kB / 481.3 MB, free: 38.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.503e-05/0.5242, allocations: 29.55 kB / 481.4 MB, free: 38.65 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003502/0.5245, allocations: 317.5 kB / 481.7 MB, free: 38.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5245, allocations: 0 / 481.7 MB, free: 38.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001099/0.5256, allocations: 251.1 kB / 481.9 MB, free: 38.47 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002774/0.5284, allocations: 2.368 MB / 484.3 MB, free: 37.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002221/0.5306, allocations: 1.355 MB / 485.7 MB, free: 36.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.5307, allocations: 0 / 485.7 MB, free: 36.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009954/0.5317, allocations: 0.9492 MB / 486.6 MB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.5323, allocations: 119.6 kB / 486.7 MB, free: 35.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009076/0.5414, allocations: 5.535 MB / 492.3 MB, free: 33.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006388/0.5421, allocations: 1.027 MB / 493.3 MB, free: 32.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006051/0.5427, allocations: 195.7 kB / 493.5 MB, free: 32.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004045/0.5431, allocations: 288.3 kB / 493.8 MB, free: 32.15 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5431, allocations: 1.031 kB / 493.8 MB, free: 32.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04585/0.589, allocations: 17.56 MB / 0.4993 GB, free: 28.8 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.5892, allocations: 218.7 kB / 0.4995 GB, free: 28.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.364/2.953, allocations: 7.938 kB / 0.4996 GB, free: 28.54 MB / 382.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/linux/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) Environment - environmentSimulation: