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.0009903/0.0009903, allocations: 176.2 kB / 17.39 MB, free: 4.305 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.474/1.474, allocations: 205.4 MB / 223.5 MB, free: 9.023 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.0008627/0.0008626, allocations: 88.98 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2159/0.2159, allocations: 38.08 MB / 358.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.0003597, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2704, allocations: 56.31 MB / 481.6 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.4026, allocations: 102 MB / 0.5699 GB, free: 208 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.4029, allocations: 91.81 kB / 0.57 GB, free: 120 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05145/0.4543, allocations: 19.41 MB / 0.589 GB, free: 12.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4544, allocations: 0 / 0.589 GB, free: 12.54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.494e-05/0.4544, allocations: 16 kB / 0.589 GB, free: 12.52 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.002063/0.4565, allocations: 0.9436 MB / 0.5899 GB, free: 11.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.4566, allocations: 15.97 kB / 0.5899 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00102/0.4576, allocations: 160 kB / 0.5901 GB, free: 11.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.4586, allocations: 0.553 MB / 0.5906 GB, free: 10.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.4587, allocations: 37.38 kB / 0.5906 GB, free: 10.72 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4588, allocations: 52.28 kB / 0.5907 GB, free: 10.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.4601, allocations: 0.687 MB / 0.5914 GB, free: 9.941 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.82e-05/0.4601, allocations: 4.188 kB / 0.5914 GB, free: 9.938 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.548e-05/0.4602, allocations: 19.94 kB / 0.5914 GB, free: 9.918 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.92e-05/0.4602, allocations: 28.98 kB / 0.5914 GB, free: 9.891 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.4615, allocations: 0.6206 MB / 0.592 GB, free: 9.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004008/0.4656, allocations: 2.751 MB / 0.5947 GB, free: 6.375 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.4669, allocations: 0.6247 MB / 0.5953 GB, free: 5.715 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004727/0.4673, allocations: 226.2 kB / 0.5955 GB, free: 5.488 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.4674, allocations: 8.266 kB / 0.5955 GB, free: 5.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006116/0.468, allocations: 315.4 kB / 0.5958 GB, free: 5.152 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 2.615e-06/0.468, allocations: 0 / 0.5958 GB, free: 5.152 MB / 426.7 MB Notification: Performance of matching and sorting (n=41): time 0.001848/0.4699, allocations: 0.788 MB / 0.5966 GB, free: 4.336 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.942e-05/0.47, allocations: 136.5 kB / 0.5967 GB, free: 4.172 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000735/0.4707, allocations: 0.5019 MB / 0.5972 GB, free: 3.66 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.362e-05/0.4708, allocations: 33.7 kB / 0.5973 GB, free: 3.621 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.471, allocations: 304 kB / 0.5976 GB, free: 3.316 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.4712, allocations: 145.9 kB / 0.5977 GB, free: 3.172 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.259e-05/0.4712, allocations: 8 kB / 0.5977 GB, free: 3.164 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.4714, allocations: 370.8 kB / 0.5981 GB, free: 2.793 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004536/0.4718, allocations: 197 kB / 0.5982 GB, free: 2.602 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005382/0.4724, allocations: 323.2 kB / 0.5986 GB, free: 2.234 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.4734, allocations: 0.5373 MB / 0.5991 GB, free: 1.645 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4734, allocations: 0 / 0.5991 GB, free: 1.645 MB / 426.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001719/0.4751, allocations: 0.8074 MB / 0.5999 GB, free: 0.8203 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.4753, allocations: 225.7 kB / 0.6001 GB, free: 0.5469 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4753, allocations: 4 kB / 0.6001 GB, free: 0.543 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005246/0.4759, allocations: 168.7 kB / 0.6002 GB, free: 384 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.4762, allocations: 91.88 kB / 0.6003 GB, free: 292 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003134/0.4794, allocations: 2.475 MB / 0.6028 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004745/0.4799, allocations: 91.44 kB / 0.6028 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-05/0.4799, allocations: 20 kB / 0.6029 GB, free: 13.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-06/0.4799, allocations: 4 kB / 0.6029 GB, free: 13.57 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001279/0.4812, allocations: 0.6388 MB / 0.6035 GB, free: 12.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.4812, allocations: 4 kB / 0.6035 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003378/0.4816, allocations: 128.4 kB / 0.6036 GB, free: 12.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.4819, allocations: 96.14 kB / 0.6037 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002362/0.4843, allocations: 2.237 MB / 0.6059 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000451/0.4848, allocations: 75.55 kB / 0.606 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.922e-05/0.4848, allocations: 20 kB / 0.606 GB, free: 10.23 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.000373/0.4852, allocations: 288.9 kB / 0.6063 GB, free: 9.938 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.326e-05/0.4853, allocations: 55.33 kB / 0.6063 GB, free: 9.883 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/0.4865, allocations: 0.5304 MB / 0.6068 GB, free: 9.34 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.4865, allocations: 7.984 kB / 0.6068 GB, free: 9.332 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4865, allocations: 7.938 kB / 0.6068 GB, free: 9.324 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.794e-06/0.4865, allocations: 3.984 kB / 0.6068 GB, free: 9.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001886/0.4884, allocations: 1.175 MB / 0.608 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.4884, allocations: 0 / 0.608 GB, free: 8.086 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004339/0.4889, allocations: 95.88 kB / 0.6081 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001021/0.489, allocations: 28.84 kB / 0.6081 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.694e-05/0.489, allocations: 15.94 kB / 0.6081 GB, free: 7.945 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009692/0.49, allocations: 1.347 MB / 0.6094 GB, free: 6.461 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.49, allocations: 4 kB / 0.6094 GB, free: 6.457 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.4916, allocations: 0.8804 MB / 0.6103 GB, free: 5.551 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.4918, allocations: 172.3 kB / 0.6105 GB, free: 5.363 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.21e-05/0.4919, allocations: 15.92 kB / 0.6105 GB, free: 5.348 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000391/0.4923, allocations: 51.95 kB / 0.6105 GB, free: 5.297 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.4924, allocations: 39.88 kB / 0.6106 GB, free: 5.258 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.4924, allocations: 12 kB / 0.6106 GB, free: 5.246 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000537/0.493, allocations: 366.8 kB / 0.6109 GB, free: 4.891 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.493, allocations: 0 / 0.6109 GB, free: 4.891 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008835/0.4939, allocations: 263.4 kB / 0.6112 GB, free: 4.633 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.000183/0.4941, allocations: 123.3 kB / 0.6113 GB, free: 4.504 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002075/0.4962, allocations: 1.149 MB / 0.6124 GB, free: 3.305 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4962, allocations: 0 / 0.6124 GB, free: 3.305 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006145/0.4968, allocations: 358.9 kB / 0.6128 GB, free: 2.941 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007083/0.4975, allocations: 102.8 kB / 0.6129 GB, free: 2.844 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.4999, allocations: 1.483 MB / 0.6143 GB, free: 1.32 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005469/0.5004, allocations: 0.8945 MB / 0.6152 GB, free: 408 kB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003672/0.5008, allocations: 100.3 kB / 0.6153 GB, free: 308 kB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.5009, allocations: 39.42 kB / 0.6153 GB, free: 268 kB / 442.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5009, allocations: 0 / 0.6153 GB, free: 268 kB / 442.7 MB Notification: Performance of Templates: time 0.01399/0.5149, allocations: 7.487 MB / 0.6226 GB, free: 8.785 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/jenkins1/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