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.001436/0.001436, allocations: 110.2 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.001617/0.001618, allocations: 185.4 kB / 18.68 MB, free: 4.426 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.32/1.32, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1754/0.1754, allocations: 38.05 MB / 330.6 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 67.89 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2879, allocations: 58.06 MB / 0.5048 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006606/0.2946, allocations: 5.443 MB / 0.5101 GB, free: 4.18 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00351/0.2981, allocations: 2.256 MB / 0.5123 GB, free: 2.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007974/0.2989, allocations: 25.97 kB / 0.5123 GB, free: 2.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009131/0.2998, allocations: 272.6 kB / 0.5126 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007834/0.3006, allocations: 350.2 kB / 0.5129 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.3017, allocations: 0.5021 MB / 0.5134 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009311/0.3026, allocations: 1.061 MB / 0.5144 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007339/0.3034, allocations: 0.6213 MB / 0.515 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004427/0.3038, allocations: 418.4 kB / 0.5154 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.3043, allocations: 404.5 kB / 0.5158 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001147/0.3044, allocations: 80.66 kB / 0.5159 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005932/0.305, allocations: 362.5 kB / 0.5163 GB, free: 492 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.3052, allocations: 222.9 kB / 0.5165 GB, free: 356 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002818/0.3055, allocations: 392.2 kB / 0.5168 GB, free: 76 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001368/0.3069, allocations: 1.091 MB / 0.5179 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3069, allocations: 0 / 0.5179 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3069, allocations: 0 / 0.5179 GB, free: 15.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.3069, allocations: 0.5938 kB / 0.5179 GB, free: 15.61 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.002215/0.3091, allocations: 1.171 MB / 0.5191 GB, free: 14.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.3092, allocations: 13.36 kB / 0.5191 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008948/0.3101, allocations: 164.6 kB / 0.5192 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001017/0.3111, allocations: 0.614 MB / 0.5198 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.3112, allocations: 50.19 kB / 0.5199 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3113, allocations: 60.69 kB / 0.5199 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3127, allocations: 0.7721 MB / 0.5207 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.3127, allocations: 1.062 kB / 0.5207 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.143e-05/0.3128, allocations: 29.84 kB / 0.5207 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.113e-05/0.3129, allocations: 29.61 kB / 0.5207 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001333/0.3142, allocations: 0.6573 MB / 0.5214 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004241/0.3184, allocations: 2.911 MB / 0.5242 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.32, allocations: 0.737 MB / 0.5249 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.3205, allocations: 250 kB / 0.5252 GB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.18e-05/0.3206, allocations: 14.98 kB / 0.5252 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.3206, allocations: 38.45 kB / 0.5252 GB, free: 11.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=50): time 2.324e-06/0.3206, allocations: 0 / 0.5252 GB, free: 11.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=50): time 0.001776/0.3224, allocations: 0.7603 MB / 0.526 GB, free: 10.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.3225, allocations: 113.4 kB / 0.5261 GB, free: 10.8 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008327/0.3233, allocations: 0.5822 MB / 0.5267 GB, free: 10.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.3234, allocations: 35.05 kB / 0.5267 GB, free: 10.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.3237, allocations: 355.6 kB / 0.527 GB, free: 10.22 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.3238, allocations: 184.4 kB / 0.5272 GB, free: 10.08 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.324, allocations: 109.6 kB / 0.5273 GB, free: 10.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.3242, allocations: 376.8 kB / 0.5277 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005375/0.3248, allocations: 229.6 kB / 0.5279 GB, free: 9.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006296/0.3254, allocations: 363.7 kB / 0.5282 GB, free: 9.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.3265, allocations: 0.585 MB / 0.5288 GB, free: 9.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3265, allocations: 0 / 0.5288 GB, free: 9.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001914/0.3285, allocations: 0.8232 MB / 0.5296 GB, free: 8.699 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3285, allocations: 10.97 kB / 0.5296 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.3285, allocations: 3.938 kB / 0.5296 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005022/0.329, allocations: 114.8 kB / 0.5297 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006113/0.3296, allocations: 138.2 kB / 0.5299 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003382/0.333, allocations: 2.432 MB / 0.5322 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.3336, allocations: 85.02 kB / 0.5323 GB, free: 6.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/0.3336, allocations: 21.98 kB / 0.5323 GB, free: 6.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007109/0.3344, allocations: 387 kB / 0.5327 GB, free: 6.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006366/0.335, allocations: 341.8 kB / 0.533 GB, free: 6.203 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001122/0.3361, allocations: 0.5665 MB / 0.5336 GB, free: 5.836 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.841e-06/0.3362, allocations: 2.062 kB / 0.5336 GB, free: 5.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001596/0.3378, allocations: 0.7358 MB / 0.5343 GB, free: 5.445 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.3378, allocations: 10.84 kB / 0.5343 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3378, allocations: 3.281 kB / 0.5343 GB, free: 5.441 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003419/0.3381, allocations: 98.95 kB / 0.5344 GB, free: 5.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005811/0.3387, allocations: 140.4 kB / 0.5345 GB, free: 5.355 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.341, allocations: 2.233 MB / 0.5367 GB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004988/0.3415, allocations: 64.52 kB / 0.5368 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.3416, allocations: 24.02 kB / 0.5368 GB, free: 3.289 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.0002205/0.3418, allocations: 222.1 kB / 0.537 GB, free: 3.074 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.3419, allocations: 67.58 kB / 0.5371 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.3433, allocations: 0.5964 MB / 0.5377 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3434, allocations: 5.25 kB / 0.5377 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3434, allocations: 0 / 0.5377 GB, free: 2.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002775/0.3437, allocations: 200.8 kB / 0.5379 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.3438, allocations: 11.53 kB / 0.5379 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004436/0.3442, allocations: 45.88 kB / 0.5379 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.3443, allocations: 33.8 kB / 0.538 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002109/0.3465, allocations: 0.8655 MB / 0.5388 GB, free: 1.953 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001957/0.3484, allocations: 1.143 MB / 0.5399 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005701/0.349, allocations: 264.2 kB / 0.5402 GB, free: 1.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006763/0.3497, allocations: 418.1 kB / 0.5406 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of Backend: time 3.4e-07/0.3497, allocations: 0 / 0.5406 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.3525, allocations: 1.176 MB / 0.5417 GB, free: 112 kB / 398.1 MB Notification: Performance of SimCode: time 0.002914/0.3554, allocations: 1.921 MB / 0.5436 GB, free: 14.68 MB / 414.1 MB Notification: Performance of Templates: time 0.0219/0.3774, allocations: 12.44 MB / 0.5557 GB, free: 3.676 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