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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.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.001201/0.001201, allocations: 110.2 kB / 16.92 MB, free: 6.145 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.00135/0.00135, allocations: 191.5 kB / 17.85 MB, free: 5.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.365/1.365, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.177/0.177, allocations: 38.02 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 66.34 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.09385, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.006775/0.1007, allocations: 5.412 MB / 462.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.104, allocations: 2.245 MB / 464.6 MB, free: 276 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005546/0.1046, allocations: 23.88 kB / 464.6 MB, free: 252 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009171/0.1056, allocations: 273.7 kB / 464.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008842/0.1065, allocations: 349.9 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.1075, allocations: 0.4913 MB / 465.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001118/0.1086, allocations: 1.038 MB / 466.8 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008827/0.1095, allocations: 0.6229 MB / 467.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000561/0.1101, allocations: 390.5 kB / 467.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.1106, allocations: 402.1 kB / 468.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001361/0.1108, allocations: 80 kB / 468.3 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005734/0.1114, allocations: 359.2 kB / 468.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.1116, allocations: 211.4 kB / 468.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003701/0.112, allocations: 389.8 kB / 469.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.113, allocations: 1.051 MB / 470.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.113, allocations: 4 kB / 470.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1131, allocations: 0 / 470.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.559e-05/0.1131, allocations: 0 / 470.3 MB, free: 10.61 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.002039/0.1151, allocations: 1.114 MB / 471.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1152, allocations: 15.83 kB / 471.4 MB, free: 9.426 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.1153, allocations: 102.7 kB / 471.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009367/0.1163, allocations: 167.7 kB / 471.6 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008973/0.1172, allocations: 0.5735 MB / 472.2 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.748e-05/0.1172, allocations: 57.61 kB / 472.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1173, allocations: 60.38 kB / 472.3 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001298/0.1186, allocations: 0.7524 MB / 473.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.1187, allocations: 0 / 473.1 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.854e-05/0.1188, allocations: 35.97 kB / 473.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-05/0.1188, allocations: 29.31 kB / 473.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.12, allocations: 0.6297 MB / 473.8 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004121/0.1242, allocations: 2.906 MB / 476.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001358/0.1255, allocations: 0.7133 MB / 477.4 MB, free: 3.164 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004701/0.126, allocations: 231 kB / 477.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.312e-05/0.1261, allocations: 8.422 kB / 477.6 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.1261, allocations: 43 kB / 477.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.1261, allocations: 0 / 477.7 MB, free: 2.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.001537/0.1277, allocations: 0.6942 MB / 478.4 MB, free: 2.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.1277, allocations: 111.2 kB / 478.5 MB, free: 2.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007615/0.1285, allocations: 0.586 MB / 479.1 MB, free: 1.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.1286, allocations: 29.7 kB / 479.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002477/0.1288, allocations: 356.4 kB / 479.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.129, allocations: 169.5 kB / 479.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.1291, allocations: 110.3 kB / 479.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1293, allocations: 386.9 kB / 480.1 MB, free: 400 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004758/0.1298, allocations: 207 kB / 480.3 MB, free: 188 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005437/0.1303, allocations: 340.5 kB / 480.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.1313, allocations: 0.5529 MB / 481.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.1314, allocations: 4 kB / 481.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001731/0.1331, allocations: 0.7807 MB / 482 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1331, allocations: 8 kB / 482 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1331, allocations: 0 / 482 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004087/0.1336, allocations: 121.1 kB / 482.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005717/0.1341, allocations: 131.8 kB / 482.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002946/0.1371, allocations: 2.424 MB / 484.6 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004746/0.1376, allocations: 83.23 kB / 484.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.852e-05/0.1376, allocations: 24 kB / 484.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006346/0.1383, allocations: 365.1 kB / 485.1 MB, free: 11.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005092/0.1388, allocations: 324.6 kB / 485.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009029/0.1397, allocations: 0.5334 MB / 486 MB, free: 10.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.024e-06/0.1397, allocations: 0 / 486 MB, free: 10.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=70) (initialization_lambda0): time 0.001372/0.1411, allocations: 0.7065 MB / 486.7 MB, free: 9.445 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.1411, allocations: 8 kB / 486.7 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.1411, allocations: 4.469 kB / 486.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000283/0.1414, allocations: 108.7 kB / 486.8 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005305/0.142, allocations: 127.9 kB / 486.9 MB, free: 9.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/0.1442, allocations: 2.225 MB / 489.1 MB, free: 6.836 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.1447, allocations: 59.59 kB / 489.2 MB, free: 6.777 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.464e-05/0.1447, allocations: 24.05 kB / 489.2 MB, free: 6.754 MB / 366.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.0002137/0.1449, allocations: 231.4 kB / 489.4 MB, free: 6.523 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.1451, allocations: 71.09 kB / 489.5 MB, free: 6.453 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001222/0.1463, allocations: 0.5615 MB / 490.1 MB, free: 5.883 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1463, allocations: 4 kB / 490.1 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.1463, allocations: 4 kB / 490.1 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1463, allocations: 0 / 490.1 MB, free: 5.875 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.1484, allocations: 1.318 MB / 491.4 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1484, allocations: 0 / 491.4 MB, free: 4.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005403/0.1489, allocations: 107.9 kB / 491.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.696e-06/0.149, allocations: 0 / 491.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.149, allocations: 15.98 kB / 491.5 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.149, allocations: 4 kB / 491.5 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.149, allocations: 0 / 491.5 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.1506, allocations: 0.9052 MB / 492.4 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.1508, allocations: 192.1 kB / 492.6 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.92e-05/0.1509, allocations: 12 kB / 492.6 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003819/0.1513, allocations: 39.95 kB / 492.7 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.368e-05/0.1514, allocations: 32.39 kB / 492.7 MB, free: 3.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.1514, allocations: 12 kB / 492.7 MB, free: 3.152 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005761/0.152, allocations: 423 kB / 493.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.152, allocations: 0 / 493.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008347/0.1529, allocations: 267.2 kB / 493.4 MB, free: 2.484 MB / 366.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001884/0.1547, allocations: 1.462 MB / 494.8 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002176/0.1569, allocations: 1.146 MB / 496 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.157, allocations: 0 / 496 MB, free: 15.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004844/0.1574, allocations: 259.4 kB / 496.2 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007605/0.1582, allocations: 147.2 kB / 496.4 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.1688, allocations: 6.388 MB / 0.491 GB, free: 8.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005305/0.1694, allocations: 0.9418 MB / 0.4919 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004652/0.1698, allocations: 120.6 kB / 0.492 GB, free: 7.758 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003537/0.1702, allocations: 259.3 kB / 0.4923 GB, free: 7.504 MB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1702, allocations: 0 / 0.4923 GB, free: 7.504 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2305/0.4007, allocations: 14.96 MB / 0.5069 GB, free: 56.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.76, allocations: 11.59 kB / 0.5069 GB, free: 56.22 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 & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)