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.0009489/0.000949, allocations: 90.61 kB / 16.3 MB, free: 6.461 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.0008132/0.0008133, allocations: 182.1 kB / 17.2 MB, free: 6.348 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.203/1.203, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2683/0.2683, allocations: 38.08 MB / 330.3 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002721/0.0002721, allocations: 8 kB / 400 MB, free: 9.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2654/0.2657, allocations: 59.17 MB / 459.1 MB, free: 30.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.004744/0.2705, allocations: 5.033 MB / 464.2 MB, free: 26.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003433/0.274, allocations: 2.203 MB / 466.4 MB, free: 25.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004547/0.2745, allocations: 35.5 kB / 466.4 MB, free: 25.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000377/0.2748, allocations: 93.77 kB / 466.5 MB, free: 25.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007976/0.2756, allocations: 316.4 kB / 466.8 MB, free: 24.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009338/0.2766, allocations: 388.9 kB / 467.2 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006773/0.2773, allocations: 0.5843 MB / 467.8 MB, free: 24.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007789/0.2781, allocations: 0.6294 MB / 468.4 MB, free: 24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003443/0.2784, allocations: 294.7 kB / 468.7 MB, free: 23.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002961/0.2787, allocations: 275.5 kB / 468.9 MB, free: 23.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.729e-05/0.2788, allocations: 24.91 kB / 469 MB, free: 23.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003211/0.2791, allocations: 166.2 kB / 469.1 MB, free: 23.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.2793, allocations: 143.5 kB / 469.3 MB, free: 23.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.867e-05/0.2794, allocations: 151.5 kB / 469.4 MB, free: 23.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007468/0.2801, allocations: 0.7891 MB / 470.2 MB, free: 23.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.2801, allocations: 0 / 470.2 MB, free: 23.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2802, allocations: 0 / 470.2 MB, free: 23.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.2802, allocations: 1.5 kB / 470.2 MB, free: 23.32 MB / 350.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.001685/0.2819, allocations: 1.014 MB / 471.2 MB, free: 22.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.061e-05/0.2819, allocations: 8.625 kB / 471.2 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008369/0.2827, allocations: 175.2 kB / 471.4 MB, free: 22.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000825/0.2836, allocations: 0.5566 MB / 472 MB, free: 22.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.997e-05/0.2836, allocations: 46.66 kB / 472 MB, free: 22.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.2837, allocations: 64.41 kB / 472.1 MB, free: 22.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.285, allocations: 0.7769 MB / 472.8 MB, free: 21.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/0.2851, allocations: 1.312 kB / 472.8 MB, free: 21.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.735e-05/0.2851, allocations: 22.5 kB / 472.9 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.333e-05/0.2852, allocations: 29.45 kB / 472.9 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.2864, allocations: 0.6882 MB / 473.6 MB, free: 21.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.2899, allocations: 2.944 MB / 476.5 MB, free: 19.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001515/0.2915, allocations: 0.8005 MB / 477.3 MB, free: 18.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.199e-05/0.2915, allocations: 7.281 kB / 477.3 MB, free: 18.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.907e-05/0.2915, allocations: 41.56 kB / 477.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.924e-06/0.2915, allocations: 0 / 477.4 MB, free: 18.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001589/0.2931, allocations: 0.7884 MB / 478.2 MB, free: 18.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.2932, allocations: 113.2 kB / 478.3 MB, free: 18.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006693/0.2939, allocations: 0.5836 MB / 478.9 MB, free: 18.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.625e-05/0.2939, allocations: 35.8 kB / 478.9 MB, free: 18.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.2941, allocations: 353.9 kB / 479.2 MB, free: 17.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.978e-05/0.2942, allocations: 181.5 kB / 479.4 MB, free: 17.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.2942, allocations: 14.75 kB / 479.4 MB, free: 17.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.63e-05/0.2943, allocations: 376.5 kB / 479.8 MB, free: 17.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004513/0.2948, allocations: 234.9 kB / 480 MB, free: 17.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005602/0.2954, allocations: 376.1 kB / 480.4 MB, free: 16.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005244/0.2959, allocations: 273 kB / 480.7 MB, free: 16.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2959, allocations: 6.188 kB / 480.7 MB, free: 16.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001698/0.2976, allocations: 0.8644 MB / 481.5 MB, free: 16.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002262/0.2978, allocations: 1.398 MB / 482.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.2979, allocations: 4.156 kB / 482.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004492/0.2983, allocations: 135.2 kB / 483.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005732/0.2989, allocations: 145.3 kB / 483.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.3013, allocations: 2.296 MB / 485.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004516/0.3018, allocations: 97.2 kB / 485.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.109e-05/0.3018, allocations: 20.53 kB / 485.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.153e-06/0.3018, allocations: 4.469 kB / 485.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001172/0.303, allocations: 0.6747 MB / 486.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.303, allocations: 3.984 kB / 486.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.3033, allocations: 101.2 kB / 486.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005002/0.3038, allocations: 139.8 kB / 486.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/0.3051, allocations: 2.046 MB / 488.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.3056, allocations: 95.34 kB / 488.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.3056, allocations: 20 kB / 488.7 MB, free: 9.605 MB / 350.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 (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.0002891/0.3059, allocations: 305.4 kB / 489 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.181e-05/0.306, allocations: 63.25 kB / 489.1 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.307, allocations: 0.6239 MB / 489.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3071, allocations: 8 kB / 489.7 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-06/0.3071, allocations: 4 kB / 489.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.3071, allocations: 4.703 kB / 489.7 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.3088, allocations: 1.384 MB / 491.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.3088, allocations: 0 / 491.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005276/0.3093, allocations: 123.9 kB / 491.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3093, allocations: 4 kB / 491.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.3094, allocations: 11.98 kB / 491.2 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3094, allocations: 7.891 kB / 491.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.3094, allocations: 4 kB / 491.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.3108, allocations: 1.008 MB / 492.2 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.311, allocations: 196.1 kB / 492.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.152e-05/0.3111, allocations: 15.95 kB / 492.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003837/0.3115, allocations: 51.95 kB / 492.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.043e-05/0.3115, allocations: 40.38 kB / 492.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-05/0.3116, allocations: 20 kB / 492.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004463/0.312, allocations: 415.1 kB / 493 MB, free: 5.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.312, allocations: 0 / 493 MB, free: 5.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007537/0.3128, allocations: 271.2 kB / 493.2 MB, free: 4.965 MB / 350.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 50 * 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.0001085/0.3129, allocations: 115.3 kB / 493.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3146, allocations: 1.175 MB / 494.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3146, allocations: 0 / 494.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004594/0.3151, allocations: 290.4 kB / 494.8 MB, free: 3.359 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000567/0.3157, allocations: 129.9 kB / 494.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.3178, allocations: 1.808 MB / 496.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002835/0.3181, allocations: 0.9577 MB / 497.7 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003557/0.3184, allocations: 124.6 kB / 497.8 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3186, allocations: 51.36 kB / 497.9 MB, free: 248 kB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3186, allocations: 0 / 497.9 MB, free: 248 kB / 350.1 MB Notification: Performance of Templates: time 0.01217/0.3308, allocations: 7.54 MB / 0.4936 GB, free: 8.75 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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