Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.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.PowerPlantTest2,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.PowerPlantTest2") translateModel(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,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.PowerPlantTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001599/0.001599, 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.669/1.669, 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.0008347/0.0008347, allocations: 85.2 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.1747/0.1747, allocations: 37.99 MB / 348 MB, free: 7.781 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.727e-05/1.731e-05, allocations: 7.984 kB / 410.6 MB, free: 46.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1155, allocations: 56.32 MB / 466.9 MB, free: 6.566 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3884/0.504, allocations: 102.9 MB / 0.5564 GB, free: 8.066 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.5043, allocations: 87.94 kB / 0.5565 GB, free: 7.98 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06126/0.5656, allocations: 22.43 MB / 0.5784 GB, free: 1.395 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.5656, allocations: 0 / 0.5784 GB, free: 1.395 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0001041/0.5658, allocations: 16 kB / 0.5784 GB, free: 1.379 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.002182/0.568, allocations: 0.956 MB / 0.5793 GB, free: 384 kB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.568, allocations: 8.031 kB / 0.5793 GB, free: 376 kB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001193/0.5692, allocations: 182.7 kB / 0.5795 GB, free: 192 kB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.5705, allocations: 0.5856 MB / 0.5801 GB, free: 15.56 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.492e-05/0.5706, allocations: 20 kB / 0.5801 GB, free: 15.54 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.5707, allocations: 40 kB / 0.5801 GB, free: 15.5 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00095/0.5717, allocations: 466.5 kB / 0.5806 GB, free: 15.05 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.5728, allocations: 0.617 MB / 0.5812 GB, free: 14.39 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.5728, allocations: 7.938 kB / 0.5812 GB, free: 14.38 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.07e-05/0.5729, allocations: 7.953 kB / 0.5812 GB, free: 14.37 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.693e-05/0.573, allocations: 33.3 kB / 0.5812 GB, free: 14.34 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004459/0.5774, allocations: 2.873 MB / 0.584 GB, free: 11.36 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.5786, allocations: 0.628 MB / 0.5847 GB, free: 10.69 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.5789, allocations: 191.1 kB / 0.5848 GB, free: 10.5 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.542e-05/0.5789, allocations: 8.438 kB / 0.5849 GB, free: 10.49 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.579, allocations: 35 kB / 0.5849 GB, free: 10.45 MB / 427.1 MB Notification: Performance of pre-optimization done (n=51): time 2.465e-06/0.579, allocations: 4 kB / 0.5849 GB, free: 10.45 MB / 427.1 MB Notification: Performance of matching and sorting (n=51): time 0.0008014/0.5798, allocations: 441.3 kB / 0.5853 GB, free: 10.01 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.317e-05/0.5799, allocations: 107.4 kB / 0.5854 GB, free: 9.883 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004822/0.5804, allocations: 406.1 kB / 0.5858 GB, free: 9.48 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.5804, allocations: 25.7 kB / 0.5858 GB, free: 9.449 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002435/0.5807, allocations: 360.1 kB / 0.5862 GB, free: 9.09 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.5808, allocations: 173.4 kB / 0.5863 GB, free: 8.918 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.705e-05/0.5809, allocations: 0 / 0.5863 GB, free: 8.918 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5811, allocations: 378.8 kB / 0.5867 GB, free: 8.539 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.5813, allocations: 161.5 kB / 0.5868 GB, free: 8.379 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003376/0.5817, allocations: 297.3 kB / 0.5871 GB, free: 8.039 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.582, allocations: 198.1 kB / 0.5873 GB, free: 7.844 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.582, allocations: 7.938 kB / 0.5873 GB, free: 7.836 MB / 427.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001243/0.5833, allocations: 0.6512 MB / 0.588 GB, free: 7.176 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005171/0.5838, allocations: 1.393 MB / 0.5893 GB, free: 5.672 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.5838, allocations: 4 kB / 0.5893 GB, free: 5.668 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003754/0.5842, allocations: 112.7 kB / 0.5894 GB, free: 5.555 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000612/0.5848, allocations: 151.8 kB / 0.5896 GB, free: 5.406 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005951/0.5854, allocations: 0.7123 MB / 0.5903 GB, free: 4.668 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.5859, allocations: 75.55 kB / 0.5903 GB, free: 4.594 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.513e-05/0.586, allocations: 24 kB / 0.5904 GB, free: 4.57 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.586, allocations: 5.094 kB / 0.5904 GB, free: 4.566 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009036/0.5869, allocations: 0.5097 MB / 0.5909 GB, free: 4.055 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.5869, allocations: 4 kB / 0.5909 GB, free: 4.051 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.5872, allocations: 100.8 kB / 0.591 GB, free: 3.949 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005475/0.5877, allocations: 148 kB / 0.5911 GB, free: 3.805 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.5897, allocations: 1.971 MB / 0.593 GB, free: 1.715 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004563/0.5902, allocations: 59.64 kB / 0.5931 GB, free: 1.656 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.78e-05/0.5902, allocations: 24.06 kB / 0.5931 GB, free: 1.633 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 (62): * Single equations (assignments): 61 * 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.0001971/0.5904, allocations: 113 kB / 0.5932 GB, free: 1.516 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.5906, allocations: 63.25 kB / 0.5933 GB, free: 1.453 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008572/0.5914, allocations: 486.1 kB / 0.5937 GB, free: 0.9688 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.5914, allocations: 4 kB / 0.5938 GB, free: 0.9648 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5915, allocations: 4 kB / 0.5938 GB, free: 0.9609 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.5915, allocations: 0 / 0.5938 GB, free: 0.9609 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.593, allocations: 1.123 MB / 0.5949 GB, free: 15.79 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5931, allocations: 0 / 0.5949 GB, free: 15.79 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006068/0.5937, allocations: 123.8 kB / 0.595 GB, free: 15.67 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.5937, allocations: 0 / 0.595 GB, free: 15.67 MB / 443.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.768e-05/0.5937, allocations: 7.984 kB / 0.595 GB, free: 15.66 MB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.5937, allocations: 8 kB / 0.595 GB, free: 15.66 MB / 443.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5937, allocations: 0 / 0.595 GB, free: 15.66 MB / 443.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.5948, allocations: 0.7899 MB / 0.5958 GB, free: 14.84 MB / 443.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002214/0.595, allocations: 188.3 kB / 0.5959 GB, free: 14.64 MB / 443.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.5951, allocations: 7.922 kB / 0.5959 GB, free: 14.63 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003936/0.5955, allocations: 47.95 kB / 0.596 GB, free: 14.58 MB / 443.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.5956, allocations: 32.39 kB / 0.596 GB, free: 14.55 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.193e-05/0.5956, allocations: 15.98 kB / 0.596 GB, free: 14.54 MB / 443.1 MB Notification: Performance of sorting global known variables: time 0.0003515/0.596, allocations: 310.9 kB / 0.5963 GB, free: 14.23 MB / 443.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.596, allocations: 4 kB / 0.5963 GB, free: 14.23 MB / 443.1 MB Notification: Performance of remove unused functions: time 0.0009056/0.5969, allocations: 255.6 kB / 0.5966 GB, free: 13.98 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 (52): * Single equations (assignments): 51 * 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.0001895/0.5971, allocations: 125 kB / 0.5967 GB, free: 13.85 MB / 443.1 MB Notification: Performance of simCode: created initialization part: time 0.001548/0.5987, allocations: 0.8757 MB / 0.5976 GB, free: 12.97 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.5987, allocations: 0 / 0.5976 GB, free: 12.97 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003179/0.599, allocations: 213.6 kB / 0.5978 GB, free: 12.76 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006135/0.5996, allocations: 110 kB / 0.5979 GB, free: 12.65 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.6018, allocations: 1.154 MB / 0.599 GB, free: 11.46 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005072/0.6024, allocations: 0.9623 MB / 0.5999 GB, free: 10.47 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.0005911/0.603, allocations: 158.6 kB / 0.6001 GB, free: 10.32 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.6031, allocations: 39.42 kB / 0.6001 GB, free: 10.28 MB / 443.1 MB Notification: Performance of SimCode: time 6.52e-07/0.6031, allocations: 0 / 0.6001 GB, free: 10.28 MB / 443.1 MB Notification: Performance of Templates: time 0.01337/0.6165, allocations: 7.568 MB / 0.6075 GB, free: 2.719 MB / 443.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & ./PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mat","../files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches