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.001052/0.001052, allocations: 171.6 kB / 16.07 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.352/1.352, allocations: 205.4 MB / 222.2 MB, free: 9.023 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.0009018/0.0009017, allocations: 92.78 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1735/0.1735, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003834, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2551, allocations: 56.32 MB / 479.7 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005456/0.2606, allocations: 5.537 MB / 485.3 MB, free: 5.531 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.00376/0.2643, allocations: 2.676 MB / 487.9 MB, free: 3.625 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006422/0.265, allocations: 33.88 kB / 488 MB, free: 3.613 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005092/0.2655, allocations: 122.8 kB / 488.1 MB, free: 3.547 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.2667, allocations: 451.6 kB / 488.5 MB, free: 3.309 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.2678, allocations: 382.7 kB / 488.9 MB, free: 3.121 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001222/0.269, allocations: 1.088 MB / 490 MB, free: 2.645 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.2701, allocations: 0.7163 MB / 490.7 MB, free: 2.195 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005383/0.2707, allocations: 322.5 kB / 491 MB, free: 2.059 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000479/0.2712, allocations: 361 kB / 491.4 MB, free: 1.914 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.2713, allocations: 27.75 kB / 491.4 MB, free: 1.914 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.2723, allocations: 0.5342 MB / 491.9 MB, free: 1.727 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002373/0.2726, allocations: 178.1 kB / 492.1 MB, free: 1.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004073/0.273, allocations: 328.3 kB / 492.4 MB, free: 1.441 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.2742, allocations: 0.8012 MB / 493.2 MB, free: 1.258 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2742, allocations: 1.312 kB / 493.2 MB, free: 1.258 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2742, allocations: 0 / 493.2 MB, free: 1.258 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.2742, allocations: 0 / 493.2 MB, free: 1.258 MB / 314.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.00185/0.2761, allocations: 0.9876 MB / 494.2 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2761, allocations: 9.5 kB / 494.2 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.2762, allocations: 101.1 kB / 494.3 MB, free: 500 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.2774, allocations: 184.2 kB / 494.5 MB, free: 452 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008529/0.2782, allocations: 0.5449 MB / 495.1 MB, free: 56 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.2783, allocations: 40.59 kB / 495.1 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.2784, allocations: 62.86 kB / 495.2 MB, free: 16 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.28, allocations: 0.8085 MB / 496 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.28, allocations: 2.094 kB / 496 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.2801, allocations: 21.61 kB / 496 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.514e-05/0.2801, allocations: 32.53 kB / 496 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.2817, allocations: 0.7607 MB / 496.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004583/0.2863, allocations: 2.949 MB / 499.7 MB, free: 13.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001418/0.2878, allocations: 0.6152 MB / 0.4886 GB, free: 13 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007267/0.2885, allocations: 374.5 kB / 0.489 GB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.129e-05/0.2886, allocations: 7.156 kB / 0.489 GB, free: 12.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008051/0.2894, allocations: 440.8 kB / 0.4894 GB, free: 12.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=56): time 2.565e-06/0.2894, allocations: 0 / 0.4894 GB, free: 12.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.004438/0.2939, allocations: 2.201 MB / 0.4916 GB, free: 11.2 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.294, allocations: 110 kB / 0.4917 GB, free: 11.08 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006977/0.2947, allocations: 481 kB / 0.4921 GB, free: 10.79 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.563e-05/0.2947, allocations: 40.45 kB / 0.4922 GB, free: 10.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.295, allocations: 324.5 kB / 0.4925 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.2951, allocations: 189 kB / 0.4927 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.2952, allocations: 15.78 kB / 0.4927 GB, free: 10.28 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.2954, allocations: 368.9 kB / 0.493 GB, free: 9.926 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006331/0.296, allocations: 299.4 kB / 0.4933 GB, free: 9.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006882/0.2967, allocations: 410.2 kB / 0.4937 GB, free: 9.512 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001344/0.298, allocations: 0.7509 MB / 0.4944 GB, free: 9.047 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.2981, allocations: 1.094 kB / 0.4944 GB, free: 9.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002377/0.3004, allocations: 1.062 MB / 0.4955 GB, free: 8.488 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001439/0.3006, allocations: 204.5 kB / 0.4957 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3006, allocations: 2.875 kB / 0.4957 GB, free: 8.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007426/0.3014, allocations: 210.1 kB / 0.4959 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.3019, allocations: 124.8 kB / 0.496 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004465/0.3064, allocations: 3.853 MB / 0.4997 GB, free: 4.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006224/0.307, allocations: 69.59 kB / 0.4998 GB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/0.3071, allocations: 33.58 kB / 0.4998 GB, free: 4.621 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.887e-06/0.3071, allocations: 3.219 kB / 0.4998 GB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001838/0.309, allocations: 0.8801 MB / 0.5007 GB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.309, allocations: 3.312 kB / 0.5007 GB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005114/0.3095, allocations: 177 kB / 0.5009 GB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/0.31, allocations: 120.1 kB / 0.501 GB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003414/0.3134, allocations: 3.619 MB / 0.5045 GB, free: 300 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006164/0.314, allocations: 59.88 kB / 0.5046 GB, free: 240 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.427e-05/0.3141, allocations: 23.98 kB / 0.5046 GB, free: 216 kB / 330.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: 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 () * Number of clocked 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 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0005077/0.3146, allocations: 309.1 kB / 0.5049 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3148, allocations: 59.28 kB / 0.505 GB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001746/0.3165, allocations: 0.85 MB / 0.5058 GB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3165, allocations: 4 kB / 0.5058 GB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.3166, allocations: 4 kB / 0.5058 GB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.3166, allocations: 3.984 kB / 0.5058 GB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002816/0.3194, allocations: 1.702 MB / 0.5075 GB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.3194, allocations: 192 / 0.5075 GB, free: 13.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006324/0.3201, allocations: 151.8 kB / 0.5076 GB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002281/0.3203, allocations: 57.67 kB / 0.5077 GB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.3204, allocations: 16 kB / 0.5077 GB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/0.3222, allocations: 2.697 MB / 0.5103 GB, free: 9.984 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.3223, allocations: 4.031 kB / 0.5103 GB, free: 9.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002327/0.3246, allocations: 1.345 MB / 0.5116 GB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003232/0.3249, allocations: 188.3 kB / 0.5118 GB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.3251, allocations: 12 kB / 0.5118 GB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005325/0.3256, allocations: 63.92 kB / 0.5119 GB, free: 8.312 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.3258, allocations: 64.36 kB / 0.5119 GB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.741e-05/0.3258, allocations: 20 kB / 0.512 GB, free: 8.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005704/0.3264, allocations: 342.8 kB / 0.5123 GB, free: 7.898 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3264, allocations: 0 / 0.5123 GB, free: 7.898 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001176/0.3276, allocations: 256 kB / 0.5125 GB, free: 7.648 MB / 346.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) * Number of clocked states: 0 () * 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.002677/0.3303, allocations: 1.905 MB / 0.5144 GB, free: 5.691 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003248/0.3335, allocations: 1.774 MB / 0.5161 GB, free: 3.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.3336, allocations: 0 / 0.5161 GB, free: 3.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009551/0.3345, allocations: 0.622 MB / 0.5167 GB, free: 3.195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009734/0.3355, allocations: 122.9 kB / 0.5169 GB, free: 3.078 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00851/0.344, allocations: 4.702 MB / 0.5214 GB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/0.3446, allocations: 0.9431 MB / 0.5224 GB, free: 13.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003983/0.3451, allocations: 239.3 kB / 0.5226 GB, free: 13.04 MB / 362.7 MB Notification: Performance of SimCode: time 8.41e-07/0.3451, allocations: 0 / 0.5226 GB, free: 13.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.915/4.26, allocations: 15.61 MB / 0.5378 GB, free: 13.4 MB / 378.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)