Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.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.HydroPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",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.002168/0.002167, 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.155/2.155, 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.001099/0.001099, allocations: 90.16 kB / 261.8 MB, free: 1.691 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2614/0.2614, allocations: 37.99 MB / 347.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.132e-05/2.129e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1213, allocations: 56.34 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4977/0.6191, allocations: 103.2 MB / 0.5561 GB, free: 8.438 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.6194, allocations: 90.97 kB / 0.5562 GB, free: 8.422 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09977/0.7192, allocations: 24.94 MB / 0.5806 GB, free: 4.059 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.7193, allocations: 3.938 kB / 0.5806 GB, free: 4.055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.695e-05/0.7194, allocations: 20 kB / 0.5806 GB, free: 4.035 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002864/0.7222, allocations: 0.9261 MB / 0.5815 GB, free: 3.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.7223, allocations: 12.03 kB / 0.5815 GB, free: 3.094 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002328/0.7247, allocations: 190.9 kB / 0.5817 GB, free: 2.906 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001597/0.7263, allocations: 0.538 MB / 0.5822 GB, free: 2.422 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.269e-05/0.7264, allocations: 16 kB / 0.5822 GB, free: 2.406 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/0.7266, allocations: 36 kB / 0.5822 GB, free: 2.371 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001533/0.7281, allocations: 0.5028 MB / 0.5827 GB, free: 2.055 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.7298, allocations: 0.6517 MB / 0.5834 GB, free: 1.539 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.82e-05/0.7299, allocations: 3.906 kB / 0.5834 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.381e-05/0.73, allocations: 0 / 0.5834 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001757/0.7301, allocations: 41.23 kB / 0.5834 GB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006865/0.737, allocations: 2.819 MB / 0.5862 GB, free: 15.13 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.7385, allocations: 490.2 kB / 0.5866 GB, free: 14.8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008032/0.7393, allocations: 296.1 kB / 0.5869 GB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.028e-05/0.7394, allocations: 16.42 kB / 0.5869 GB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008488/0.7403, allocations: 360.6 kB / 0.5873 GB, free: 14.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=56): time 5.36e-06/0.7403, allocations: 3.938 kB / 0.5873 GB, free: 14.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.00407/0.7444, allocations: 1.474 MB / 0.5887 GB, free: 13.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.7445, allocations: 114.8 kB / 0.5888 GB, free: 12.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006265/0.7452, allocations: 346.6 kB / 0.5892 GB, free: 12.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.7453, allocations: 25.7 kB / 0.5892 GB, free: 12.69 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003132/0.7456, allocations: 356.2 kB / 0.5895 GB, free: 12.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002642/0.7459, allocations: 186.3 kB / 0.5897 GB, free: 12.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.746, allocations: 0 / 0.5897 GB, free: 12.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.7461, allocations: 344.6 kB / 0.59 GB, free: 11.92 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005962/0.7468, allocations: 221.5 kB / 0.5902 GB, free: 11.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006655/0.7474, allocations: 343.2 kB / 0.5906 GB, free: 11.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006674/0.7481, allocations: 270.9 kB / 0.5908 GB, free: 11.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.7481, allocations: 0 / 0.5908 GB, free: 11.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002556/0.7507, allocations: 0.7823 MB / 0.5916 GB, free: 10.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005331/0.7513, allocations: 1.162 MB / 0.5927 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.7513, allocations: 4 kB / 0.5927 GB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.7524, allocations: 192.4 kB / 0.5929 GB, free: 9.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001048/0.7534, allocations: 122.9 kB / 0.593 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003191/0.7566, allocations: 2.156 MB / 0.5951 GB, free: 7.125 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.7578, allocations: 55.92 kB / 0.5952 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.394e-05/0.7579, allocations: 27.25 kB / 0.5952 GB, free: 7.051 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.758, allocations: 7.938 kB / 0.5952 GB, free: 7.043 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002279/0.7603, allocations: 0.6978 MB / 0.5959 GB, free: 6.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.4e-05/0.7603, allocations: 4 kB / 0.5959 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007493/0.7611, allocations: 168.6 kB / 0.5961 GB, free: 6.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.7621, allocations: 119.5 kB / 0.5962 GB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003515/0.7657, allocations: 2.151 MB / 0.5983 GB, free: 4.457 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008209/0.7665, allocations: 35.95 kB / 0.5983 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.7667, allocations: 33.88 kB / 0.5984 GB, free: 4.395 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 hydroPlant.add.y:VARIABLE() "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0003181/0.767, allocations: 122.4 kB / 0.5985 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001775/0.7688, allocations: 0.6183 MB / 0.5991 GB, free: 3.668 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.769, allocations: 55.34 kB / 0.5991 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.771, allocations: 0.6706 MB / 0.5998 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.771, allocations: 8 kB / 0.5998 GB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.7711, allocations: 4.031 kB / 0.5998 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.7711, allocations: 11.94 kB / 0.5998 GB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003794/0.7749, allocations: 1.449 MB / 0.6012 GB, free: 1.387 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.7749, allocations: 4 kB / 0.6012 GB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001253/0.7762, allocations: 135.8 kB / 0.6014 GB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003889/0.7766, allocations: 65.84 kB / 0.6014 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.413e-05/0.7767, allocations: 7.984 kB / 0.6014 GB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002687/0.7794, allocations: 2.579 MB / 0.6039 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.201e-05/0.7795, allocations: 7.938 kB / 0.604 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002809/0.7823, allocations: 1.197 MB / 0.6051 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005737/0.7829, allocations: 184.4 kB / 0.6053 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.7831, allocations: 7.953 kB / 0.6053 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009706/0.7841, allocations: 59.92 kB / 0.6054 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.7843, allocations: 52.44 kB / 0.6054 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.842e-05/0.7844, allocations: 19.98 kB / 0.6054 GB, free: 12.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005061/0.7849, allocations: 279 kB / 0.6057 GB, free: 12.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7849, allocations: 0 / 0.6057 GB, free: 12.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001519/0.7865, allocations: 224.1 kB / 0.6059 GB, free: 12.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 57 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003347/0.7899, allocations: 2.244 MB / 0.6081 GB, free: 9.914 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004082/0.794, allocations: 1.438 MB / 0.6095 GB, free: 8.414 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.794, allocations: 0 / 0.6095 GB, free: 8.414 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.7954, allocations: 0.5249 MB / 0.61 GB, free: 7.871 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001152/0.7966, allocations: 121.8 kB / 0.6101 GB, free: 7.758 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/0.8007, allocations: 1.302 MB / 0.6114 GB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007362/0.8015, allocations: 0.9584 MB / 0.6123 GB, free: 5.402 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000649/0.8022, allocations: 235.5 kB / 0.6126 GB, free: 5.172 MB / 410.7 MB Notification: Performance of SimCode: time 9.22e-07/0.8022, allocations: 0 / 0.6126 GB, free: 5.172 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.929/3.731, allocations: 16.16 MB / 0.6283 GB, free: 4.996 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)