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.001647/0.001647, allocations: 176.2 kB / 8.348 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.592/1.592, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.0009353/0.0009353, allocations: 90.62 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.1912/0.1912, allocations: 37.99 MB / 348 MB, free: 7.77 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.362e-05/2.363e-05, allocations: 4 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1442, allocations: 56.33 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4112/0.5554, allocations: 102.6 MB / 0.5562 GB, free: 8.273 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.5558, allocations: 87.95 kB / 0.5563 GB, free: 8.188 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05624/0.612, allocations: 22.25 MB / 0.578 GB, free: 1.777 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.6121, allocations: 0 / 0.578 GB, free: 1.777 MB / 411.1 MB Notification: Performance of Transformations before backend: time 6.465e-05/0.6121, allocations: 20 kB / 0.578 GB, free: 1.758 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001658/0.6138, allocations: 0.9365 MB / 0.5789 GB, free: 0.7734 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.6139, allocations: 12.03 kB / 0.5789 GB, free: 0.7617 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009285/0.6148, allocations: 174.8 kB / 0.5791 GB, free: 0.5898 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001013/0.6158, allocations: 0.5856 MB / 0.5797 GB, free: 15.96 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/0.6159, allocations: 20 kB / 0.5797 GB, free: 15.94 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.813e-05/0.616, allocations: 43.91 kB / 0.5797 GB, free: 15.9 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007818/0.6167, allocations: 462.5 kB / 0.5802 GB, free: 15.45 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009601/0.6177, allocations: 0.6248 MB / 0.5808 GB, free: 14.78 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.6178, allocations: 0 / 0.5808 GB, free: 14.78 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.6178, allocations: 3.953 kB / 0.5808 GB, free: 14.77 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.437e-05/0.6179, allocations: 29.3 kB / 0.5808 GB, free: 14.75 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.6219, allocations: 2.846 MB / 0.5836 GB, free: 11.8 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009665/0.6229, allocations: 0.601 MB / 0.5842 GB, free: 11.16 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.6231, allocations: 175.1 kB / 0.5844 GB, free: 10.98 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.6232, allocations: 12.44 kB / 0.5844 GB, free: 10.97 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.6233, allocations: 46.94 kB / 0.5844 GB, free: 10.91 MB / 427.1 MB Notification: Performance of pre-optimization done (n=50): time 2.104e-06/0.6233, allocations: 0 / 0.5844 GB, free: 10.91 MB / 427.1 MB Notification: Performance of matching and sorting (n=50): time 0.0007476/0.624, allocations: 421.4 kB / 0.5848 GB, free: 10.5 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.6241, allocations: 111.2 kB / 0.5849 GB, free: 10.37 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/0.6245, allocations: 386.9 kB / 0.5853 GB, free: 9.984 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.6246, allocations: 29.64 kB / 0.5853 GB, free: 9.949 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.6248, allocations: 360 kB / 0.5857 GB, free: 9.59 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.625, allocations: 173.4 kB / 0.5858 GB, free: 9.418 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.386e-05/0.625, allocations: 4.031 kB / 0.5858 GB, free: 9.414 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.6252, allocations: 366.9 kB / 0.5862 GB, free: 9.047 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.6254, allocations: 173.4 kB / 0.5863 GB, free: 8.875 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.6258, allocations: 285.4 kB / 0.5866 GB, free: 8.547 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003048/0.6261, allocations: 202.1 kB / 0.5868 GB, free: 8.348 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.6261, allocations: 0 / 0.5868 GB, free: 8.348 MB / 427.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001181/0.6273, allocations: 0.6432 MB / 0.5874 GB, free: 7.695 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005192/0.6278, allocations: 1.401 MB / 0.5888 GB, free: 6.184 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.6278, allocations: 11.94 kB / 0.5888 GB, free: 6.172 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003735/0.6282, allocations: 104.8 kB / 0.5889 GB, free: 6.066 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005761/0.6288, allocations: 139.8 kB / 0.589 GB, free: 5.93 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005805/0.6294, allocations: 0.7124 MB / 0.5897 GB, free: 5.191 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004305/0.6298, allocations: 59.55 kB / 0.5898 GB, free: 5.133 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.234e-05/0.6299, allocations: 32.06 kB / 0.5898 GB, free: 5.102 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.6299, allocations: 5.094 kB / 0.5898 GB, free: 5.098 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008779/0.6308, allocations: 0.4943 MB / 0.5903 GB, free: 4.602 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.6308, allocations: 8.031 kB / 0.5903 GB, free: 4.594 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002501/0.6311, allocations: 92.81 kB / 0.5904 GB, free: 4.5 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.6316, allocations: 139.7 kB / 0.5905 GB, free: 4.363 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002442/0.634, allocations: 1.975 MB / 0.5925 GB, free: 2.273 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.6347, allocations: 47.66 kB / 0.5925 GB, free: 2.227 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.6348, allocations: 23.98 kB / 0.5925 GB, free: 2.203 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: powerPlant.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: 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * 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.0002778/0.6351, allocations: 116.8 kB / 0.5927 GB, free: 2.082 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.6352, allocations: 67.2 kB / 0.5927 GB, free: 2.016 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.6365, allocations: 470.2 kB / 0.5932 GB, free: 1.543 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.6365, allocations: 4 kB / 0.5932 GB, free: 1.539 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.6365, allocations: 0 / 0.5932 GB, free: 1.539 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.6365, allocations: 0 / 0.5932 GB, free: 1.539 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002229/0.6388, allocations: 1.096 MB / 0.5942 GB, free: 408 kB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.6388, allocations: 3.953 kB / 0.5942 GB, free: 404 kB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008094/0.6396, allocations: 119.9 kB / 0.5944 GB, free: 284 kB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.6396, allocations: 3.984 kB / 0.5944 GB, free: 280 kB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/0.6397, allocations: 8 kB / 0.5944 GB, free: 272 kB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.6397, allocations: 4 kB / 0.5944 GB, free: 268 kB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.6397, allocations: 0 / 0.5944 GB, free: 268 kB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.6413, allocations: 0.7744 MB / 0.5951 GB, free: 15.46 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.6416, allocations: 184.4 kB / 0.5953 GB, free: 15.26 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.6417, allocations: 8.109 kB / 0.5953 GB, free: 15.25 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005021/0.6422, allocations: 39.83 kB / 0.5954 GB, free: 15.21 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/0.6424, allocations: 40.39 kB / 0.5954 GB, free: 15.17 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.041e-05/0.6424, allocations: 19.97 kB / 0.5954 GB, free: 15.15 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0004873/0.6429, allocations: 302.9 kB / 0.5957 GB, free: 14.86 MB / 443.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6429, allocations: 0 / 0.5957 GB, free: 14.86 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.001364/0.6443, allocations: 251 kB / 0.5959 GB, free: 14.61 MB / 443.1 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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.0002343/0.6445, allocations: 121 kB / 0.5961 GB, free: 14.49 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.6467, allocations: 0.8513 MB / 0.5969 GB, free: 13.63 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.6467, allocations: 4 kB / 0.5969 GB, free: 13.63 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004342/0.6471, allocations: 205.6 kB / 0.5971 GB, free: 13.43 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000867/0.648, allocations: 119.1 kB / 0.5972 GB, free: 13.31 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.6512, allocations: 1.143 MB / 0.5983 GB, free: 12.14 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000736/0.652, allocations: 0.9583 MB / 0.5993 GB, free: 11.15 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0008839/0.6529, allocations: 150.6 kB / 0.5994 GB, free: 11 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001618/0.653, allocations: 43.42 kB / 0.5994 GB, free: 10.96 MB / 443.1 MB Notification: Performance of SimCode: time 1.272e-06/0.653, allocations: 0 / 0.5994 GB, free: 10.96 MB / 443.1 MB Notification: Performance of Templates: time 0.01671/0.6698, allocations: 7.367 MB / 0.6066 GB, free: 3.598 MB / 443.1 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/jenkins/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