Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.PowerPlantTest2,fileNamePrefix="PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2,fileNamePrefix="PowerSystems_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.001073/0.001073, allocations: 94.08 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.001143/0.001143, allocations: 183.5 kB / 17.2 MB, free: 5.914 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.723/1.723, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1882/0.1882, allocations: 38.04 MB / 309.7 MB, free: 6.129 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.0005114/0.0005114, allocations: 15.28 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2856/0.2861, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2): time 0.004682/0.2908, allocations: 5.04 MB / 437.9 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003135/0.294, allocations: 2.259 MB / 440.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004831/0.2945, allocations: 31.81 kB / 440.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000413/0.2949, allocations: 95.19 kB / 440.3 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000702/0.2957, allocations: 318.9 kB / 440.6 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008223/0.2965, allocations: 390 kB / 441 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005825/0.2971, allocations: 0.5941 MB / 441.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000771/0.2979, allocations: 0.6237 MB / 442.2 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.2982, allocations: 298.7 kB / 442.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.2985, allocations: 278.5 kB / 442.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.2986, allocations: 27.94 kB / 442.8 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003008/0.2989, allocations: 151.8 kB / 443 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.299, allocations: 143.4 kB / 443.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.772e-05/0.2991, allocations: 153.3 kB / 443.3 MB, free: 8.383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005852/0.2997, allocations: 0.7987 MB / 444.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2997, allocations: 0 / 444.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2997, allocations: 0 / 444.1 MB, free: 7.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.2997, allocations: 0 / 444.1 MB, free: 7.582 MB / 318.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.001659/0.3014, allocations: 1.017 MB / 445.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.3015, allocations: 8.031 kB / 445.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.3016, allocations: 106.5 kB / 445.2 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008533/0.3024, allocations: 178.8 kB / 445.4 MB, free: 6.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009226/0.3034, allocations: 0.5687 MB / 445.9 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.792e-05/0.3034, allocations: 45.31 kB / 446 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.3035, allocations: 60 kB / 446 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.3048, allocations: 0.7756 MB / 446.8 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.3048, allocations: 7.938 kB / 446.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.022e-05/0.3049, allocations: 20 kB / 446.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.021e-05/0.305, allocations: 37.25 kB / 446.9 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3062, allocations: 0.6765 MB / 447.6 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004026/0.3103, allocations: 2.95 MB / 450.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.3118, allocations: 0.7969 MB / 451.3 MB, free: 48 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.382e-05/0.3118, allocations: 4.5 kB / 451.3 MB, free: 44 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.364e-05/0.3119, allocations: 39 kB / 451.3 MB, free: 16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.355e-06/0.3119, allocations: 0 / 451.3 MB, free: 16 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.001787/0.3137, allocations: 0.7951 MB / 452.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/0.3138, allocations: 111.2 kB / 452.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007801/0.3146, allocations: 0.5822 MB / 452.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.3146, allocations: 33.7 kB / 452.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002661/0.3149, allocations: 361.1 kB / 453.2 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.3151, allocations: 177.4 kB / 453.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.799e-05/0.3151, allocations: 11.94 kB / 453.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3153, allocations: 382.9 kB / 453.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005099/0.3158, allocations: 237.2 kB / 454 MB, free: 13.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006204/0.3164, allocations: 369.6 kB / 454.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/0.317, allocations: 278.1 kB / 454.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.317, allocations: 0 / 454.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001857/0.3189, allocations: 0.866 MB / 455.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000694/0.3196, allocations: 1.4 MB / 456.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3196, allocations: 4 kB / 456.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005046/0.3201, allocations: 148.2 kB / 457.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000588/0.3207, allocations: 139.8 kB / 457.2 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.3238, allocations: 2.3 MB / 459.5 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.3243, allocations: 99.41 kB / 459.6 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.885e-05/0.3244, allocations: 27.92 kB / 459.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.3244, allocations: 4 kB / 459.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001382/0.3258, allocations: 0.6696 MB / 460.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3258, allocations: 4 kB / 460.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002628/0.3261, allocations: 96.75 kB / 460.4 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000553/0.3267, allocations: 148.2 kB / 460.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/0.3289, allocations: 2.038 MB / 462.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005246/0.3295, allocations: 87.41 kB / 462.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.202e-05/0.3295, allocations: 23.98 kB / 462.7 MB, free: 4.156 MB / 334.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.0004754/0.33, allocations: 304.9 kB / 463 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001165/0.3301, allocations: 67.16 kB / 463 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001346/0.3315, allocations: 0.628 MB / 463.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3315, allocations: 4 kB / 463.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.3315, allocations: 0 / 463.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.3315, allocations: 7.969 kB / 463.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002263/0.3338, allocations: 1.392 MB / 465.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3338, allocations: 0 / 465.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000587/0.3344, allocations: 127.8 kB / 465.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.3344, allocations: 4 kB / 465.2 MB, free: 1.559 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.948e-05/0.3344, allocations: 12 kB / 465.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.3345, allocations: 4 kB / 465.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3345, allocations: 0 / 465.2 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.3363, allocations: 1.013 MB / 466.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.3365, allocations: 196.1 kB / 466.4 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.772e-05/0.3366, allocations: 12 kB / 466.4 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/0.337, allocations: 51.95 kB / 466.5 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.3371, allocations: 40.38 kB / 466.5 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.3372, allocations: 15.95 kB / 466.5 MB, free: 172 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006073/0.3378, allocations: 423.1 kB / 467 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.3378, allocations: 192 / 467 MB, free: 15.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001042/0.3389, allocations: 271.1 kB / 467.2 MB, free: 15.49 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.00221/0.3411, allocations: 1.634 MB / 468.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002498/0.3436, allocations: 1.175 MB / 470 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3436, allocations: 0.5 kB / 470 MB, free: 12.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.3442, allocations: 282.4 kB / 470.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.3449, allocations: 127.4 kB / 470.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009862/0.3548, allocations: 6.963 MB / 477.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006266/0.3555, allocations: 0.9616 MB / 478.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005233/0.356, allocations: 116.6 kB / 478.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003844/0.3564, allocations: 254.9 kB / 478.7 MB, free: 3.777 MB / 350.1 MB Notification: Performance of SimCode: time 3.868e-06/0.3564, allocations: 4 kB / 478.7 MB, free: 3.773 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03403/0.3905, allocations: 14.13 MB / 492.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.3907, allocations: 205.1 kB / 493.1 MB, free: 5.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.384, allocations: 0 / 493.1 MB, free: 5.438 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest2.fmu > PowerSystems_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest2.pipe 2>&1) Environment - environmentSimulation: