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.001122/0.001122, allocations: 103.8 kB / 17.06 MB, free: 6.023 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.001099/0.0011, allocations: 199.9 kB / 18 MB, free: 5.102 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.333/1.333, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1749/0.1749, allocations: 37.99 MB / 309.2 MB, free: 5.957 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.001792/0.001793, allocations: 71.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1024, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Breaker): time 0.007524/0.11, allocations: 6.208 MB / 492.8 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003551/0.1136, allocations: 2.112 MB / 494.9 MB, free: 496 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004742/0.1141, allocations: 19.88 kB / 494.9 MB, free: 476 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001522/0.1156, allocations: 0.5216 MB / 495.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.1171, allocations: 0.4976 MB / 496 MB, free: 15.44 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009114/0.118, allocations: 355.3 kB / 496.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001366/0.1194, allocations: 1.072 MB / 497.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007696/0.1202, allocations: 0.5081 MB / 497.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000803/0.121, allocations: 458.3 kB / 498.3 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001005/0.122, allocations: 0.5645 MB / 498.9 MB, free: 12.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002418/0.1223, allocations: 88 kB / 499 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009381/0.1232, allocations: 499.3 kB / 499.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000471/0.1237, allocations: 399 kB / 499.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006842/0.1244, allocations: 481.7 kB / 0.4886 GB, free: 11.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001348/0.1258, allocations: 1.219 MB / 0.4898 GB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1258, allocations: 4 kB / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1258, allocations: 0 / 0.4898 GB, free: 9.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.518e-05/0.1258, allocations: 0 / 0.4898 GB, free: 9.828 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.002668/0.1285, allocations: 1.241 MB / 0.491 GB, free: 8.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.1286, allocations: 11.89 kB / 0.491 GB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000167/0.1287, allocations: 131 kB / 0.4912 GB, free: 8.379 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007395/0.1295, allocations: 135.8 kB / 0.4913 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1306, allocations: 0.5774 MB / 0.4918 GB, free: 7.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.594e-05/0.1306, allocations: 54.38 kB / 0.4919 GB, free: 7.574 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.1308, allocations: 87.91 kB / 0.492 GB, free: 7.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001734/0.1326, allocations: 1.088 MB / 0.493 GB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.1326, allocations: 4 kB / 0.4931 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.502e-05/0.1327, allocations: 28 kB / 0.4931 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001369/0.1329, allocations: 45.98 kB / 0.4931 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001531/0.1344, allocations: 0.9406 MB / 0.494 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005551/0.14, allocations: 4.196 MB / 0.4981 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001259/0.1412, allocations: 0.9455 MB / 0.4991 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006074/0.1419, allocations: 443.4 kB / 0.4995 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.276e-05/0.1419, allocations: 8.562 kB / 0.4995 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009658/0.1429, allocations: 0.6435 MB / 0.5001 GB, free: 14.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 2.986e-06/0.1429, allocations: 0 / 0.5001 GB, free: 14.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.004694/0.1476, allocations: 2.9 MB / 0.503 GB, free: 11.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.1477, allocations: 157.6 kB / 0.5031 GB, free: 11.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005734/0.1483, allocations: 481.7 kB / 0.5036 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.791e-05/0.1484, allocations: 41.7 kB / 0.5036 GB, free: 11.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/0.1487, allocations: 383.7 kB / 0.504 GB, free: 10.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002161/0.1489, allocations: 280.1 kB / 0.5042 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002541/0.1492, allocations: 178.9 kB / 0.5044 GB, free: 10.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1493, allocations: 382.8 kB / 0.5048 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005979/0.1499, allocations: 390.4 kB / 0.5051 GB, free: 9.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007606/0.1507, allocations: 0.6246 MB / 0.5058 GB, free: 8.746 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.1521, allocations: 1.079 MB / 0.5068 GB, free: 7.562 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1521, allocations: 7.938 kB / 0.5068 GB, free: 7.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002845/0.155, allocations: 1.522 MB / 0.5083 GB, free: 6.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.961e-05/0.155, allocations: 37.61 kB / 0.5083 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002246/0.1573, allocations: 1.159 MB / 0.5095 GB, free: 4.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001307/0.1586, allocations: 440.5 kB / 0.5099 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004539/0.159, allocations: 131.7 kB / 0.51 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007527/0.1666, allocations: 5.154 MB / 0.515 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006499/0.1673, allocations: 59.86 kB / 0.5151 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/0.1674, allocations: 40 kB / 0.5151 GB, free: 14.85 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.0005694/0.168, allocations: 355.9 kB / 0.5155 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.1682, allocations: 71.16 kB / 0.5155 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001973/0.1702, allocations: 1.122 MB / 0.5166 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.507e-05/0.1702, allocations: 16 kB / 0.5167 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.1702, allocations: 0 / 0.5167 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/0.1702, allocations: 3.984 kB / 0.5167 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003577/0.1738, allocations: 2.15 MB / 0.5188 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.1738, allocations: 3.938 kB / 0.5188 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006154/0.1745, allocations: 119.8 kB / 0.5189 GB, free: 10.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001887/0.1747, allocations: 90.59 kB / 0.519 GB, free: 10.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.686e-05/0.1748, allocations: 23.98 kB / 0.519 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003145/0.1779, allocations: 4.226 MB / 0.5231 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1779, allocations: 7.875 kB / 0.5231 GB, free: 6.129 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.1805, allocations: 1.757 MB / 0.5248 GB, free: 4.328 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.1807, allocations: 148.2 kB / 0.525 GB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.1809, allocations: 24 kB / 0.525 GB, free: 4.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.1813, allocations: 47.94 kB / 0.5251 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.1815, allocations: 76.89 kB / 0.5251 GB, free: 4.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.204e-05/0.1816, allocations: 31.98 kB / 0.5252 GB, free: 3.988 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004195/0.182, allocations: 315.1 kB / 0.5255 GB, free: 3.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.182, allocations: 8 kB / 0.5255 GB, free: 3.672 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008682/0.1829, allocations: 256 kB / 0.5257 GB, free: 3.422 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.002838/0.1858, allocations: 2.366 MB / 0.528 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.2191/0.4049, allocations: 1.357 MB / 0.5293 GB, free: 51.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.4049, allocations: 1.406 kB / 0.5293 GB, free: 51.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.4062, allocations: 0.9403 MB / 0.5303 GB, free: 51.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007934/0.407, allocations: 124.2 kB / 0.5304 GB, free: 51.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.4181, allocations: 7.736 MB / 0.5379 GB, free: 48.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006612/0.4188, allocations: 1.035 MB / 0.5389 GB, free: 47.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000597/0.4194, allocations: 195.5 kB / 0.5391 GB, free: 47.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003896/0.4198, allocations: 288.5 kB / 0.5394 GB, free: 47.28 MB / 414.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4198, allocations: 1.125 kB / 0.5394 GB, free: 47.28 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0616/0.4814, allocations: 19.29 MB / 0.5582 GB, free: 38.06 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.9, allocations: 15.7 kB / 0.5583 GB, free: 38.04 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)