Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.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.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",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.001311/0.001312, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.793/1.793, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.00171/0.00171, allocations: 113.5 kB / 248.1 MB, free: 28 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1773/0.1773, allocations: 37.93 MB / 330.9 MB, free: 2.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.645e-05/1.636e-05, allocations: 0 / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2963/0.2964, allocations: 53.23 MB / 443.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.6926, allocations: 98.05 MB / 0.529 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003516/0.693, allocations: 81.89 kB / 0.5291 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07114/0.7642, allocations: 25.58 MB / 0.5541 GB, free: 32.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.7642, allocations: 0 / 0.5541 GB, free: 32.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.973e-05/0.7643, allocations: 19.53 kB / 0.5541 GB, free: 32.19 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.001791/0.7661, allocations: 1.061 MB / 0.5551 GB, free: 31.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.7661, allocations: 11.75 kB / 0.5552 GB, free: 31.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008616/0.767, allocations: 182 kB / 0.5553 GB, free: 31.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003014/0.77, allocations: 1.334 MB / 0.5566 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.327e-05/0.7701, allocations: 35.16 kB / 0.5567 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.7702, allocations: 50.72 kB / 0.5567 GB, free: 31.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001089/0.7713, allocations: 0.7273 MB / 0.5574 GB, free: 31.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001244/0.7725, allocations: 1.036 MB / 0.5584 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.7726, allocations: 7.875 kB / 0.5584 GB, free: 30.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.7727, allocations: 11.8 kB / 0.5585 GB, free: 30.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.576e-05/0.7727, allocations: 48.75 kB / 0.5585 GB, free: 30.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.7769, allocations: 4.534 MB / 0.5629 GB, free: 28.18 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008303/0.7778, allocations: 0.6364 MB / 0.5636 GB, free: 28.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003766/0.7781, allocations: 380.6 kB / 0.5639 GB, free: 28.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.752e-05/0.7782, allocations: 8.406 kB / 0.5639 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004751/0.7787, allocations: 436.9 kB / 0.5643 GB, free: 27.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.405e-06/0.7787, allocations: 0 / 0.5643 GB, free: 27.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=70): time 0.002543/0.7812, allocations: 1.569 MB / 0.5659 GB, free: 27.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.7813, allocations: 166.5 kB / 0.566 GB, free: 27.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004736/0.7818, allocations: 472.1 kB / 0.5665 GB, free: 27.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.7819, allocations: 25.7 kB / 0.5665 GB, free: 27.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002654/0.7821, allocations: 479.2 kB / 0.567 GB, free: 26.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.7823, allocations: 227.2 kB / 0.5672 GB, free: 26.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.404e-05/0.7823, allocations: 0 / 0.5672 GB, free: 26.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.7824, allocations: 392.2 kB / 0.5676 GB, free: 26.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/0.7828, allocations: 277 kB / 0.5678 GB, free: 26.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004018/0.7832, allocations: 0.5193 MB / 0.5683 GB, free: 26.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/0.7837, allocations: 384.8 kB / 0.5687 GB, free: 26.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.7837, allocations: 0 / 0.5687 GB, free: 26.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001661/0.7853, allocations: 1.103 MB / 0.5698 GB, free: 25.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.7854, allocations: 45.22 kB / 0.5698 GB, free: 25.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.7854, allocations: 11.88 kB / 0.5698 GB, free: 25.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008729/0.7863, allocations: 332.2 kB / 0.5701 GB, free: 25.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004546/0.7868, allocations: 140.6 kB / 0.5703 GB, free: 25.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004084/0.7908, allocations: 4.758 MB / 0.5749 GB, free: 23.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005912/0.7915, allocations: 28.11 kB / 0.5749 GB, free: 23.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.7915, allocations: 38.31 kB / 0.575 GB, free: 23.2 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,switch.control[1],$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001792/0.7917, allocations: 160.2 kB / 0.5751 GB, free: 23.05 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001427/0.7931, allocations: 0.9089 MB / 0.576 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.999e-05/0.7932, allocations: 74.09 kB / 0.5761 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001542/0.7948, allocations: 0.9874 MB / 0.5771 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.7948, allocations: 7.812 kB / 0.5771 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.7948, allocations: 3.906 kB / 0.5771 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.877e-06/0.7948, allocations: 7.656 kB / 0.5771 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002662/0.7975, allocations: 1.89 MB / 0.5789 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.7975, allocations: 0 / 0.5789 GB, free: 22.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003057/0.7978, allocations: 85.33 kB / 0.579 GB, free: 22.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007442/0.7986, allocations: 304.5 kB / 0.5793 GB, free: 22.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.28e-05/0.7987, allocations: 11.83 kB / 0.5793 GB, free: 22.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003868/0.8025, allocations: 4.706 MB / 0.5839 GB, free: 18.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.8026, allocations: 0 / 0.5839 GB, free: 18.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.8041, allocations: 1.125 MB / 0.585 GB, free: 18.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.8043, allocations: 151.1 kB / 0.5851 GB, free: 18.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-05/0.8044, allocations: 3.906 kB / 0.5852 GB, free: 18.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.8047, allocations: 23.64 kB / 0.5852 GB, free: 18.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.8049, allocations: 51.31 kB / 0.5852 GB, free: 18.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.599e-05/0.8049, allocations: 27.45 kB / 0.5852 GB, free: 18.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004215/0.8053, allocations: 356.1 kB / 0.5856 GB, free: 18.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8054, allocations: 0 / 0.5856 GB, free: 18.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001056/0.8064, allocations: 262.7 kB / 0.5858 GB, free: 18.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.closed,switch.control[1],$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 38 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 17,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001763/0.8082, allocations: 2.146 MB / 0.5879 GB, free: 16.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.8098, allocations: 1.092 MB / 0.589 GB, free: 16.22 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.8098, allocations: 0 / 0.589 GB, free: 16.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/0.8107, allocations: 0.74 MB / 0.5897 GB, free: 15.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008264/0.8115, allocations: 141.2 kB / 0.5899 GB, free: 15.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.8143, allocations: 1.524 MB / 0.5913 GB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.8149, allocations: 1.122 MB / 0.5924 GB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004849/0.8154, allocations: 184.1 kB / 0.5926 GB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003442/0.8157, allocations: 325 kB / 0.5929 GB, free: 14.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/0.8157, allocations: 3.906 kB / 0.5929 GB, free: 14.16 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.8506, allocations: 16.84 MB / 0.6094 GB, free: 4.191 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001516/0.8508, allocations: 147.4 kB / 0.6095 GB, free: 3.996 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.502/3.353, allocations: 0 / 0.6095 GB, free: 3.996 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)