Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007798/0.0007798, allocations: 94.97 kB / 16.3 MB, free: 5.996 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.0008239/0.0008238, allocations: 185.1 kB / 17.2 MB, free: 5.914 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.239/1.239, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2815/0.2815, allocations: 38.06 MB / 330.3 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003111/0.0003112, allocations: 8 kB / 400 MB, free: 9.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.263, allocations: 59.16 MB / 459.1 MB, free: 30.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.006016/0.2691, allocations: 5.324 MB / 464.4 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004473/0.2736, allocations: 2.589 MB / 467 MB, free: 24.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.2748, allocations: 36.81 kB / 467.1 MB, free: 24.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006822/0.2755, allocations: 105.2 kB / 467.2 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00166/0.2771, allocations: 398.7 kB / 467.6 MB, free: 24.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001417/0.2786, allocations: 358.5 kB / 467.9 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001435/0.28, allocations: 0.5759 MB / 468.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.2813, allocations: 0.6322 MB / 469.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006643/0.282, allocations: 305.4 kB / 469.4 MB, free: 23.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000587/0.2826, allocations: 298.1 kB / 469.7 MB, free: 23.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.2827, allocations: 27.03 kB / 469.7 MB, free: 23.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007175/0.2834, allocations: 240.1 kB / 470 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.2837, allocations: 171 kB / 470.1 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002033/0.2839, allocations: 148 kB / 470.3 MB, free: 22.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.285, allocations: 0.7757 MB / 471.1 MB, free: 22.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.285, allocations: 3.938 kB / 471.1 MB, free: 22.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.285, allocations: 0 / 471.1 MB, free: 22.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.558e-05/0.2851, allocations: 4 kB / 471.1 MB, free: 22.75 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.002284/0.2874, allocations: 0.993 MB / 472.1 MB, free: 22.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.2874, allocations: 8.656 kB / 472.1 MB, free: 22.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001407/0.2888, allocations: 204.8 kB / 472.3 MB, free: 21.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009573/0.2898, allocations: 0.5159 MB / 472.8 MB, free: 21.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.572e-05/0.2899, allocations: 44.86 kB / 472.8 MB, free: 21.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.29, allocations: 63.31 kB / 472.9 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.2913, allocations: 0.7884 MB / 473.7 MB, free: 21.22 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.2914, allocations: 5.891 kB / 473.7 MB, free: 21.22 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.954e-05/0.2915, allocations: 26.5 kB / 473.7 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.117e-05/0.2915, allocations: 36.44 kB / 473.7 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001415/0.2929, allocations: 0.7586 MB / 474.5 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003456/0.2964, allocations: 2.931 MB / 477.4 MB, free: 18.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.2976, allocations: 0.6203 MB / 478.1 MB, free: 18.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-05/0.2977, allocations: 10.89 kB / 478.1 MB, free: 18.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006776/0.2983, allocations: 440.5 kB / 478.5 MB, free: 18.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.144e-06/0.2983, allocations: 0 / 478.5 MB, free: 18.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=58): time 0.003684/0.302, allocations: 2.21 MB / 480.7 MB, free: 16.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.3021, allocations: 110.7 kB / 480.8 MB, free: 16.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005581/0.3027, allocations: 479 kB / 481.3 MB, free: 16.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.432e-05/0.3027, allocations: 36.92 kB / 481.3 MB, free: 16.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.3029, allocations: 311.3 kB / 481.6 MB, free: 16.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.303, allocations: 198.1 kB / 481.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.303, allocations: 9.969 kB / 481.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.928e-05/0.3031, allocations: 373.3 kB / 482.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005394/0.3037, allocations: 292.6 kB / 482.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000572/0.3042, allocations: 423.6 kB / 482.9 MB, free: 15.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.3048, allocations: 366.2 kB / 483.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3048, allocations: 5.188 kB / 483.3 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001877/0.3067, allocations: 1.062 MB / 484.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001722/0.3069, allocations: 1.074 MB / 485.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3069, allocations: 4 kB / 485.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005739/0.3075, allocations: 216 kB / 485.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004256/0.3079, allocations: 115.9 kB / 485.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003017/0.311, allocations: 3.915 MB / 489.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004946/0.3115, allocations: 68.03 kB / 489.7 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.282e-05/0.3115, allocations: 27.98 kB / 489.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-06/0.3115, allocations: 7.938 kB / 489.7 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001343/0.3129, allocations: 0.8791 MB / 490.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3129, allocations: 4 kB / 490.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.3133, allocations: 173 kB / 490.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004112/0.3137, allocations: 124 kB / 490.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/0.316, allocations: 3.655 MB / 494.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/0.3165, allocations: 67.91 kB / 494.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.3166, allocations: 24 kB / 494.7 MB, free: 3.312 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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.0003272/0.3169, allocations: 311 kB / 495 MB, free: 3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.98e-05/0.317, allocations: 59.3 kB / 495 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001375/0.3184, allocations: 0.85 MB / 495.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3184, allocations: 8 kB / 495.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3184, allocations: 0 / 495.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.3184, allocations: 4 kB / 495.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002159/0.3206, allocations: 1.698 MB / 497.6 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3206, allocations: 4 kB / 497.6 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/0.3211, allocations: 139.8 kB / 497.7 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/0.3213, allocations: 69.84 kB / 497.8 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.612e-05/0.3214, allocations: 12 kB / 497.8 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.3231, allocations: 2.705 MB / 0.4888 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.3231, allocations: 4.25 kB / 0.4888 GB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002132/0.3253, allocations: 1.438 MB / 0.4902 GB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002774/0.3256, allocations: 192.2 kB / 0.4904 GB, free: 11.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.3256, allocations: 15.94 kB / 0.4904 GB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004592/0.3261, allocations: 63.92 kB / 0.4904 GB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001195/0.3262, allocations: 52.5 kB / 0.4905 GB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-05/0.3263, allocations: 23.98 kB / 0.4905 GB, free: 11.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004607/0.3268, allocations: 334.8 kB / 0.4908 GB, free: 10.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3268, allocations: 0 / 0.4908 GB, free: 10.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009977/0.3278, allocations: 264 kB / 0.4911 GB, free: 10.61 MB / 366.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 (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.0001768/0.3279, allocations: 123.1 kB / 0.4912 GB, free: 10.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002826/0.3308, allocations: 1.774 MB / 0.4929 GB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.3308, allocations: 4 kB / 0.4929 GB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009233/0.3317, allocations: 0.6181 MB / 0.4935 GB, free: 7.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000568/0.3323, allocations: 115 kB / 0.4936 GB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.3348, allocations: 1.798 MB / 0.4954 GB, free: 6.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.3353, allocations: 0.9625 MB / 0.4963 GB, free: 5.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000419/0.3357, allocations: 156.5 kB / 0.4965 GB, free: 4.887 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001436/0.3359, allocations: 47.42 kB / 0.4965 GB, free: 4.84 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3359, allocations: 0 / 0.4965 GB, free: 4.84 MB / 366.1 MB Notification: Performance of Templates: time 0.01386/0.3498, allocations: 9.069 MB / 0.5054 GB, free: 11.82 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches