Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007783/0.0007783, allocations: 89.25 kB / 16.65 MB, free: 6.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009511/0.0009512, allocations: 175.9 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.345/1.345, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1816/0.1816, allocations: 38.06 MB / 310.1 MB, free: 5.906 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006021/0.0006021, allocations: 12 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.2193, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.004898/0.2242, allocations: 5.821 MB / 439.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003585/0.2279, allocations: 2.809 MB / 442.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007598/0.2287, allocations: 35.81 kB / 442.3 MB, free: 9.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004423/0.2291, allocations: 107.2 kB / 442.4 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009036/0.23, allocations: 422.2 kB / 442.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008086/0.2309, allocations: 421.5 kB / 443.2 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000853/0.2317, allocations: 1.263 MB / 444.4 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009281/0.2327, allocations: 0.726 MB / 445.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.2331, allocations: 326.4 kB / 445.5 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003883/0.2335, allocations: 374.2 kB / 445.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.515e-05/0.2335, allocations: 28 kB / 445.9 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007838/0.2343, allocations: 0.5573 MB / 446.4 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.2345, allocations: 183.3 kB / 446.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002356/0.2347, allocations: 339.8 kB / 447 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007547/0.2355, allocations: 1.035 MB / 448 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2355, allocations: 0 / 448 MB, free: 4.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2355, allocations: 4 kB / 448 MB, free: 4.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.067e-06/0.2355, allocations: 0 / 448 MB, free: 4.152 MB / 318.1 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.001694/0.2372, allocations: 0.985 MB / 449 MB, free: 3.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.2373, allocations: 12.03 kB / 449 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.903e-05/0.2374, allocations: 106.7 kB / 449.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.2385, allocations: 179.9 kB / 449.3 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007458/0.2392, allocations: 0.5481 MB / 449.8 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.412e-05/0.2393, allocations: 45.67 kB / 449.9 MB, free: 2.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.5e-05/0.2394, allocations: 56.28 kB / 449.9 MB, free: 2.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001226/0.2406, allocations: 0.8137 MB / 450.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.102e-05/0.2406, allocations: 7.875 kB / 450.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.588e-05/0.2407, allocations: 24 kB / 450.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-05/0.2408, allocations: 33.3 kB / 450.8 MB, free: 1.207 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.2421, allocations: 0.7623 MB / 451.6 MB, free: 456 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003905/0.246, allocations: 2.935 MB / 454.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001356/0.2474, allocations: 0.6197 MB / 455.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006855/0.2481, allocations: 374.8 kB / 455.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.673e-05/0.2482, allocations: 4.438 kB / 455.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008332/0.249, allocations: 442.2 kB / 455.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.249, allocations: 0 / 455.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=58): time 0.004281/0.2533, allocations: 2.21 MB / 458.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.2534, allocations: 107.4 kB / 458.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006811/0.2541, allocations: 482.1 kB / 458.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.408e-05/0.2541, allocations: 37.7 kB / 458.7 MB, free: 8.988 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.2544, allocations: 324.4 kB / 459.1 MB, free: 8.664 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.2546, allocations: 197.2 kB / 459.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.2547, allocations: 57.69 kB / 459.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2548, allocations: 370.8 kB / 459.7 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005947/0.2554, allocations: 301.1 kB / 460 MB, free: 7.742 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000655/0.2561, allocations: 422.9 kB / 460.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.2574, allocations: 0.7574 MB / 461.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.2574, allocations: 0 / 461.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002145/0.2595, allocations: 1.068 MB / 462.2 MB, free: 5.391 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001356/0.2597, allocations: 207.2 kB / 462.4 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.2597, allocations: 4 kB / 462.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006001/0.2603, allocations: 189.6 kB / 462.6 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000482/0.2608, allocations: 123.8 kB / 462.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/0.265, allocations: 3.856 MB / 466.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/0.2656, allocations: 67.98 kB / 466.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.2657, allocations: 20 kB / 466.6 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.933e-06/0.2657, allocations: 4 kB / 466.7 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001727/0.2674, allocations: 0.8987 MB / 467.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.2674, allocations: 3.938 kB / 467.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004771/0.2679, allocations: 161.8 kB / 467.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004646/0.2684, allocations: 123.8 kB / 467.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003191/0.2716, allocations: 3.63 MB / 471.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.2721, allocations: 64 kB / 471.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.2722, allocations: 24 kB / 471.6 MB, free: 11.43 MB / 350.1 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,secondary.count,$PRE.secondary.count,secondary.T_start,$PRE.secondary.T_start,$whenCondition1,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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0003524/0.2726, allocations: 305 kB / 471.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.976e-05/0.2726, allocations: 59.28 kB / 471.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.2743, allocations: 0.85 MB / 472.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.2743, allocations: 8 kB / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.2744, allocations: 0 / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.2744, allocations: 3.984 kB / 472.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002591/0.277, allocations: 1.71 MB / 474.5 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.277, allocations: 4 kB / 474.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005952/0.2776, allocations: 139.8 kB / 474.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002278/0.2778, allocations: 65.86 kB / 474.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-05/0.2779, allocations: 19.98 kB / 474.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001772/0.2797, allocations: 2.697 MB / 477.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2797, allocations: 3.938 kB / 477.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00221/0.2819, allocations: 1.345 MB / 478.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.2821, allocations: 192.3 kB / 478.9 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.435e-05/0.2822, allocations: 16 kB / 479 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.2827, allocations: 67.92 kB / 479 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.2828, allocations: 56.38 kB / 479.1 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.026e-05/0.2829, allocations: 20 kB / 479.1 MB, free: 3.438 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004888/0.2834, allocations: 346.8 kB / 479.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2834, allocations: 0 / 479.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009407/0.2843, allocations: 264 kB / 479.7 MB, free: 2.844 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002508/0.2869, allocations: 1.909 MB / 481.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002938/0.2898, allocations: 1.786 MB / 483.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.2898, allocations: 7.938 kB / 483.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009843/0.2908, allocations: 0.6143 MB / 484 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009248/0.2918, allocations: 129.7 kB / 484.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/0.3028, allocations: 6.973 MB / 491.1 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.3034, allocations: 0.947 MB / 492.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005259/0.304, allocations: 160.5 kB / 492.2 MB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.3044, allocations: 227.4 kB / 492.4 MB, free: 5.695 MB / 366.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3044, allocations: 4 kB / 492.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03285/0.3372, allocations: 15.1 MB / 0.4956 GB, free: 6.621 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/0.3375, allocations: 230.2 kB / 0.4959 GB, free: 6.371 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.363, allocations: 0 / 0.4959 GB, free: 6.371 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_HydroPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1)