Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.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: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hydroPlant.P_control|hydroPlant.P_generator|hydroPlant.primaryControl.y|hydroPlant.reservoirLevel.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009867/0.0009868, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008518/0.0008517, allocations: 88.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1656/0.1656, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.16e-05/1.161e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09335/0.09337, allocations: 56.33 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.4308, allocations: 101.2 MB / 0.5548 GB, free: 9.723 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4311, allocations: 84.7 kB / 0.5549 GB, free: 9.641 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05011/0.4812, allocations: 19.16 MB / 0.5736 GB, free: 6.336 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4812, allocations: 0 / 0.5736 GB, free: 6.336 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.938e-05/0.4813, allocations: 19.98 kB / 0.5736 GB, free: 6.316 MB / 411.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.001517/0.4828, allocations: 0.8618 MB / 0.5745 GB, free: 5.398 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.4829, allocations: 8.031 kB / 0.5745 GB, free: 5.391 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009327/0.4838, allocations: 159 kB / 0.5746 GB, free: 5.234 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008149/0.4846, allocations: 0.5039 MB / 0.5751 GB, free: 4.691 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.4847, allocations: 19.94 kB / 0.5751 GB, free: 4.672 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.125e-05/0.4848, allocations: 39.84 kB / 0.5752 GB, free: 4.633 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007412/0.4855, allocations: 406.5 kB / 0.5756 GB, free: 4.234 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008871/0.4864, allocations: 0.5537 MB / 0.5761 GB, free: 3.645 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.4865, allocations: 3.938 kB / 0.5761 GB, free: 3.641 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.4865, allocations: 11.95 kB / 0.5761 GB, free: 3.629 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.104e-05/0.4866, allocations: 29.31 kB / 0.5761 GB, free: 3.598 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00368/0.4903, allocations: 2.672 MB / 0.5787 GB, free: 0.793 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000911/0.4912, allocations: 0.5184 MB / 0.5793 GB, free: 244 kB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/0.4915, allocations: 162.3 kB / 0.5794 GB, free: 76 kB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.815e-05/0.4915, allocations: 4.328 kB / 0.5794 GB, free: 72 kB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/0.4919, allocations: 242.9 kB / 0.5796 GB, free: 15.81 MB / 427.1 MB Notification: Performance of pre-optimization done (n=42): time 2.465e-06/0.4919, allocations: 4 kB / 0.5796 GB, free: 15.81 MB / 427.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007488/0.4927, allocations: 379.7 kB / 0.58 GB, free: 15.43 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.777e-05/0.4928, allocations: 144.4 kB / 0.5801 GB, free: 15.26 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003946/0.4932, allocations: 349.2 kB / 0.5805 GB, free: 14.91 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.4932, allocations: 25.7 kB / 0.5805 GB, free: 14.88 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.4935, allocations: 304.4 kB / 0.5808 GB, free: 14.58 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.4936, allocations: 142 kB / 0.5809 GB, free: 14.44 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.255e-05/0.4936, allocations: 4 kB / 0.5809 GB, free: 14.43 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4938, allocations: 358.8 kB / 0.5813 GB, free: 14.07 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.494, allocations: 133.1 kB / 0.5814 GB, free: 13.95 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.4943, allocations: 258.1 kB / 0.5816 GB, free: 13.64 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/0.4946, allocations: 169.2 kB / 0.5818 GB, free: 13.47 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.4946, allocations: 448 / 0.5818 GB, free: 13.47 MB / 427.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001126/0.4958, allocations: 0.5815 MB / 0.5824 GB, free: 12.88 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005242/0.4963, allocations: 1.34 MB / 0.5837 GB, free: 11.43 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4963, allocations: 8 kB / 0.5837 GB, free: 11.43 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004288/0.4968, allocations: 138.5 kB / 0.5838 GB, free: 11.29 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003917/0.4972, allocations: 99.81 kB / 0.5839 GB, free: 11.19 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006949/0.4979, allocations: 0.7748 MB / 0.5847 GB, free: 10.39 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.4984, allocations: 67.55 kB / 0.5847 GB, free: 10.32 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.397e-05/0.4984, allocations: 20 kB / 0.5848 GB, free: 10.3 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/0.4985, allocations: 1.094 kB / 0.5848 GB, free: 10.3 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008737/0.4993, allocations: 488 kB / 0.5852 GB, free: 9.824 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.4994, allocations: 4.438 kB / 0.5852 GB, free: 9.82 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000313/0.4997, allocations: 120.8 kB / 0.5853 GB, free: 9.699 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000368/0.5001, allocations: 95.77 kB / 0.5854 GB, free: 9.605 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002337/0.5024, allocations: 2.185 MB / 0.5876 GB, free: 7.309 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005101/0.5029, allocations: 63.64 kB / 0.5876 GB, free: 7.246 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.503, allocations: 19.94 kB / 0.5877 GB, free: 7.227 MB / 427.1 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 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count,hydroPlant.reservoirLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.5032, allocations: 128.8 kB / 0.5878 GB, free: 7.094 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.5033, allocations: 51.39 kB / 0.5878 GB, free: 7.043 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000884/0.5042, allocations: 395.1 kB / 0.5882 GB, free: 6.645 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5043, allocations: 8 kB / 0.5882 GB, free: 6.637 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.5043, allocations: 4 kB / 0.5882 GB, free: 6.633 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-06/0.5043, allocations: 0 / 0.5882 GB, free: 6.633 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.506, allocations: 0.9717 MB / 0.5892 GB, free: 5.613 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.506, allocations: 4 kB / 0.5892 GB, free: 5.609 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006103/0.5066, allocations: 95.88 kB / 0.5893 GB, free: 5.516 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001265/0.5067, allocations: 32.78 kB / 0.5893 GB, free: 5.48 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.679e-05/0.5068, allocations: 4 kB / 0.5893 GB, free: 5.477 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009682/0.5078, allocations: 1.303 MB / 0.5906 GB, free: 4.062 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5078, allocations: 4.031 kB / 0.5906 GB, free: 4.059 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009796/0.5088, allocations: 0.714 MB / 0.5913 GB, free: 3.309 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000198/0.509, allocations: 168.4 kB / 0.5914 GB, free: 3.125 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.249e-05/0.509, allocations: 7.984 kB / 0.5914 GB, free: 3.117 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/0.5095, allocations: 43.95 kB / 0.5915 GB, free: 3.074 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.5096, allocations: 43.72 kB / 0.5915 GB, free: 3.031 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.697e-05/0.5096, allocations: 8 kB / 0.5915 GB, free: 3.023 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0003125/0.5099, allocations: 271 kB / 0.5918 GB, free: 2.762 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5099, allocations: 0 / 0.5918 GB, free: 2.762 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.0008956/0.5108, allocations: 235.3 kB / 0.592 GB, free: 2.531 MB / 427.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001868/0.511, allocations: 125 kB / 0.5921 GB, free: 2.398 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.5126, allocations: 0.8588 MB / 0.593 GB, free: 1.504 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5126, allocations: 0 / 0.593 GB, free: 1.504 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.513, allocations: 294.1 kB / 0.5932 GB, free: 1.207 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005775/0.5136, allocations: 109.2 kB / 0.5933 GB, free: 1.105 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001702/0.5153, allocations: 0.897 MB / 0.5942 GB, free: 180 kB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005635/0.5159, allocations: 0.9143 MB / 0.5951 GB, free: 15.23 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0005044/0.5164, allocations: 124.1 kB / 0.5952 GB, free: 15.11 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.5165, allocations: 31.44 kB / 0.5953 GB, free: 15.08 MB / 443.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5165, allocations: 0 / 0.5953 GB, free: 15.08 MB / 443.1 MB Notification: Performance of Templates: time 0.01258/0.5291, allocations: 7.145 MB / 0.6022 GB, free: 7.941 MB / 443.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches