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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 111 kB / 17.75 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 186.5 kB / 18.68 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1684/0.1684, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 63.91 kB / 458.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3161/0.3176, allocations: 58.04 MB / 0.5048 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.005428/0.3231, allocations: 5.454 MB / 0.5101 GB, free: 3.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00311/0.3262, allocations: 2.262 MB / 0.5123 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003889/0.3266, allocations: 24.5 kB / 0.5123 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008289/0.3275, allocations: 279 kB / 0.5126 GB, free: 2.164 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006811/0.3282, allocations: 341 kB / 0.5129 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009301/0.3291, allocations: 0.5005 MB / 0.5134 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009547/0.3301, allocations: 1.054 MB / 0.5144 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008153/0.3309, allocations: 0.6205 MB / 0.515 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005349/0.3314, allocations: 418.8 kB / 0.5154 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.3319, allocations: 403.7 kB / 0.5158 GB, free: 404 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.3321, allocations: 82.25 kB / 0.5159 GB, free: 404 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005998/0.3327, allocations: 356.6 kB / 0.5162 GB, free: 288 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.3329, allocations: 224 kB / 0.5164 GB, free: 152 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003604/0.3332, allocations: 392.7 kB / 0.5168 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.3345, allocations: 1.092 MB / 0.5179 GB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3346, allocations: 4.938 kB / 0.5179 GB, free: 15.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3346, allocations: 0.9688 kB / 0.5179 GB, free: 15.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.3346, allocations: 0 / 0.5179 GB, free: 15.41 MB / 398.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.002424/0.337, allocations: 1.132 MB / 0.519 GB, free: 14.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.3371, allocations: 13.45 kB / 0.519 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000929/0.338, allocations: 164.1 kB / 0.5192 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00104/0.3391, allocations: 0.6051 MB / 0.5198 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.3391, allocations: 50.23 kB / 0.5198 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001088/0.3392, allocations: 61.83 kB / 0.5199 GB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.3406, allocations: 0.7703 MB / 0.5206 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.417e-05/0.3406, allocations: 9.844 kB / 0.5206 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.408e-05/0.3407, allocations: 29.61 kB / 0.5207 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.014e-05/0.3408, allocations: 31.98 kB / 0.5207 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3421, allocations: 0.6522 MB / 0.5213 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004197/0.3463, allocations: 2.903 MB / 0.5242 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.3478, allocations: 0.7439 MB / 0.5249 GB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005238/0.3483, allocations: 247.4 kB / 0.5251 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.552e-05/0.3484, allocations: 18.92 kB / 0.5251 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.3484, allocations: 41.69 kB / 0.5252 GB, free: 11.06 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.3484, allocations: 0 / 0.5252 GB, free: 11.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.00171/0.3501, allocations: 0.7482 MB / 0.5259 GB, free: 10.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.3502, allocations: 112.7 kB / 0.526 GB, free: 10.65 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008275/0.351, allocations: 0.5863 MB / 0.5266 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.457e-05/0.3511, allocations: 35.02 kB / 0.5266 GB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.3514, allocations: 353.2 kB / 0.527 GB, free: 10.07 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.3515, allocations: 178.5 kB / 0.5271 GB, free: 9.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.3517, allocations: 102.2 kB / 0.5272 GB, free: 9.871 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.3519, allocations: 375.9 kB / 0.5276 GB, free: 9.531 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005517/0.3525, allocations: 232.4 kB / 0.5278 GB, free: 9.445 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006124/0.3531, allocations: 356.6 kB / 0.5282 GB, free: 9.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.3542, allocations: 0.5885 MB / 0.5287 GB, free: 8.883 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3542, allocations: 5.188 kB / 0.5287 GB, free: 8.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001819/0.356, allocations: 0.8221 MB / 0.5295 GB, free: 8.551 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.3561, allocations: 6.625 kB / 0.5295 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3561, allocations: 4.094 kB / 0.5295 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004285/0.3565, allocations: 114.9 kB / 0.5297 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006025/0.3571, allocations: 142.2 kB / 0.5298 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002877/0.36, allocations: 2.42 MB / 0.5322 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/0.3606, allocations: 86.08 kB / 0.5322 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.41e-05/0.3606, allocations: 20.92 kB / 0.5323 GB, free: 6.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006902/0.3613, allocations: 387.9 kB / 0.5326 GB, free: 6.285 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005731/0.3619, allocations: 345.5 kB / 0.533 GB, free: 6.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001133/0.3631, allocations: 0.5578 MB / 0.5335 GB, free: 5.719 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.94e-06/0.3631, allocations: 1.344 kB / 0.5335 GB, free: 5.719 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001513/0.3646, allocations: 0.7354 MB / 0.5342 GB, free: 5.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.3646, allocations: 6.656 kB / 0.5342 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.3646, allocations: 4.156 kB / 0.5342 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002754/0.3649, allocations: 103.6 kB / 0.5343 GB, free: 5.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005735/0.3655, allocations: 139.4 kB / 0.5345 GB, free: 5.238 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/0.3676, allocations: 2.225 MB / 0.5366 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/0.3681, allocations: 75.3 kB / 0.5367 GB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.048e-05/0.3682, allocations: 21.09 kB / 0.5367 GB, free: 3.172 MB / 398.1 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 (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002232/0.3684, allocations: 213 kB / 0.5369 GB, free: 2.965 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.3686, allocations: 68.28 kB / 0.537 GB, free: 2.93 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.3699, allocations: 0.6004 MB / 0.5376 GB, free: 2.586 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.3699, allocations: 7.922 kB / 0.5376 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3699, allocations: 1.031 kB / 0.5376 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002915/0.3702, allocations: 191.5 kB / 0.5378 GB, free: 2.398 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.198e-05/0.3703, allocations: 16.34 kB / 0.5378 GB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.3707, allocations: 45.48 kB / 0.5378 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.3709, allocations: 33.64 kB / 0.5379 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002108/0.373, allocations: 0.8622 MB / 0.5387 GB, free: 1.844 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001908/0.3749, allocations: 1.128 MB / 0.5398 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005348/0.3754, allocations: 273 kB / 0.5401 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006685/0.3761, allocations: 421.7 kB / 0.5405 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of Backend: time 6.71e-07/0.3761, allocations: 0 / 0.5405 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002788/0.3789, allocations: 1.168 MB / 0.5416 GB, free: 12 kB / 398.1 MB Notification: Performance of SimCode: time 0.002684/0.3816, allocations: 1.892 MB / 0.5435 GB, free: 14.62 MB / 414.1 MB Notification: Performance of Templates: time 0.02085/0.4025, allocations: 12.45 MB / 0.5556 GB, free: 3.609 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches