Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.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.PowerPlantTest3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.throttling.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001634/0.001634, 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.585/1.585, 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.000928/0.000928, allocations: 89.17 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.17/0.17, allocations: 38 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.313e-05/1.316e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09328/0.09331, allocations: 56.34 MB / 466.9 MB, free: 6.562 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3488/0.4422, allocations: 104.7 MB / 0.5582 GB, free: 6.199 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.4425, allocations: 87.94 kB / 0.5583 GB, free: 6.113 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06989/0.5124, allocations: 28.09 MB / 0.5857 GB, free: 9.801 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5124, allocations: 0 / 0.5857 GB, free: 9.801 MB / 427.1 MB Notification: Performance of Transformations before backend: time 6.669e-05/0.5125, allocations: 20 kB / 0.5858 GB, free: 9.781 MB / 427.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001806/0.5143, allocations: 0.9989 MB / 0.5867 GB, free: 8.734 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.5144, allocations: 8.031 kB / 0.5867 GB, free: 8.727 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001299/0.5157, allocations: 214.6 kB / 0.5869 GB, free: 8.516 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.5167, allocations: 0.6128 MB / 0.5875 GB, free: 7.859 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.5168, allocations: 20 kB / 0.5876 GB, free: 7.84 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.5169, allocations: 47.98 kB / 0.5876 GB, free: 7.793 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009764/0.5179, allocations: 0.5617 MB / 0.5882 GB, free: 7.234 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.519, allocations: 0.7271 MB / 0.5889 GB, free: 6.465 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.761e-05/0.519, allocations: 15.78 kB / 0.5889 GB, free: 6.449 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.712e-05/0.5191, allocations: 0 / 0.5889 GB, free: 6.449 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.807e-05/0.5192, allocations: 41.3 kB / 0.5889 GB, free: 6.41 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.5236, allocations: 3.142 MB / 0.592 GB, free: 3.156 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.5247, allocations: 0.8383 MB / 0.5928 GB, free: 2.238 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003311/0.5251, allocations: 253.7 kB / 0.593 GB, free: 1.988 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.939e-05/0.5251, allocations: 4.562 kB / 0.5931 GB, free: 1.984 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.5252, allocations: 47.11 kB / 0.5931 GB, free: 1.93 MB / 427.1 MB Notification: Performance of pre-optimization done (n=59): time 2.475e-06/0.5252, allocations: 0 / 0.5931 GB, free: 1.93 MB / 427.1 MB Notification: Performance of matching and sorting (n=63): time 0.002876/0.5281, allocations: 1.824 MB / 0.5949 GB, free: 20 kB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.565e-05/0.5281, allocations: 115.3 kB / 0.595 GB, free: 15.88 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004695/0.5286, allocations: 406.2 kB / 0.5954 GB, free: 15.48 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 4.215e-05/0.5287, allocations: 25.7 kB / 0.5954 GB, free: 15.45 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.5289, allocations: 371.9 kB / 0.5958 GB, free: 15.08 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.5291, allocations: 216.9 kB / 0.596 GB, free: 14.86 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.5291, allocations: 0 / 0.596 GB, free: 14.86 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5293, allocations: 378.8 kB / 0.5963 GB, free: 14.48 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003079/0.5296, allocations: 205.5 kB / 0.5965 GB, free: 14.29 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.53, allocations: 342.2 kB / 0.5968 GB, free: 13.89 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.5304, allocations: 262 kB / 0.5971 GB, free: 13.64 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.5304, allocations: 0 / 0.5971 GB, free: 13.64 MB / 443.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001072/0.5315, allocations: 0.6861 MB / 0.5978 GB, free: 12.94 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000492/0.532, allocations: 1.492 MB / 0.5992 GB, free: 11.33 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/0.532, allocations: 4 kB / 0.5992 GB, free: 11.33 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.5322, allocations: 60.81 kB / 0.5993 GB, free: 11.27 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000729/0.533, allocations: 175.8 kB / 0.5995 GB, free: 11.09 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001397/0.5344, allocations: 1.548 MB / 0.601 GB, free: 9.43 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000527/0.5349, allocations: 48.02 kB / 0.601 GB, free: 9.383 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.577e-05/0.535, allocations: 23.98 kB / 0.601 GB, free: 9.359 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.316e-06/0.535, allocations: 4.938 kB / 0.601 GB, free: 9.355 MB / 443.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009432/0.536, allocations: 0.5721 MB / 0.6016 GB, free: 8.777 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.536, allocations: 4 kB / 0.6016 GB, free: 8.773 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/0.5362, allocations: 73.38 kB / 0.6017 GB, free: 8.699 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/0.5369, allocations: 175.8 kB / 0.6018 GB, free: 8.527 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001298/0.5382, allocations: 1.541 MB / 0.6033 GB, free: 6.871 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.5387, allocations: 43.94 kB / 0.6034 GB, free: 6.828 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-05/0.5388, allocations: 32.06 kB / 0.6034 GB, free: 6.797 MB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001693/0.5389, allocations: 116.8 kB / 0.6035 GB, free: 6.676 MB / 443.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.5391, allocations: 67.16 kB / 0.6036 GB, free: 6.609 MB / 443.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001179/0.5402, allocations: 0.6277 MB / 0.6042 GB, free: 5.969 MB / 443.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.5403, allocations: 7.984 kB / 0.6042 GB, free: 5.961 MB / 443.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.5403, allocations: 8 kB / 0.6042 GB, free: 5.953 MB / 443.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.5403, allocations: 0 / 0.6042 GB, free: 5.953 MB / 443.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003336/0.5436, allocations: 1.923 MB / 0.6061 GB, free: 3.906 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.5436, allocations: 7.953 kB / 0.6061 GB, free: 3.898 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005669/0.5442, allocations: 139.9 kB / 0.6062 GB, free: 3.762 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002054/0.5444, allocations: 60.75 kB / 0.6063 GB, free: 3.699 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-05/0.5445, allocations: 12.14 kB / 0.6063 GB, free: 3.688 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/0.5457, allocations: 1.525 MB / 0.6078 GB, free: 2.047 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.5458, allocations: 11.94 kB / 0.6078 GB, free: 2.035 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.5474, allocations: 1.432 MB / 0.6092 GB, free: 360 kB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002453/0.5477, allocations: 200.1 kB / 0.6094 GB, free: 140 kB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.943e-05/0.5477, allocations: 11.98 kB / 0.6094 GB, free: 128 kB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004593/0.5482, allocations: 51.89 kB / 0.6095 GB, free: 76 kB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.5483, allocations: 71.81 kB / 0.6095 GB, free: 4 kB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.439e-05/0.5484, allocations: 24.05 kB / 0.6095 GB, free: 15.98 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003499/0.5487, allocations: 306.9 kB / 0.6098 GB, free: 15.68 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5488, allocations: 0 / 0.6098 GB, free: 15.68 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.001008/0.5498, allocations: 235.9 kB / 0.6101 GB, free: 15.45 MB / 459.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 7 (powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.55, allocations: 116.9 kB / 0.6102 GB, free: 15.33 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001579/0.5515, allocations: 1.077 MB / 0.6112 GB, free: 14.23 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.5516, allocations: 2 kB / 0.6112 GB, free: 14.23 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006366/0.5522, allocations: 451.1 kB / 0.6117 GB, free: 13.78 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007177/0.5529, allocations: 130 kB / 0.6118 GB, free: 13.66 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.5552, allocations: 1.273 MB / 0.613 GB, free: 12.27 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006152/0.5559, allocations: 1.006 MB / 0.614 GB, free: 11.24 MB / 459.1 MB Notification: Performance of simCode: alias equations: time 0.0006934/0.5566, allocations: 179.1 kB / 0.6142 GB, free: 11.06 MB / 459.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.5567, allocations: 43.42 kB / 0.6142 GB, free: 11.02 MB / 459.1 MB Notification: Performance of SimCode: time 2.354e-06/0.5567, allocations: 0 / 0.6142 GB, free: 11.02 MB / 459.1 MB Notification: Performance of Templates: time 0.0138/0.5705, allocations: 8.038 MB / 0.6221 GB, free: 2.984 MB / 459.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches