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.0009992/0.0009992, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.301/1.301, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0008693/0.0008693, allocations: 87.91 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1586/0.1586, allocations: 38.06 MB / 357.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.0002841, allocations: 8 kB / 424 MB, free: 37.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2339, allocations: 56.32 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.3593, allocations: 102 MB / 0.5686 GB, free: 460 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.3596, allocations: 87.95 kB / 0.5687 GB, free: 372 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04779/0.4074, allocations: 19.37 MB / 0.5876 GB, free: 12.82 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4074, allocations: 0 / 0.5876 GB, free: 12.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.688e-05/0.4075, allocations: 16 kB / 0.5877 GB, free: 12.81 MB / 426.7 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.00174/0.4093, allocations: 0.959 MB / 0.5886 GB, free: 11.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.4093, allocations: 11.98 kB / 0.5886 GB, free: 11.79 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008953/0.4102, allocations: 163 kB / 0.5888 GB, free: 11.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009669/0.4112, allocations: 0.5286 MB / 0.5893 GB, free: 11.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.4112, allocations: 41 kB / 0.5893 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.511e-05/0.4113, allocations: 51.98 kB / 0.5894 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001119/0.4124, allocations: 0.6709 MB / 0.59 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.572e-05/0.4125, allocations: 7.906 kB / 0.59 GB, free: 10.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.247e-05/0.4125, allocations: 16 kB / 0.59 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.351e-05/0.4126, allocations: 36.94 kB / 0.5901 GB, free: 10.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001171/0.4138, allocations: 0.6167 MB / 0.5907 GB, free: 9.578 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00344/0.4172, allocations: 2.755 MB / 0.5934 GB, free: 6.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.4186, allocations: 0.6549 MB / 0.594 GB, free: 5.992 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.4186, allocations: 12.25 kB / 0.594 GB, free: 5.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005819/0.4192, allocations: 311.4 kB / 0.5943 GB, free: 5.656 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.465e-06/0.4192, allocations: 0 / 0.5943 GB, free: 5.656 MB / 426.7 MB Notification: Performance of matching and sorting (n=41): time 0.001701/0.4209, allocations: 0.7931 MB / 0.5951 GB, free: 4.836 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.953e-05/0.421, allocations: 136.5 kB / 0.5952 GB, free: 4.672 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006164/0.4216, allocations: 445.2 kB / 0.5956 GB, free: 4.227 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.4217, allocations: 37.7 kB / 0.5957 GB, free: 4.184 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.4219, allocations: 308 kB / 0.596 GB, free: 3.879 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.422, allocations: 142 kB / 0.5961 GB, free: 3.738 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.37e-05/0.4221, allocations: 12 kB / 0.5961 GB, free: 3.727 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4222, allocations: 362.8 kB / 0.5965 GB, free: 3.363 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004386/0.4226, allocations: 197 kB / 0.5967 GB, free: 3.172 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005316/0.4232, allocations: 319.2 kB / 0.597 GB, free: 2.809 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004942/0.4237, allocations: 256.7 kB / 0.5972 GB, free: 2.555 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.4237, allocations: 7.938 kB / 0.5972 GB, free: 2.547 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001572/0.4253, allocations: 0.784 MB / 0.598 GB, free: 1.746 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004417/0.4257, allocations: 1.329 MB / 0.5993 GB, free: 316 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.4258, allocations: 4 kB / 0.5993 GB, free: 312 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005327/0.4263, allocations: 164.8 kB / 0.5994 GB, free: 144 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003814/0.4267, allocations: 99.81 kB / 0.5995 GB, free: 44 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008449/0.4276, allocations: 0.8102 MB / 0.6003 GB, free: 15.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005392/0.4281, allocations: 83.55 kB / 0.6004 GB, free: 15.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-05/0.4282, allocations: 16 kB / 0.6004 GB, free: 15.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.4282, allocations: 4 kB / 0.6004 GB, free: 15.11 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001284/0.4295, allocations: 0.6346 MB / 0.601 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.4295, allocations: 4 kB / 0.601 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.4298, allocations: 133 kB / 0.6012 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003561/0.4302, allocations: 103.8 kB / 0.6013 GB, free: 14.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002316/0.4325, allocations: 2.264 MB / 0.6035 GB, free: 11.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.433, allocations: 75.61 kB / 0.6036 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.4331, allocations: 23.98 kB / 0.6036 GB, free: 11.73 MB / 442.7 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,$whenCondition1,$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.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 (45): * Single equations (assignments): 43 * 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.00036/0.4335, allocations: 288.9 kB / 0.6038 GB, free: 11.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.889e-05/0.4335, allocations: 51.34 kB / 0.6039 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.4347, allocations: 0.5305 MB / 0.6044 GB, free: 10.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4347, allocations: 7.938 kB / 0.6044 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4347, allocations: 4 kB / 0.6044 GB, free: 10.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.4347, allocations: 7.969 kB / 0.6044 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001768/0.4365, allocations: 1.179 MB / 0.6056 GB, free: 9.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.4365, allocations: 0 / 0.6056 GB, free: 9.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.437, allocations: 99.88 kB / 0.6057 GB, free: 9.492 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001036/0.4371, allocations: 36.8 kB / 0.6057 GB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.2e-05/0.4371, allocations: 7.938 kB / 0.6057 GB, free: 9.445 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008873/0.438, allocations: 1.367 MB / 0.6071 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.438, allocations: 0 / 0.6071 GB, free: 7.938 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001534/0.4396, allocations: 0.895 MB / 0.6079 GB, free: 7.004 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.4398, allocations: 172.4 kB / 0.6081 GB, free: 6.816 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.392e-05/0.4399, allocations: 15.98 kB / 0.6081 GB, free: 6.801 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004031/0.4403, allocations: 43.95 kB / 0.6082 GB, free: 6.758 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.4404, allocations: 39.84 kB / 0.6082 GB, free: 6.719 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.4404, allocations: 19.98 kB / 0.6082 GB, free: 6.699 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005088/0.4409, allocations: 358.8 kB / 0.6086 GB, free: 6.352 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.441, allocations: 0 / 0.6086 GB, free: 6.352 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008159/0.4418, allocations: 251.5 kB / 0.6088 GB, free: 6.105 MB / 442.7 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 (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.0001749/0.442, allocations: 119.5 kB / 0.6089 GB, free: 5.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.4438, allocations: 1.002 MB / 0.6099 GB, free: 4.941 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.4439, allocations: 3.938 kB / 0.6099 GB, free: 4.938 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005883/0.4444, allocations: 358.8 kB / 0.6102 GB, free: 4.574 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005332/0.445, allocations: 110.3 kB / 0.6103 GB, free: 4.469 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002083/0.4471, allocations: 1.467 MB / 0.6118 GB, free: 2.961 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004661/0.4476, allocations: 0.9099 MB / 0.6127 GB, free: 2.023 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003533/0.4479, allocations: 104.3 kB / 0.6128 GB, free: 1.922 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.4481, allocations: 39.44 kB / 0.6128 GB, free: 1.883 MB / 442.7 MB Notification: Performance of SimCode: time 8.41e-07/0.4481, allocations: 0 / 0.6128 GB, free: 1.883 MB / 442.7 MB Notification: Performance of Templates: time 0.01202/0.4601, allocations: 7.032 MB / 0.6197 GB, free: 10.86 MB / 458.7 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