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.001094/0.001094, allocations: 175 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.672/1.672, allocations: 205.4 MB / 223.5 MB, free: 9.02 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.0009222/0.0009222, allocations: 81.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2516/0.2516, allocations: 38.08 MB / 358.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003592, allocations: 12 kB / 425.2 MB, free: 37.36 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.253, allocations: 56.31 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1413/0.3943, allocations: 105.5 MB / 0.5733 GB, free: 12.71 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.3946, allocations: 91.81 kB / 0.5734 GB, free: 12.62 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07521/0.4699, allocations: 28.44 MB / 0.6012 GB, free: 15.94 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4699, allocations: 4 kB / 0.6012 GB, free: 15.94 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001006/0.47, allocations: 20 kB / 0.6012 GB, free: 15.92 MB / 442.7 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.00277/0.4728, allocations: 1.108 MB / 0.6023 GB, free: 14.75 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.4728, allocations: 8.031 kB / 0.6023 GB, free: 14.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001526/0.4744, allocations: 219.5 kB / 0.6025 GB, free: 14.53 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.4758, allocations: 0.6603 MB / 0.6032 GB, free: 13.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.049e-05/0.4759, allocations: 53.67 kB / 0.6032 GB, free: 13.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001583/0.4761, allocations: 68.38 kB / 0.6033 GB, free: 13.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.4778, allocations: 0.8901 MB / 0.6042 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/0.4778, allocations: 192 / 0.6042 GB, free: 12.78 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.485e-05/0.4779, allocations: 31.94 kB / 0.6042 GB, free: 12.75 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.905e-05/0.478, allocations: 49.22 kB / 0.6042 GB, free: 12.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001584/0.4796, allocations: 0.778 MB / 0.605 GB, free: 11.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005277/0.4849, allocations: 3.284 MB / 0.6082 GB, free: 8.516 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.4867, allocations: 0.9934 MB / 0.6092 GB, free: 7.445 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005996/0.4873, allocations: 319.3 kB / 0.6095 GB, free: 7.129 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.561e-05/0.4874, allocations: 16.48 kB / 0.6095 GB, free: 7.113 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.4874, allocations: 39.12 kB / 0.6095 GB, free: 7.062 MB / 442.7 MB Notification: Performance of pre-optimization done (n=59): time 2.945e-06/0.4874, allocations: 0 / 0.6095 GB, free: 7.062 MB / 442.7 MB Notification: Performance of matching and sorting (n=63): time 0.00541/0.4929, allocations: 2.592 MB / 0.6121 GB, free: 4.371 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.746e-05/0.493, allocations: 127.3 kB / 0.6122 GB, free: 4.223 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009775/0.4939, allocations: 0.5821 MB / 0.6127 GB, free: 3.633 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.324e-05/0.494, allocations: 37.7 kB / 0.6128 GB, free: 3.59 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/0.4944, allocations: 364.3 kB / 0.6131 GB, free: 3.227 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002457/0.4946, allocations: 220.7 kB / 0.6133 GB, free: 3.008 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.4947, allocations: 12 kB / 0.6134 GB, free: 2.996 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002326/0.4949, allocations: 386.9 kB / 0.6137 GB, free: 2.609 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005822/0.4955, allocations: 273.8 kB / 0.614 GB, free: 2.344 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007721/0.4963, allocations: 429.8 kB / 0.6144 GB, free: 1.867 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.4976, allocations: 0.7123 MB / 0.6151 GB, free: 1.098 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.4976, allocations: 4 kB / 0.6151 GB, free: 1.094 MB / 442.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001675/0.4993, allocations: 0.85 MB / 0.6159 GB, free: 244 kB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.4995, allocations: 211.4 kB / 0.6161 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4995, allocations: 4 kB / 0.6161 GB, free: 15.97 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.4998, allocations: 60.75 kB / 0.6162 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007794/0.5006, allocations: 187.8 kB / 0.6164 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001668/0.5023, allocations: 1.627 MB / 0.618 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.5028, allocations: 64 kB / 0.618 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.5029, allocations: 28 kB / 0.618 GB, free: 13.87 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.5029, allocations: 4 kB / 0.618 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001483/0.5044, allocations: 0.7282 MB / 0.6188 GB, free: 13.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.5044, allocations: 4 kB / 0.6188 GB, free: 13.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002009/0.5046, allocations: 65.25 kB / 0.6188 GB, free: 13.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006829/0.5053, allocations: 179.7 kB / 0.619 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/0.5069, allocations: 1.631 MB / 0.6206 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005109/0.5074, allocations: 63.88 kB / 0.6206 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-05/0.5075, allocations: 20 kB / 0.6207 GB, free: 11.05 MB / 458.7 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 () * Number of clocked 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.0005132/0.508, allocations: 324.8 kB / 0.621 GB, free: 10.72 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.5081, allocations: 75.09 kB / 0.621 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001721/0.5099, allocations: 0.7919 MB / 0.6218 GB, free: 9.84 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.5099, allocations: 12 kB / 0.6218 GB, free: 9.828 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5099, allocations: 3.984 kB / 0.6218 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.5099, allocations: 0 / 0.6218 GB, free: 9.824 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004345/0.5143, allocations: 2.195 MB / 0.624 GB, free: 7.492 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.5143, allocations: 8 kB / 0.624 GB, free: 7.484 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005777/0.5149, allocations: 132.2 kB / 0.6241 GB, free: 7.355 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002091/0.5151, allocations: 60.81 kB / 0.6242 GB, free: 7.293 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.975e-05/0.5152, allocations: 24 kB / 0.6242 GB, free: 7.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.5167, allocations: 1.584 MB / 0.6257 GB, free: 5.555 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/0.5167, allocations: 11.94 kB / 0.6258 GB, free: 5.543 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002254/0.519, allocations: 1.345 MB / 0.6271 GB, free: 4.102 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003213/0.5193, allocations: 204 kB / 0.6273 GB, free: 3.883 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.5194, allocations: 27.98 kB / 0.6273 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005628/0.52, allocations: 51.95 kB / 0.6273 GB, free: 3.805 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.5202, allocations: 71.73 kB / 0.6274 GB, free: 3.734 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-05/0.5202, allocations: 24 kB / 0.6274 GB, free: 3.711 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007251/0.521, allocations: 423 kB / 0.6278 GB, free: 3.301 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.521, allocations: 0 / 0.6278 GB, free: 3.301 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001277/0.5223, allocations: 267.9 kB / 0.6281 GB, free: 3.039 MB / 458.7 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 () * Number of clocked 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.0002392/0.5225, allocations: 138.8 kB / 0.6282 GB, free: 2.891 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002578/0.5251, allocations: 1.282 MB / 0.6295 GB, free: 1.582 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.5251, allocations: 3.938 kB / 0.6295 GB, free: 1.578 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009463/0.5261, allocations: 0.5038 MB / 0.63 GB, free: 1.062 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.5274, allocations: 158.9 kB / 0.6301 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.5306, allocations: 2.001 MB / 0.6321 GB, free: 14.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006688/0.5313, allocations: 0.9901 MB / 0.633 GB, free: 13.77 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006198/0.5319, allocations: 144.8 kB / 0.6332 GB, free: 13.62 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001627/0.5321, allocations: 51.42 kB / 0.6332 GB, free: 13.57 MB / 474.7 MB Notification: Performance of SimCode: time 3.91e-07/0.5321, allocations: 0 / 0.6332 GB, free: 13.57 MB / 474.7 MB Notification: Performance of Templates: time 0.01491/0.547, allocations: 7.739 MB / 0.6408 GB, free: 5.848 MB / 474.7 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/jenkins1/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