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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 116 kB / 17.75 MB, free: 5.223 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.001173/0.001173, allocations: 181.4 kB / 18.67 MB, free: 4.309 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1716/0.1716, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 59.89 kB / 458.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3313, allocations: 58.06 MB / 0.5048 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006359/0.3377, allocations: 5.42 MB / 0.5101 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003769/0.3415, allocations: 2.25 MB / 0.5123 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006298/0.3422, allocations: 25.5 kB / 0.5123 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001046/0.3433, allocations: 275.3 kB / 0.5125 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009776/0.3443, allocations: 339.6 kB / 0.5129 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.3455, allocations: 0.4974 MB / 0.5134 GB, free: 1.652 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001125/0.3466, allocations: 1.047 MB / 0.5144 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008309/0.3474, allocations: 0.6148 MB / 0.515 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005767/0.348, allocations: 406.6 kB / 0.5154 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005226/0.3486, allocations: 400.6 kB / 0.5157 GB, free: 388 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.3487, allocations: 81.12 kB / 0.5158 GB, free: 388 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007135/0.3494, allocations: 356.3 kB / 0.5162 GB, free: 272 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002496/0.3497, allocations: 225.5 kB / 0.5164 GB, free: 132 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004209/0.3501, allocations: 388.4 kB / 0.5167 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.3517, allocations: 1.079 MB / 0.5178 GB, free: 15.4 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3518, allocations: 0 / 0.5178 GB, free: 15.4 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3518, allocations: 0 / 0.5178 GB, free: 15.4 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/0.3518, allocations: 0 / 0.5178 GB, free: 15.4 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.002356/0.3541, allocations: 1.121 MB / 0.5189 GB, free: 14.62 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3542, allocations: 13.09 kB / 0.5189 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009729/0.3552, allocations: 160.5 kB / 0.5191 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.3565, allocations: 0.6113 MB / 0.5197 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.025e-05/0.3565, allocations: 46.7 kB / 0.5197 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.3567, allocations: 61.33 kB / 0.5198 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/0.358, allocations: 0.7564 MB / 0.5205 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.773e-05/0.358, allocations: 9.25 kB / 0.5205 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/0.3581, allocations: 25.25 kB / 0.5205 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.516e-05/0.3582, allocations: 28.09 kB / 0.5206 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3594, allocations: 0.6349 MB / 0.5212 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00447/0.3639, allocations: 2.882 MB / 0.524 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/0.3653, allocations: 0.7074 MB / 0.5247 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004475/0.3657, allocations: 237.1 kB / 0.5249 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.835e-05/0.3658, allocations: 6.734 kB / 0.5249 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.3658, allocations: 38.55 kB / 0.525 GB, free: 11.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.527e-06/0.3659, allocations: 3.938 kB / 0.525 GB, free: 11.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.001639/0.3675, allocations: 0.6957 MB / 0.5256 GB, free: 10.81 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.3676, allocations: 116.3 kB / 0.5258 GB, free: 10.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009367/0.3685, allocations: 0.5842 MB / 0.5263 GB, free: 10.42 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.3686, allocations: 40.2 kB / 0.5264 GB, free: 10.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.3689, allocations: 354.1 kB / 0.5267 GB, free: 10.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.3691, allocations: 174.2 kB / 0.5269 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/0.3693, allocations: 100.6 kB / 0.527 GB, free: 9.895 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.3695, allocations: 376.6 kB / 0.5273 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000482/0.37, allocations: 218.8 kB / 0.5275 GB, free: 9.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000561/0.3705, allocations: 336.9 kB / 0.5278 GB, free: 9.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009957/0.3716, allocations: 0.5606 MB / 0.5284 GB, free: 8.914 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3716, allocations: 1.281 kB / 0.5284 GB, free: 8.914 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001821/0.3734, allocations: 0.7797 MB / 0.5292 GB, free: 8.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/0.3734, allocations: 7.703 kB / 0.5292 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3734, allocations: 3.688 kB / 0.5292 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004523/0.3739, allocations: 122.8 kB / 0.5293 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005858/0.3745, allocations: 131.8 kB / 0.5294 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/0.3776, allocations: 2.416 MB / 0.5318 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005439/0.3781, allocations: 83.11 kB / 0.5319 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/0.3782, allocations: 21.77 kB / 0.5319 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006913/0.3789, allocations: 369.8 kB / 0.5322 GB, free: 6.336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005047/0.3794, allocations: 332.1 kB / 0.5325 GB, free: 6.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009098/0.3803, allocations: 0.5244 MB / 0.5331 GB, free: 5.793 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.587e-06/0.3803, allocations: 5.25 kB / 0.5331 GB, free: 5.789 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001431/0.3818, allocations: 0.7002 MB / 0.5337 GB, free: 5.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3818, allocations: 10.44 kB / 0.5338 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.3818, allocations: 3.938 kB / 0.5338 GB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.3821, allocations: 100.4 kB / 0.5339 GB, free: 5.449 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005633/0.3827, allocations: 131.6 kB / 0.534 GB, free: 5.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00214/0.3848, allocations: 2.223 MB / 0.5361 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.3853, allocations: 60.81 kB / 0.5362 GB, free: 3.395 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.073e-05/0.3854, allocations: 20.97 kB / 0.5362 GB, free: 3.391 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 (60): * Single equations (assignments): 59 * 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.0002174/0.3856, allocations: 216.7 kB / 0.5364 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001202/0.3857, allocations: 75.64 kB / 0.5365 GB, free: 3.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.3869, allocations: 0.5672 MB / 0.5371 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3869, allocations: 1.125 kB / 0.5371 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.3869, allocations: 0 / 0.5371 GB, free: 2.809 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.3872, allocations: 191.5 kB / 0.5372 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.347e-05/0.3873, allocations: 11.91 kB / 0.5373 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003754/0.3877, allocations: 35.33 kB / 0.5373 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.575e-05/0.3878, allocations: 41.02 kB / 0.5373 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001844/0.3896, allocations: 0.8289 MB / 0.5381 GB, free: 2.086 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00161/0.3913, allocations: 1.076 MB / 0.5392 GB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004716/0.3917, allocations: 246.6 kB / 0.5394 GB, free: 1.27 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000711/0.3925, allocations: 428 kB / 0.5398 GB, free: 1.02 MB / 398.1 MB Notification: Performance of Backend: time 6.72e-07/0.3925, allocations: 0 / 0.5398 GB, free: 1.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002998/0.3955, allocations: 1.135 MB / 0.5409 GB, free: 316 kB / 398.1 MB Notification: Performance of SimCode: time 0.003013/0.3985, allocations: 1.885 MB / 0.5428 GB, free: 14.92 MB / 414.1 MB Notification: Performance of Templates: time 0.02249/0.421, allocations: 12.07 MB / 0.5546 GB, free: 4.703 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches