Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",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.0008699/0.0008699, allocations: 97.06 kB / 16.3 MB, free: 5.996 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.0008585/0.0008585, allocations: 182.3 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.4 MB / 223.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.322/0.322, allocations: 38.05 MB / 309.7 MB, free: 8.898 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005331/0.0005331, allocations: 12 kB / 376.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1351, allocations: 56.33 MB / 432.9 MB, free: 6.625 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006491/0.1417, allocations: 5.018 MB / 437.9 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004078/0.1458, allocations: 2.255 MB / 440.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006013/0.1464, allocations: 31.81 kB / 440.2 MB, free: 15.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005077/0.147, allocations: 99.11 kB / 440.3 MB, free: 15.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009105/0.1479, allocations: 318.9 kB / 440.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.1489, allocations: 383.3 kB / 441 MB, free: 14.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007422/0.1497, allocations: 0.5825 MB / 441.6 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009443/0.1506, allocations: 0.612 MB / 442.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004034/0.151, allocations: 290.7 kB / 442.5 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003489/0.1514, allocations: 278.5 kB / 442.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.1515, allocations: 24 kB / 442.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004349/0.1519, allocations: 151.7 kB / 442.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.1521, allocations: 143.4 kB / 443.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1522, allocations: 149.3 kB / 443.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007753/0.153, allocations: 0.7831 MB / 444 MB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.153, allocations: 0 / 444 MB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.153, allocations: 4 kB / 444 MB, free: 11.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.153, allocations: 0 / 444 MB, free: 11.44 MB / 382.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.001897/0.1549, allocations: 0.9971 MB / 445 MB, free: 10.39 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.155, allocations: 8.031 kB / 445 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001409/0.1551, allocations: 106.4 kB / 445.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008825/0.156, allocations: 170.9 kB / 445.3 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009549/0.157, allocations: 0.5647 MB / 445.8 MB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.427e-05/0.1571, allocations: 53.3 kB / 445.9 MB, free: 9.449 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.1572, allocations: 71.89 kB / 446 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.1585, allocations: 0.7561 MB / 446.7 MB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.114e-05/0.1586, allocations: 0 / 446.7 MB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.207e-05/0.1586, allocations: 27.98 kB / 446.7 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-05/0.1587, allocations: 33.3 kB / 446.8 MB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.1599, allocations: 0.6375 MB / 447.4 MB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00427/0.1642, allocations: 2.934 MB / 450.3 MB, free: 4.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001596/0.1658, allocations: 0.7584 MB / 451.1 MB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-05/0.1659, allocations: 4.5 kB / 451.1 MB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.1659, allocations: 43 kB / 451.1 MB, free: 3.988 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 3.477e-06/0.1659, allocations: 0 / 451.1 MB, free: 3.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.001626/0.1676, allocations: 0.7332 MB / 451.9 MB, free: 3.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.1676, allocations: 107.2 kB / 452 MB, free: 3.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008401/0.1685, allocations: 0.5822 MB / 452.6 MB, free: 2.531 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.955e-05/0.1686, allocations: 33.7 kB / 452.6 MB, free: 2.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002924/0.1689, allocations: 356.4 kB / 452.9 MB, free: 2.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.169, allocations: 181.4 kB / 453.1 MB, free: 1.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.024e-05/0.1691, allocations: 12 kB / 453.1 MB, free: 1.949 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002351/0.1693, allocations: 382.7 kB / 453.5 MB, free: 1.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004521/0.1698, allocations: 213 kB / 453.7 MB, free: 1.359 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005552/0.1703, allocations: 348.5 kB / 454.1 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005074/0.1708, allocations: 248.8 kB / 454.3 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1709, allocations: 3.938 kB / 454.3 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.2523/0.4232, allocations: 0.8134 MB / 455.1 MB, free: 50.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005198/0.4238, allocations: 1.4 MB / 456.5 MB, free: 48.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.4238, allocations: 2.969 kB / 456.5 MB, free: 48.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006323/0.4244, allocations: 143.4 kB / 456.7 MB, free: 48.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007678/0.4252, allocations: 131.8 kB / 456.8 MB, free: 48.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003157/0.4284, allocations: 2.307 MB / 459.1 MB, free: 47.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006536/0.429, allocations: 88.27 kB / 459.2 MB, free: 47.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.788e-05/0.4291, allocations: 25.52 kB / 459.2 MB, free: 47.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.4291, allocations: 2.938 kB / 459.2 MB, free: 47.6 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001217/0.4304, allocations: 0.6264 MB / 459.8 MB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.4304, allocations: 3 kB / 459.8 MB, free: 47.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002458/0.4306, allocations: 99.69 kB / 459.9 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.4311, allocations: 135.7 kB / 460.1 MB, free: 47.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.4329, allocations: 2.046 MB / 462.1 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005656/0.4334, allocations: 84.2 kB / 462.2 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.4335, allocations: 23.08 kB / 462.2 MB, free: 46.23 MB / 382.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 (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.0004338/0.4339, allocations: 299.9 kB / 462.5 MB, free: 46.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.4341, allocations: 67 kB / 462.6 MB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001277/0.4354, allocations: 0.5918 MB / 463.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.4354, allocations: 3.125 kB / 463.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.4354, allocations: 6.594 kB / 463.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4354, allocations: 0 / 463.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002074/0.4375, allocations: 1.323 MB / 464.5 MB, free: 45.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.4375, allocations: 7.141 kB / 464.5 MB, free: 45.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005317/0.438, allocations: 119.3 kB / 464.6 MB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.211e-06/0.4381, allocations: 2.906 kB / 464.6 MB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.953e-05/0.4381, allocations: 14.09 kB / 464.6 MB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4381, allocations: 0 / 464.6 MB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4381, allocations: 6.312 kB / 464.6 MB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001616/0.4397, allocations: 0.944 MB / 465.6 MB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/0.44, allocations: 194.2 kB / 465.8 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.145e-05/0.4401, allocations: 14.88 kB / 465.8 MB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.4404, allocations: 43.44 kB / 465.8 MB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.543e-05/0.4405, allocations: 37.44 kB / 465.9 MB, free: 45.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.493e-05/0.4406, allocations: 13 kB / 465.9 MB, free: 45.26 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005879/0.4412, allocations: 421 kB / 466.3 MB, free: 45.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.362e-06/0.4412, allocations: 0 / 466.3 MB, free: 45.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001026/0.4422, allocations: 271.2 kB / 466.6 MB, free: 45.13 MB / 382.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 (50): * Single equations (assignments): 49 * 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.001739/0.444, allocations: 1.562 MB / 468.1 MB, free: 44.15 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002163/0.4462, allocations: 1.104 MB / 469.2 MB, free: 43.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4462, allocations: 128 / 469.2 MB, free: 43.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004817/0.4467, allocations: 261.6 kB / 469.5 MB, free: 43.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007784/0.4475, allocations: 120.5 kB / 469.6 MB, free: 43.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008454/0.4559, allocations: 6.871 MB / 476.5 MB, free: 38.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004958/0.4565, allocations: 0.9644 MB / 477.4 MB, free: 38.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005016/0.457, allocations: 117.6 kB / 477.6 MB, free: 38.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003511/0.4573, allocations: 252.6 kB / 477.8 MB, free: 37.99 MB / 382.1 MB Notification: Performance of SimCode: time 2.685e-06/0.4574, allocations: 0 / 477.8 MB, free: 37.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03671/0.4941, allocations: 13.93 MB / 491.7 MB, free: 36.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.4943, allocations: 214.5 kB / 491.9 MB, free: 36.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.025/2.52, allocations: 4 kB / 491.9 MB, free: 36.52 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1) Environment - environmentSimulation: