Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001511/0.001511, allocations: 186.1 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.2 MB / 218.9 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 90.58 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2857/0.2857, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.65e-05/3.669e-05, allocations: 0 / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1102, allocations: 56.32 MB / 473.2 MB, free: 0.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.503/0.6133, allocations: 101.9 MB / 0.5616 GB, free: 1.777 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004948/0.6138, allocations: 87.89 kB / 0.5617 GB, free: 1.691 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1033/0.7172, allocations: 19.3 MB / 0.5805 GB, free: 14.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.7172, allocations: 0 / 0.5805 GB, free: 14.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.755e-05/0.7173, allocations: 16 kB / 0.5806 GB, free: 14.22 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002329/0.7196, allocations: 0.8654 MB / 0.5814 GB, free: 13.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.7197, allocations: 8.031 kB / 0.5814 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001821/0.7199, allocations: 90.5 kB / 0.5815 GB, free: 13.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.7214, allocations: 155 kB / 0.5816 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001299/0.7227, allocations: 0.5053 MB / 0.5821 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/0.7228, allocations: 36.94 kB / 0.5822 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000147/0.723, allocations: 59.97 kB / 0.5822 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.7246, allocations: 0.6124 MB / 0.5828 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.184e-05/0.7246, allocations: 3.938 kB / 0.5828 GB, free: 11.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.839e-05/0.7247, allocations: 23.95 kB / 0.5829 GB, free: 11.73 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-05/0.7248, allocations: 32.98 kB / 0.5829 GB, free: 11.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.7263, allocations: 0.5036 MB / 0.5834 GB, free: 11.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006074/0.7324, allocations: 2.751 MB / 0.5861 GB, free: 8.297 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001586/0.734, allocations: 0.5349 MB / 0.5866 GB, free: 7.727 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004494/0.7345, allocations: 166.4 kB / 0.5867 GB, free: 7.559 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.765e-05/0.7346, allocations: 4.328 kB / 0.5868 GB, free: 7.555 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006117/0.7352, allocations: 271.5 kB / 0.587 GB, free: 7.27 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 3.156e-06/0.7352, allocations: 0 / 0.587 GB, free: 7.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=41): time 0.001252/0.7365, allocations: 410.5 kB / 0.5874 GB, free: 6.859 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/0.7366, allocations: 136.5 kB / 0.5875 GB, free: 6.695 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007924/0.7374, allocations: 416 kB / 0.5879 GB, free: 6.281 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.503e-05/0.7375, allocations: 37.7 kB / 0.588 GB, free: 6.238 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003047/0.7378, allocations: 338.5 kB / 0.5883 GB, free: 5.906 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.738, allocations: 146.1 kB / 0.5884 GB, free: 5.762 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.738, allocations: 8 kB / 0.5884 GB, free: 5.754 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.7382, allocations: 330.8 kB / 0.5888 GB, free: 5.422 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004269/0.7386, allocations: 141.1 kB / 0.5889 GB, free: 5.285 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005473/0.7392, allocations: 263.3 kB / 0.5891 GB, free: 4.977 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.7397, allocations: 201.5 kB / 0.5893 GB, free: 4.773 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.7397, allocations: 4 kB / 0.5893 GB, free: 4.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001985/0.7417, allocations: 0.6245 MB / 0.5899 GB, free: 4.129 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005901/0.7423, allocations: 1.339 MB / 0.5913 GB, free: 2.684 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.7423, allocations: 4 kB / 0.5913 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007451/0.7431, allocations: 140.7 kB / 0.5914 GB, free: 2.539 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007234/0.7438, allocations: 95.88 kB / 0.5915 GB, free: 2.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001035/0.7449, allocations: 0.7651 MB / 0.5922 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000927/0.7458, allocations: 91.44 kB / 0.5923 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-05/0.7459, allocations: 16 kB / 0.5923 GB, free: 1.551 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.7459, allocations: 4 kB / 0.5923 GB, free: 1.547 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001659/0.7476, allocations: 0.5527 MB / 0.5929 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.7476, allocations: 4 kB / 0.5929 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005312/0.7482, allocations: 123.9 kB / 0.593 GB, free: 0.8594 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/0.7489, allocations: 91.88 kB / 0.5931 GB, free: 0.7695 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003586/0.7525, allocations: 2.206 MB / 0.5952 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006191/0.7531, allocations: 55.66 kB / 0.5953 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.061e-05/0.7532, allocations: 12 kB / 0.5953 GB, free: 14.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * 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 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002594/0.7535, allocations: 144.6 kB / 0.5954 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.7537, allocations: 59.34 kB / 0.5955 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.7549, allocations: 427.5 kB / 0.5959 GB, free: 13.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.755, allocations: 4 kB / 0.5959 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.755, allocations: 4 kB / 0.5959 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.755, allocations: 3.984 kB / 0.5959 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002351/0.7574, allocations: 1.077 MB / 0.597 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.7574, allocations: 4 kB / 0.597 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008783/0.7583, allocations: 87.94 kB / 0.5971 GB, free: 12.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.7585, allocations: 40.73 kB / 0.5971 GB, free: 12.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/0.7585, allocations: 8 kB / 0.5971 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.7599, allocations: 1.347 MB / 0.5984 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.7599, allocations: 3.938 kB / 0.5984 GB, free: 10.95 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.7617, allocations: 0.7395 MB / 0.5991 GB, free: 10.17 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.762, allocations: 172.6 kB / 0.5993 GB, free: 9.984 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.7622, allocations: 15.98 kB / 0.5993 GB, free: 9.969 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007639/0.7629, allocations: 51.95 kB / 0.5994 GB, free: 9.918 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.7631, allocations: 39.89 kB / 0.5994 GB, free: 9.879 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.686e-05/0.7632, allocations: 15.98 kB / 0.5994 GB, free: 9.863 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006366/0.7638, allocations: 329.6 kB / 0.5997 GB, free: 9.547 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7638, allocations: 0 / 0.5997 GB, free: 9.547 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001179/0.765, allocations: 247.5 kB / 0.6 GB, free: 9.305 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,trapezoid.T_start,trapezoid.count) * Number of discrete states: 1 (trapezoid.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002228/0.7673, allocations: 1.441 MB / 0.6014 GB, free: 7.816 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002181/0.7695, allocations: 0.842 MB / 0.6022 GB, free: 6.938 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7695, allocations: 0 / 0.6022 GB, free: 6.938 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006629/0.7702, allocations: 298.5 kB / 0.6025 GB, free: 6.633 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009551/0.7712, allocations: 106.1 kB / 0.6026 GB, free: 6.527 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003184/0.7744, allocations: 1.093 MB / 0.6037 GB, free: 5.391 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006457/0.775, allocations: 0.9099 MB / 0.6045 GB, free: 4.453 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/0.7756, allocations: 211.4 kB / 0.6047 GB, free: 4.246 MB / 442.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7756, allocations: 0 / 0.6047 GB, free: 4.246 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.888/3.663, allocations: 11.8 MB / 0.6163 GB, free: 8.434 MB / 458.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)