Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.001687/0.001687, allocations: 182.3 kB / 13.64 MB, free: 1.676 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.615/1.615, allocations: 194.2 MB / 208.4 MB, free: 6.703 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.001618/0.001618, allocations: 116.7 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2548/0.2548, allocations: 37.9 MB / 336.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.582e-05/4.601e-05, allocations: 4 kB / 397.6 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2755, allocations: 53.22 MB / 450.9 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.372/0.6476, allocations: 95.83 MB / 0.5339 GB, free: 88.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002947/0.6479, allocations: 89.8 kB / 0.534 GB, free: 88.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04755/0.6955, allocations: 18.47 MB / 0.552 GB, free: 77.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.6955, allocations: 0 / 0.552 GB, free: 77.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.582e-05/0.6956, allocations: 19.98 kB / 0.552 GB, free: 77.05 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001663/0.6973, allocations: 0.8265 MB / 0.5528 GB, free: 76.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.032e-05/0.6974, allocations: 16.03 kB / 0.5528 GB, free: 76.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001449/0.6975, allocations: 94.5 kB / 0.5529 GB, free: 76.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.6985, allocations: 147.1 kB / 0.5531 GB, free: 75.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009291/0.6995, allocations: 488 kB / 0.5535 GB, free: 75.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.6995, allocations: 33 kB / 0.5536 GB, free: 75.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.399e-05/0.6996, allocations: 55.86 kB / 0.5536 GB, free: 75.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009158/0.7006, allocations: 0.5851 MB / 0.5542 GB, free: 74.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.7006, allocations: 0 / 0.5542 GB, free: 74.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.048e-05/0.7006, allocations: 20 kB / 0.5542 GB, free: 74.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.019e-05/0.7007, allocations: 25 kB / 0.5542 GB, free: 74.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006718/0.7014, allocations: 495.8 kB / 0.5547 GB, free: 74.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003278/0.7047, allocations: 2.524 MB / 0.5572 GB, free: 71.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009297/0.7056, allocations: 0.5106 MB / 0.5577 GB, free: 70.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/0.7059, allocations: 158.3 kB / 0.5578 GB, free: 70.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.1e-05/0.7059, allocations: 11.98 kB / 0.5578 GB, free: 70.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004211/0.7064, allocations: 256.8 kB / 0.5581 GB, free: 70.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 3.777e-06/0.7064, allocations: 0 / 0.5581 GB, free: 70.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007966/0.7072, allocations: 393.3 kB / 0.5584 GB, free: 70.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.7073, allocations: 148.5 kB / 0.5586 GB, free: 69.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004199/0.7077, allocations: 387.1 kB / 0.559 GB, free: 69.56 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.7077, allocations: 29.7 kB / 0.559 GB, free: 69.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001789/0.7079, allocations: 292.1 kB / 0.5593 GB, free: 69.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.218e-05/0.708, allocations: 138.1 kB / 0.5594 GB, free: 69.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.233e-05/0.708, allocations: 8 kB / 0.5594 GB, free: 69.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.7082, allocations: 362.8 kB / 0.5597 GB, free: 68.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.7084, allocations: 133.1 kB / 0.5599 GB, free: 68.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000245/0.7086, allocations: 245.6 kB / 0.5601 GB, free: 68.31 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.7089, allocations: 197.5 kB / 0.5603 GB, free: 68.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.7089, allocations: 4 kB / 0.5603 GB, free: 68.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009924/0.7099, allocations: 0.6239 MB / 0.5609 GB, free: 67.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002455/0.7102, allocations: 1.163 MB / 0.562 GB, free: 66.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.7102, allocations: 4.078 kB / 0.562 GB, free: 66.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004115/0.7106, allocations: 132.8 kB / 0.5622 GB, free: 66.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.7109, allocations: 87.89 kB / 0.5623 GB, free: 65.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005322/0.7115, allocations: 0.7475 MB / 0.563 GB, free: 65.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.712, allocations: 83.39 kB / 0.5631 GB, free: 65.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.712, allocations: 16 kB / 0.5631 GB, free: 65.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.956e-06/0.712, allocations: 4 kB / 0.5631 GB, free: 65.11 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007926/0.7128, allocations: 0.5214 MB / 0.5636 GB, free: 64.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.7128, allocations: 4 kB / 0.5636 GB, free: 64.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002716/0.7131, allocations: 117.2 kB / 0.5637 GB, free: 64.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000318/0.7134, allocations: 95.81 kB / 0.5638 GB, free: 64.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001782/0.7152, allocations: 2.155 MB / 0.5659 GB, free: 62.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004368/0.7157, allocations: 79.55 kB / 0.566 GB, free: 62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.7157, allocations: 16 kB / 0.566 GB, free: 61.99 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 41 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001257/0.7159, allocations: 128.9 kB / 0.5661 GB, free: 61.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.982e-05/0.7159, allocations: 51.34 kB / 0.5662 GB, free: 61.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.7166, allocations: 436 kB / 0.5666 GB, free: 61.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.7166, allocations: 4 kB / 0.5666 GB, free: 61.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.7167, allocations: 0 / 0.5666 GB, free: 61.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.7167, allocations: 3.984 kB / 0.5666 GB, free: 61.36 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.7178, allocations: 1.03 MB / 0.5676 GB, free: 60.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.7179, allocations: 0 / 0.5676 GB, free: 60.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004116/0.7183, allocations: 95.88 kB / 0.5677 GB, free: 60.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.917e-05/0.7184, allocations: 28.84 kB / 0.5677 GB, free: 60.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.7184, allocations: 12 kB / 0.5677 GB, free: 60.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006318/0.7191, allocations: 1.359 MB / 0.5691 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.7191, allocations: 0 / 0.5691 GB, free: 58.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008427/0.7199, allocations: 0.7197 MB / 0.5698 GB, free: 57.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.7201, allocations: 168.3 kB / 0.5699 GB, free: 57.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.497e-05/0.7202, allocations: 8 kB / 0.5699 GB, free: 57.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003761/0.7205, allocations: 51.94 kB / 0.57 GB, free: 57.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.903e-05/0.7206, allocations: 35.95 kB / 0.57 GB, free: 57.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.7207, allocations: 8 kB / 0.57 GB, free: 57.6 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002903/0.721, allocations: 313.2 kB / 0.5703 GB, free: 57.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.721, allocations: 0 / 0.5703 GB, free: 57.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009466/0.7219, allocations: 235.4 kB / 0.5705 GB, free: 57.07 MB / 378.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 (39): * Single equations (assignments): 35 * 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.001135/0.7231, allocations: 1.423 MB / 0.5719 GB, free: 55.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001129/0.7242, allocations: 0.8407 MB / 0.5728 GB, free: 54.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.7242, allocations: 0 / 0.5728 GB, free: 54.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.7246, allocations: 302.4 kB / 0.573 GB, free: 54.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005037/0.7251, allocations: 101.1 kB / 0.5731 GB, free: 54.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.7268, allocations: 0.9946 MB / 0.5741 GB, free: 53.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.7271, allocations: 0.9031 MB / 0.575 GB, free: 52.34 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00046/0.7276, allocations: 130 kB / 0.5751 GB, free: 52.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.7278, allocations: 191.4 kB / 0.5753 GB, free: 52.03 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.7278, allocations: 0 / 0.5753 GB, free: 52.03 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.7547, allocations: 12.19 MB / 0.5872 GB, free: 39.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.7549, allocations: 191.7 kB / 0.5874 GB, free: 39.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/2.962, allocations: 0 / 0.5874 GB, free: 39.6 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1)