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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001179/0.001179, allocations: 180.9 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.243/1.243, allocations: 194.5 MB / 211.6 MB, free: 3.062 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001624/0.001624, allocations: 110.7 kB / 256.9 MB, free: 4.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1623/0.1623, allocations: 38 MB / 340.1 MB, free: 1.367 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.000352, allocations: 11.98 kB / 403.9 MB, free: 68.72 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08848, allocations: 53.22 MB / 457.1 MB, free: 15.48 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3196/0.4081, allocations: 100.4 MB / 0.5444 GB, free: 11.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.4085, allocations: 90.2 kB / 0.5445 GB, free: 10.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05459/0.4631, allocations: 19.54 MB / 0.5636 GB, free: 10.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4632, allocations: 0 / 0.5636 GB, free: 10.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.468e-05/0.4632, allocations: 16 kB / 0.5636 GB, free: 10.14 MB / 378.7 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.003064/0.4663, allocations: 1.153 MB / 0.5647 GB, free: 8.977 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.4664, allocations: 12.02 kB / 0.5647 GB, free: 8.965 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004122/0.4668, allocations: 129.1 kB / 0.5649 GB, free: 8.875 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00087/0.4677, allocations: 140.6 kB / 0.565 GB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003155/0.4709, allocations: 1.035 MB / 0.566 GB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.9e-05/0.471, allocations: 65.64 kB / 0.5661 GB, free: 7.801 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002391/0.4712, allocations: 80.66 kB / 0.5661 GB, free: 7.746 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/0.4731, allocations: 1.048 MB / 0.5672 GB, free: 6.922 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.072e-05/0.4732, allocations: 7.938 kB / 0.5672 GB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.843e-05/0.4733, allocations: 33.8 kB / 0.5672 GB, free: 6.902 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.423e-05/0.4733, allocations: 45.23 kB / 0.5673 GB, free: 6.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.4748, allocations: 0.9007 MB / 0.5681 GB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005496/0.4804, allocations: 4.136 MB / 0.5722 GB, free: 2.621 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.4815, allocations: 0.711 MB / 0.5729 GB, free: 2.129 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.089e-05/0.4815, allocations: 4.625 kB / 0.5729 GB, free: 2.125 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009624/0.4825, allocations: 0.6612 MB / 0.5735 GB, free: 1.598 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.297e-06/0.4825, allocations: 0 / 0.5735 GB, free: 1.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.00489/0.4874, allocations: 3.228 MB / 0.5767 GB, free: 14.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.4876, allocations: 145.5 kB / 0.5768 GB, free: 14.73 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000584/0.4882, allocations: 412.5 kB / 0.5772 GB, free: 14.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.638e-05/0.4882, allocations: 48.7 kB / 0.5772 GB, free: 14.38 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003201/0.4886, allocations: 376.1 kB / 0.5776 GB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002725/0.4889, allocations: 297.8 kB / 0.5779 GB, free: 13.83 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.051e-05/0.4889, allocations: 19.5 kB / 0.5779 GB, free: 13.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.4891, allocations: 381.1 kB / 0.5783 GB, free: 13.47 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006288/0.4897, allocations: 410.5 kB / 0.5787 GB, free: 13.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00075/0.4905, allocations: 0.6069 MB / 0.5793 GB, free: 12.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007176/0.4912, allocations: 0.4932 MB / 0.5797 GB, free: 12.33 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.4912, allocations: 4 kB / 0.5797 GB, free: 12.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002991/0.4942, allocations: 1.527 MB / 0.5812 GB, free: 11.16 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.87e-05/0.4943, allocations: 40.66 kB / 0.5813 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00227/0.4966, allocations: 1.193 MB / 0.5824 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.4979, allocations: 441 kB / 0.5829 GB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.4985, allocations: 134.5 kB / 0.583 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007429/0.5059, allocations: 4.872 MB / 0.5877 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008053/0.5067, allocations: 79.84 kB / 0.5878 GB, free: 5.445 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.5069, allocations: 39.98 kB / 0.5879 GB, free: 5.406 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (103): * Single equations (assignments): 99 * Array equations: 2 * 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.0007082/0.5076, allocations: 347.1 kB / 0.5882 GB, free: 5.051 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002103/0.5079, allocations: 67.25 kB / 0.5883 GB, free: 4.984 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002056/0.5099, allocations: 1.165 MB / 0.5894 GB, free: 3.797 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.519e-05/0.51, allocations: 23.98 kB / 0.5894 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.51, allocations: 0 / 0.5894 GB, free: 3.773 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.51, allocations: 3.984 kB / 0.5894 GB, free: 3.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003925/0.5139, allocations: 2.226 MB / 0.5916 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.096e-05/0.514, allocations: 4.062 kB / 0.5916 GB, free: 1.457 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007548/0.5147, allocations: 139.8 kB / 0.5917 GB, free: 1.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002263/0.515, allocations: 86.48 kB / 0.5918 GB, free: 1.227 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.795e-05/0.5151, allocations: 31.94 kB / 0.5918 GB, free: 1.195 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003264/0.5184, allocations: 3.926 MB / 0.5957 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5184, allocations: 4.031 kB / 0.5957 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002977/0.5214, allocations: 1.852 MB / 0.5975 GB, free: 10.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.5217, allocations: 148.2 kB / 0.5976 GB, free: 10.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.5218, allocations: 23.98 kB / 0.5977 GB, free: 10.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00058/0.5224, allocations: 71.92 kB / 0.5977 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002083/0.5226, allocations: 80.88 kB / 0.5978 GB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-05/0.5227, allocations: 27.98 kB / 0.5978 GB, free: 10.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004544/0.5232, allocations: 311.1 kB / 0.5981 GB, free: 10.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5232, allocations: 0 / 0.5981 GB, free: 10.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001161/0.5243, allocations: 275.9 kB / 0.5984 GB, free: 10.02 MB / 410.7 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_b.closed,breaker.breaker_a.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_c.open,breaker.breaker_a.open,breaker.breaker_b.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 72 * Array equations: 2 * 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.003381/0.5277, allocations: 2.679 MB / 0.601 GB, free: 7.281 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002497/0.5302, allocations: 1.389 MB / 0.6024 GB, free: 5.863 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.5303, allocations: 0 / 0.6024 GB, free: 5.863 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.5315, allocations: 0.958 MB / 0.6033 GB, free: 4.859 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.5321, allocations: 109.4 kB / 0.6034 GB, free: 4.754 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.5433, allocations: 9.483 MB / 0.6127 GB, free: 11.08 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008448/0.5442, allocations: 1.049 MB / 0.6137 GB, free: 10 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006586/0.5449, allocations: 193.8 kB / 0.6139 GB, free: 9.812 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004882/0.5454, allocations: 283.3 kB / 0.6141 GB, free: 9.535 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/0.5454, allocations: 3.938 kB / 0.6141 GB, free: 9.531 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04107/0.5865, allocations: 17.87 MB / 0.6316 GB, free: 7.656 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002398/0.5868, allocations: 205.7 kB / 0.6318 GB, free: 7.414 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.344/2.931, allocations: 4 kB / 0.6318 GB, free: 7.41 MB / 442.7 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)