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.002068/0.002068, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001084, allocations: 98.3 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2616/0.2616, allocations: 38 MB / 347.7 MB, free: 5.777 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.923e-05/1.931e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1079, allocations: 56.33 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5093/0.6173, allocations: 101.2 MB / 0.5542 GB, free: 8.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.6177, allocations: 88.56 kB / 0.5543 GB, free: 8.914 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07595/0.6937, allocations: 19.17 MB / 0.573 GB, free: 10.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.6937, allocations: 0 / 0.573 GB, free: 10.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.271e-05/0.6938, allocations: 19.98 kB / 0.573 GB, free: 10.54 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: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.002482/0.6963, allocations: 0.856 MB / 0.5738 GB, free: 9.668 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.6964, allocations: 12.03 kB / 0.5739 GB, free: 9.656 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.698, allocations: 163 kB / 0.574 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.6995, allocations: 0.5081 MB / 0.5745 GB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.406e-05/0.6996, allocations: 16 kB / 0.5745 GB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.6997, allocations: 39.81 kB / 0.5746 GB, free: 8.984 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00119/0.7009, allocations: 405.3 kB / 0.5749 GB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/0.7023, allocations: 0.5466 MB / 0.5755 GB, free: 8.309 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.85e-05/0.7024, allocations: 7.922 kB / 0.5755 GB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.801e-05/0.7025, allocations: 7.953 kB / 0.5755 GB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.879e-05/0.7026, allocations: 21.31 kB / 0.5755 GB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006196/0.7088, allocations: 2.689 MB / 0.5781 GB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.7103, allocations: 0.5215 MB / 0.5786 GB, free: 5.551 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003954/0.7107, allocations: 157.3 kB / 0.5788 GB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.7108, allocations: 8.266 kB / 0.5788 GB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005599/0.7114, allocations: 241 kB / 0.579 GB, free: 5.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.717e-06/0.7114, allocations: 0 / 0.579 GB, free: 5.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001185/0.7126, allocations: 390.8 kB / 0.5794 GB, free: 4.957 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.138e-05/0.7127, allocations: 136.5 kB / 0.5795 GB, free: 4.793 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006211/0.7134, allocations: 350.3 kB / 0.5799 GB, free: 4.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.7134, allocations: 29.7 kB / 0.5799 GB, free: 4.484 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003055/0.7138, allocations: 345.7 kB / 0.5802 GB, free: 4.211 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.714, allocations: 138 kB / 0.5804 GB, free: 4.094 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.371e-05/0.714, allocations: 0 / 0.5804 GB, free: 4.094 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.7142, allocations: 329.7 kB / 0.5807 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004079/0.7146, allocations: 139 kB / 0.5808 GB, free: 3.691 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004698/0.7151, allocations: 250.3 kB / 0.581 GB, free: 3.461 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004519/0.7155, allocations: 174 kB / 0.5812 GB, free: 3.348 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.7155, allocations: 0 / 0.5812 GB, free: 3.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001873/0.7174, allocations: 0.5535 MB / 0.5818 GB, free: 2.922 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006109/0.7181, allocations: 1.342 MB / 0.5831 GB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.7181, allocations: 0 / 0.5831 GB, free: 1.496 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007623/0.7189, allocations: 139.7 kB / 0.5832 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007733/0.7197, allocations: 99.75 kB / 0.5833 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.7208, allocations: 0.773 MB / 0.584 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009124/0.7217, allocations: 63.64 kB / 0.5841 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.165e-05/0.7218, allocations: 21.5 kB / 0.5841 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.7218, allocations: 5.875 kB / 0.5841 GB, free: 0.5312 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001533/0.7234, allocations: 476.2 kB / 0.5846 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.7234, allocations: 4 kB / 0.5846 GB, free: 192 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005141/0.7239, allocations: 109.9 kB / 0.5847 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000723/0.7247, allocations: 105.7 kB / 0.5848 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003478/0.7282, allocations: 2.132 MB / 0.5869 GB, free: 14.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006302/0.7288, allocations: 51.72 kB / 0.5869 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.287e-05/0.7289, allocations: 15.94 kB / 0.5869 GB, free: 14.12 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hydroPlant.primaryControl.addFF.y:VARIABLE() "Connector of Real output signal" type: Real 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 (46): * Single equations (assignments): 44 * 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.0002647/0.7292, allocations: 127.2 kB / 0.5871 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001043/0.7302, allocations: 390.9 kB / 0.5874 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.7304, allocations: 47.44 kB / 0.5875 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/0.7315, allocations: 403.9 kB / 0.5879 GB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.7315, allocations: 8 kB / 0.5879 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.7315, allocations: 3.953 kB / 0.5879 GB, free: 13.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.7315, allocations: 3.984 kB / 0.5879 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.7336, allocations: 0.968 MB / 0.5888 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.7337, allocations: 3.953 kB / 0.5888 GB, free: 12.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009149/0.7346, allocations: 103.8 kB / 0.5889 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001601/0.7348, allocations: 31.72 kB / 0.589 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.326e-05/0.7349, allocations: 0 / 0.589 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.7361, allocations: 1.301 MB / 0.5902 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.155e-06/0.7361, allocations: 4.031 kB / 0.5902 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.7378, allocations: 0.7092 MB / 0.5909 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.7381, allocations: 168.9 kB / 0.5911 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.86e-05/0.7382, allocations: 4 kB / 0.5911 GB, free: 10.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007575/0.739, allocations: 43.94 kB / 0.5911 GB, free: 10.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.7392, allocations: 46.5 kB / 0.5912 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.886e-05/0.7392, allocations: 15.62 kB / 0.5912 GB, free: 10.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004698/0.7397, allocations: 265.8 kB / 0.5915 GB, free: 10.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.7397, allocations: 0 / 0.5915 GB, free: 10.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001269/0.741, allocations: 242.7 kB / 0.5917 GB, free: 9.871 MB / 394.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 (41): * Single equations (assignments): 37 * 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.002088/0.7431, allocations: 1.404 MB / 0.5931 GB, free: 8.617 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00218/0.7453, allocations: 0.8251 MB / 0.5939 GB, free: 7.961 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.7454, allocations: 0 / 0.5939 GB, free: 7.961 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006262/0.746, allocations: 285.3 kB / 0.5941 GB, free: 7.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009763/0.747, allocations: 90.95 kB / 0.5942 GB, free: 7.664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.7502, allocations: 1.05 MB / 0.5952 GB, free: 6.676 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006685/0.751, allocations: 0.9116 MB / 0.5961 GB, free: 5.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004991/0.7515, allocations: 201.7 kB / 0.5963 GB, free: 5.695 MB / 394.7 MB Notification: Performance of SimCode: time 1.603e-06/0.7515, allocations: 0 / 0.5963 GB, free: 5.695 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.862/3.613, allocations: 11.54 MB / 0.6076 GB, free: 10.31 MB / 410.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)