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: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008082/0.0008083, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.0008537/0.0008539, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.558/1.558, allocations: 223.3 MB / 241.2 MB, free: 5.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3946/0.3946, allocations: 38.07 MB / 330.4 MB, free: 13.99 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003323, allocations: 8 kB / 400.2 MB, free: 9.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3271/0.3274, allocations: 59.16 MB / 459.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.006844/0.3343, allocations: 5.134 MB / 464.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.3399, allocations: 2.231 MB / 466.7 MB, free: 24.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001646/0.3416, allocations: 33.47 kB / 466.7 MB, free: 24.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009156/0.3426, allocations: 111.5 kB / 466.8 MB, free: 24.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001658/0.3443, allocations: 286.2 kB / 467.1 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.3459, allocations: 371.3 kB / 467.5 MB, free: 24.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001825/0.3477, allocations: 1.002 MB / 468.5 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.3489, allocations: 0.6216 MB / 469.1 MB, free: 23.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005608/0.3495, allocations: 307 kB / 469.4 MB, free: 23.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000458/0.35, allocations: 320.8 kB / 469.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.285e-05/0.3501, allocations: 24.91 kB / 469.7 MB, free: 23.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000503/0.3506, allocations: 172 kB / 469.9 MB, free: 23.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.3508, allocations: 145.8 kB / 470 MB, free: 23.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.3509, allocations: 156.2 kB / 470.2 MB, free: 23.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009556/0.3519, allocations: 0.7868 MB / 471 MB, free: 22.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3519, allocations: 1.219 kB / 471 MB, free: 22.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3519, allocations: 0 / 471 MB, free: 22.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.108e-05/0.3519, allocations: 0 / 471 MB, free: 22.82 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.001885/0.3538, allocations: 1.019 MB / 472 MB, free: 22.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.413e-05/0.3538, allocations: 9.906 kB / 472 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00013/0.354, allocations: 104.7 kB / 472.1 MB, free: 22.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008373/0.3548, allocations: 164.4 kB / 472.3 MB, free: 22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009118/0.3558, allocations: 0.5616 MB / 472.8 MB, free: 21.61 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.133e-05/0.3558, allocations: 45.58 kB / 472.9 MB, free: 21.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3559, allocations: 61.45 kB / 472.9 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001513/0.3575, allocations: 0.7804 MB / 473.7 MB, free: 21.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.281e-05/0.3575, allocations: 5.766 kB / 473.7 MB, free: 21.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.195e-05/0.3576, allocations: 26.31 kB / 473.8 MB, free: 21.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.975e-05/0.3576, allocations: 28.58 kB / 473.8 MB, free: 21.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00136/0.359, allocations: 0.6817 MB / 474.5 MB, free: 20.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00378/0.3628, allocations: 2.948 MB / 477.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.3642, allocations: 0.756 MB / 478.2 MB, free: 18.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/0.3648, allocations: 264.6 kB / 478.4 MB, free: 18.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.3648, allocations: 9.297 kB / 478.4 MB, free: 18.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.3649, allocations: 42.41 kB / 478.5 MB, free: 18.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.787e-06/0.3649, allocations: 96 / 478.5 MB, free: 18.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.001695/0.3666, allocations: 0.7931 MB / 479.3 MB, free: 17.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.3666, allocations: 116.6 kB / 479.4 MB, free: 17.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007524/0.3674, allocations: 0.5791 MB / 480 MB, free: 17.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.373e-05/0.3675, allocations: 36.08 kB / 480 MB, free: 17.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.3677, allocations: 349.5 kB / 480.3 MB, free: 16.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.3678, allocations: 182.7 kB / 480.5 MB, free: 16.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.79e-05/0.3679, allocations: 14.31 kB / 480.5 MB, free: 16.65 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.368, allocations: 382.2 kB / 480.9 MB, free: 16.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004985/0.3685, allocations: 232.7 kB / 481.1 MB, free: 16.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005678/0.369, allocations: 370.3 kB / 481.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005491/0.3696, allocations: 277.5 kB / 481.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3696, allocations: 2.219 kB / 481.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001779/0.3714, allocations: 0.8642 MB / 482.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.543e-05/0.3715, allocations: 199.2 kB / 482.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.3715, allocations: 7.266 kB / 482.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004622/0.372, allocations: 147.9 kB / 483 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.3727, allocations: 141.5 kB / 483.1 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002502/0.3752, allocations: 2.247 MB / 485.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005053/0.3757, allocations: 91.33 kB / 485.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.3757, allocations: 24 kB / 485.5 MB, free: 12.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.033e-06/0.3758, allocations: 5.781 kB / 485.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001147/0.3769, allocations: 0.6738 MB / 486.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.3769, allocations: 7.938 kB / 486.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002232/0.3772, allocations: 96.8 kB / 486.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004822/0.3777, allocations: 148 kB / 486.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00147/0.3791, allocations: 2.015 MB / 488.4 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.3796, allocations: 87.33 kB / 488.5 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.595e-05/0.3797, allocations: 24 kB / 488.5 MB, free: 9.723 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.0003915/0.3801, allocations: 301 kB / 488.8 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.3802, allocations: 75.3 kB / 488.9 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/0.3813, allocations: 0.62 MB / 489.5 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.643e-06/0.3813, allocations: 11.98 kB / 489.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.3813, allocations: 0 / 489.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3813, allocations: 3.984 kB / 489.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.3831, allocations: 1.388 MB / 490.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3831, allocations: 0 / 490.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005253/0.3836, allocations: 131.8 kB / 491 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.3837, allocations: 4 kB / 491 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.646e-05/0.3837, allocations: 15.94 kB / 491.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.3837, allocations: 0 / 491.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3837, allocations: 0 / 491.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.3852, allocations: 1.003 MB / 492.1 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.3854, allocations: 192.1 kB / 492.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.109e-05/0.3854, allocations: 12 kB / 492.3 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003562/0.3858, allocations: 55.95 kB / 492.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.726e-05/0.3859, allocations: 36.38 kB / 492.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/0.3859, allocations: 16.09 kB / 492.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004936/0.3864, allocations: 419 kB / 492.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3864, allocations: 0 / 492.8 MB, free: 5.355 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009139/0.3874, allocations: 267.2 kB / 493 MB, free: 5.094 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.001672/0.389, allocations: 1.563 MB / 494.6 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.391, allocations: 1.164 MB / 495.8 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.391, allocations: 3.938 kB / 495.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.3915, allocations: 282.5 kB / 496 MB, free: 2.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007282/0.3922, allocations: 131.3 kB / 496.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008627/0.4008, allocations: 4.734 MB / 0.4892 GB, free: 13.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007033/0.4016, allocations: 0.946 MB / 0.4901 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005708/0.4022, allocations: 124.5 kB / 0.4902 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004109/0.4026, allocations: 255.3 kB / 0.4905 GB, free: 11.71 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4026, allocations: 4 kB / 0.4905 GB, free: 11.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03427/0.4369, allocations: 14.07 MB / 0.5042 GB, free: 13.88 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/0.4371, allocations: 226.3 kB / 0.5044 GB, free: 13.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.665, allocations: 3.375 kB / 0.5044 GB, free: 13.64 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2_res.mat does not exist to compare? outputFormat=mat