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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001141/0.001141, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1679/0.1679, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 60.45 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1849/0.1861, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1): time 0.01467/0.2008, allocations: 5.128 MB / 462.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00869/0.2096, allocations: 2.143 MB / 464.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0018/0.2115, allocations: 19.94 kB / 464.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002684/0.2142, allocations: 258.4 kB / 464.5 MB, free: 388 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002455/0.2167, allocations: 330.1 kB / 464.8 MB, free: 56 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.219, allocations: 410.1 kB / 465.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002324/0.2214, allocations: 0.9049 MB / 466.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001744/0.2232, allocations: 0.5122 MB / 466.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001295/0.2245, allocations: 346.6 kB / 467 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.2258, allocations: 354.4 kB / 467.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003598/0.2262, allocations: 72 kB / 467.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.2275, allocations: 339.3 kB / 467.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005087/0.228, allocations: 191.4 kB / 467.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000932/0.229, allocations: 330.3 kB / 468.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002224/0.2312, allocations: 0.9112 MB / 469.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.134e-05/0.2313, allocations: 0 / 469.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.2313, allocations: 0 / 469.1 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.752e-05/0.2314, allocations: 0 / 469.1 MB, free: 11.71 MB / 350.1 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.004329/0.2357, allocations: 1.034 MB / 470.2 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.96e-05/0.2358, allocations: 15.89 kB / 470.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003286/0.2362, allocations: 90.7 kB / 470.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001647/0.2379, allocations: 140 kB / 470.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001632/0.2395, allocations: 0.5092 MB / 470.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.641e-05/0.2396, allocations: 37.38 kB / 471 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000268/0.2399, allocations: 60.34 kB / 471 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002325/0.2423, allocations: 0.6746 MB / 471.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.947e-05/0.2424, allocations: 8 kB / 471.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001838/0.2426, allocations: 20 kB / 471.7 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001094/0.2427, allocations: 28.98 kB / 471.8 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002283/0.245, allocations: 0.5971 MB / 472.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007588/0.2527, allocations: 2.696 MB / 475.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.2551, allocations: 0.6119 MB / 475.7 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007758/0.2559, allocations: 210.2 kB / 475.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.548e-05/0.256, allocations: 4.328 kB / 475.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001114/0.2572, allocations: 309.7 kB / 476.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 7.825e-06/0.2572, allocations: 0 / 476.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of matching and sorting (n=41): time 0.003282/0.2605, allocations: 0.7484 MB / 476.9 MB, free: 3.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001805/0.2607, allocations: 140.7 kB / 477.1 MB, free: 3.398 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001387/0.2621, allocations: 498.2 kB / 477.5 MB, free: 2.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.2623, allocations: 37.7 kB / 477.6 MB, free: 2.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005172/0.2628, allocations: 299.9 kB / 477.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/0.2632, allocations: 142 kB / 478 MB, free: 2.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003511/0.2636, allocations: 90.16 kB / 478.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003876/0.264, allocations: 366.8 kB / 478.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000834/0.2649, allocations: 195 kB / 478.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009223/0.2658, allocations: 318.7 kB / 479 MB, free: 1.406 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/0.2678, allocations: 0.5216 MB / 479.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.488e-05/0.2679, allocations: 0 / 479.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002979/0.2709, allocations: 0.7722 MB / 480.3 MB, free: 44 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001141/0.271, allocations: 29.7 kB / 480.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.782e-05/0.2711, allocations: 4 kB / 480.3 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009842/0.2721, allocations: 148.9 kB / 480.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005622/0.2727, allocations: 83.88 kB / 480.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006396/0.2791, allocations: 2.661 MB / 483.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008481/0.28, allocations: 79.38 kB / 483.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/0.2802, allocations: 20 kB / 483.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001041/0.2813, allocations: 333.2 kB / 483.6 MB, free: 12.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008533/0.2822, allocations: 303.2 kB / 483.9 MB, free: 12.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001446/0.2837, allocations: 0.4987 MB / 484.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.327e-06/0.2837, allocations: 3.938 kB / 484.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.002506/0.2862, allocations: 0.6901 MB / 485.1 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.544e-05/0.2864, allocations: 33.7 kB / 485.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.2864, allocations: 4.438 kB / 485.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000597/0.287, allocations: 124.8 kB / 485.3 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/0.2876, allocations: 87.89 kB / 485.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004637/0.2923, allocations: 2.454 MB / 487.8 MB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007636/0.2931, allocations: 67.64 kB / 487.9 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.2933, allocations: 24.05 kB / 487.9 MB, free: 8.012 MB / 366.1 MB 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,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.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 (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0004058/0.2937, allocations: 216.9 kB / 488.1 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.2939, allocations: 51.34 kB / 488.1 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/0.2958, allocations: 0.512 MB / 488.7 MB, free: 7.223 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.327e-05/0.2959, allocations: 4 kB / 488.7 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.2959, allocations: 4 kB / 488.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.965e-05/0.2959, allocations: 0 / 488.7 MB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003419/0.2993, allocations: 1.182 MB / 489.8 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/0.2994, allocations: 3.984 kB / 489.8 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006729/0.3001, allocations: 87.88 kB / 489.9 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002298/0.3004, allocations: 28.84 kB / 490 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/0.3005, allocations: 12 kB / 490 MB, free: 5.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/0.3028, allocations: 1.453 MB / 491.4 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.366e-05/0.3029, allocations: 11.95 kB / 491.4 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/0.3056, allocations: 0.837 MB / 492.3 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004242/0.3061, allocations: 172.4 kB / 492.4 MB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001981/0.3063, allocations: 11.94 kB / 492.5 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006643/0.307, allocations: 43.95 kB / 492.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002638/0.3073, allocations: 31.95 kB / 492.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.662e-05/0.3074, allocations: 12 kB / 492.5 MB, free: 3.082 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009858/0.3084, allocations: 358.8 kB / 492.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.322e-06/0.3085, allocations: 0 / 492.9 MB, free: 2.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001866/0.3103, allocations: 247.4 kB / 493.1 MB, free: 2.492 MB / 366.1 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003695/0.3141, allocations: 1.394 MB / 494.5 MB, free: 1.062 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004186/0.3183, allocations: 1.174 MB / 495.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.3184, allocations: 4.125 kB / 495.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001183/0.3196, allocations: 354.7 kB / 496.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.321, allocations: 119.8 kB / 496.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01635/0.3374, allocations: 5.533 MB / 0.4899 GB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001173/0.3386, allocations: 0.9018 MB / 0.4908 GB, free: 8.707 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006086/0.3392, allocations: 100.3 kB / 0.4909 GB, free: 8.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005323/0.3398, allocations: 195.4 kB / 0.4911 GB, free: 8.414 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3398, allocations: 4 kB / 0.4911 GB, free: 8.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08156/0.4214, allocations: 13.61 MB / 0.5044 GB, free: 10.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.7, allocations: 7.578 kB / 0.5044 GB, free: 10.96 MB / 398.1 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/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)