Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.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.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|powerPlant.P_generator|powerPlant.frequency.y|powerPlant.fuel.y|powerPlant.primaryControl.y",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 175.8 kB / 17.4 MB, free: 4.418 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.581/1.581, allocations: 205.4 MB / 223.6 MB, free: 8.926 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.000737/0.000737, allocations: 88.97 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1749/0.1749, allocations: 38.08 MB / 358.3 MB, free: 1.715 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003855/0.0003855, allocations: 16 kB / 425.2 MB, free: 37.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3021/0.3025, allocations: 56.31 MB / 481.6 MB, free: 9.605 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4385, allocations: 103.5 MB / 0.5713 GB, free: 14.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.4388, allocations: 95.8 kB / 0.5714 GB, free: 14.7 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05967/0.4984, allocations: 22.52 MB / 0.5934 GB, free: 8.008 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4985, allocations: 0 / 0.5934 GB, free: 8.008 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.129e-05/0.4986, allocations: 23.94 kB / 0.5934 GB, free: 7.984 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002193/0.5008, allocations: 1.042 MB / 0.5944 GB, free: 6.883 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.5008, allocations: 8.031 kB / 0.5944 GB, free: 6.875 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/0.5018, allocations: 175.8 kB / 0.5946 GB, free: 6.703 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.5031, allocations: 0.637 MB / 0.5952 GB, free: 6.027 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.234e-05/0.5032, allocations: 53.67 kB / 0.5953 GB, free: 5.977 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.5033, allocations: 60.38 kB / 0.5953 GB, free: 5.918 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.5046, allocations: 0.7527 MB / 0.5961 GB, free: 5.125 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.514e-05/0.5047, allocations: 192 / 0.5961 GB, free: 5.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.726e-05/0.5048, allocations: 31.92 kB / 0.5961 GB, free: 5.094 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.426e-05/0.5048, allocations: 29.3 kB / 0.5961 GB, free: 5.062 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.5061, allocations: 0.6336 MB / 0.5968 GB, free: 4.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.5104, allocations: 2.946 MB / 0.5996 GB, free: 1.367 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.5117, allocations: 0.703 MB / 0.6003 GB, free: 0.6289 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004677/0.5122, allocations: 247.1 kB / 0.6005 GB, free: 392 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.5123, allocations: 8.375 kB / 0.6006 GB, free: 384 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.5123, allocations: 39 kB / 0.6006 GB, free: 336 kB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 1.904e-06/0.5123, allocations: 0 / 0.6006 GB, free: 336 kB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001616/0.5139, allocations: 0.719 MB / 0.6013 GB, free: 15.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.397e-05/0.514, allocations: 111.2 kB / 0.6014 GB, free: 15.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009304/0.515, allocations: 0.5905 MB / 0.602 GB, free: 14.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.515, allocations: 37.73 kB / 0.602 GB, free: 14.83 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002951/0.5153, allocations: 348.6 kB / 0.6023 GB, free: 14.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.5155, allocations: 177.3 kB / 0.6025 GB, free: 14.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.116e-05/0.5156, allocations: 12 kB / 0.6025 GB, free: 14.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.5158, allocations: 378.8 kB / 0.6029 GB, free: 13.92 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004964/0.5163, allocations: 213 kB / 0.6031 GB, free: 13.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.5168, allocations: 344.5 kB / 0.6034 GB, free: 13.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.5179, allocations: 0.5609 MB / 0.604 GB, free: 12.71 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.5179, allocations: 8 kB / 0.604 GB, free: 12.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001776/0.5197, allocations: 0.8197 MB / 0.6048 GB, free: 11.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.5198, allocations: 194.8 kB / 0.605 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.5199, allocations: 4 kB / 0.605 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004742/0.5203, allocations: 140.8 kB / 0.6051 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005722/0.5209, allocations: 131.8 kB / 0.6052 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002937/0.5239, allocations: 2.268 MB / 0.6074 GB, free: 8.953 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000496/0.5244, allocations: 83.52 kB / 0.6075 GB, free: 8.871 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.667e-05/0.5244, allocations: 24 kB / 0.6075 GB, free: 8.848 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.123e-06/0.5244, allocations: 7.938 kB / 0.6076 GB, free: 8.84 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001253/0.5257, allocations: 0.6159 MB / 0.6082 GB, free: 8.219 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.5257, allocations: 4 kB / 0.6082 GB, free: 8.215 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002747/0.526, allocations: 101.2 kB / 0.6083 GB, free: 8.113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005478/0.5266, allocations: 139.8 kB / 0.6084 GB, free: 7.977 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.5286, allocations: 2.007 MB / 0.6103 GB, free: 5.836 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.529, allocations: 79.34 kB / 0.6104 GB, free: 5.758 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.5291, allocations: 28.05 kB / 0.6104 GB, free: 5.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,powerPlant.throttleCosts.local_reset,powerPlant.hotwellLevel.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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 10} Notification: Performance of prepare postOptimizeDAE: time 0.0004246/0.5295, allocations: 309.3 kB / 0.6107 GB, free: 5.418 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.5297, allocations: 67.16 kB / 0.6108 GB, free: 5.352 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.5309, allocations: 0.5734 MB / 0.6114 GB, free: 4.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.5309, allocations: 4 kB / 0.6114 GB, free: 4.766 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.5309, allocations: 4 kB / 0.6114 GB, free: 4.762 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.5309, allocations: 7.984 kB / 0.6114 GB, free: 4.754 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002097/0.533, allocations: 1.287 MB / 0.6126 GB, free: 3.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5331, allocations: 0 / 0.6126 GB, free: 3.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005669/0.5336, allocations: 123.8 kB / 0.6128 GB, free: 3.289 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.5337, allocations: 0 / 0.6128 GB, free: 3.289 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/0.5337, allocations: 15.98 kB / 0.6128 GB, free: 3.273 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.5337, allocations: 4 kB / 0.6128 GB, free: 3.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5337, allocations: 112 / 0.6128 GB, free: 3.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/0.5353, allocations: 0.9208 MB / 0.6137 GB, free: 2.328 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/0.5356, allocations: 196.1 kB / 0.6139 GB, free: 2.117 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.94e-05/0.5357, allocations: 8 kB / 0.6139 GB, free: 2.109 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003772/0.536, allocations: 52.05 kB / 0.6139 GB, free: 2.059 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/0.5361, allocations: 40.27 kB / 0.614 GB, free: 2.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.5362, allocations: 11.98 kB / 0.614 GB, free: 2.008 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006308/0.5368, allocations: 431 kB / 0.6144 GB, free: 1.594 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5368, allocations: 0 / 0.6144 GB, free: 1.594 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009114/0.5377, allocations: 275.2 kB / 0.6146 GB, free: 1.324 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (powerPlant.rotor.phi,powerPlant.rotor.w,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 49 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001781/0.5379, allocations: 119.1 kB / 0.6148 GB, free: 1.199 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.5399, allocations: 1.1 MB / 0.6158 GB, free: 80 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5399, allocations: 0 / 0.6158 GB, free: 80 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005129/0.5405, allocations: 262.3 kB / 0.6161 GB, free: 15.82 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007742/0.5412, allocations: 131.7 kB / 0.6162 GB, free: 15.69 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.5442, allocations: 1.807 MB / 0.618 GB, free: 13.84 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005709/0.5448, allocations: 0.946 MB / 0.6189 GB, free: 12.87 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0004693/0.5452, allocations: 112.6 kB / 0.619 GB, free: 12.76 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.5454, allocations: 43.44 kB / 0.619 GB, free: 12.72 MB / 458.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5454, allocations: 0 / 0.619 GB, free: 12.72 MB / 458.7 MB Notification: Performance of Templates: time 0.01476/0.5602, allocations: 7.504 MB / 0.6264 GB, free: 5.223 MB / 458.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches