Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001307/0.001307, allocations: 172 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.247/1.247, allocations: 205.4 MB / 222.2 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007793/0.0007792, allocations: 89.2 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1715/0.1715, allocations: 38.07 MB / 356.9 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003194/0.0003195, allocations: 16 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.242/0.2424, allocations: 56.33 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1): time 0.004732/0.2471, allocations: 5.139 MB / 484.9 MB, free: 5.812 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002938/0.2501, allocations: 2.287 MB / 487.2 MB, free: 4.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004993/0.2506, allocations: 36.53 kB / 487.2 MB, free: 4.164 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004365/0.2511, allocations: 106 kB / 487.3 MB, free: 4.105 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007842/0.2519, allocations: 317.4 kB / 487.6 MB, free: 3.934 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009729/0.2529, allocations: 400.5 kB / 488 MB, free: 3.734 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001058/0.2539, allocations: 1.009 MB / 489 MB, free: 3.262 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009958/0.2549, allocations: 0.7067 MB / 489.7 MB, free: 2.789 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004861/0.2554, allocations: 289.8 kB / 490 MB, free: 2.664 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.2559, allocations: 315.5 kB / 490.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.142e-05/0.256, allocations: 24.19 kB / 490.3 MB, free: 2.523 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006517/0.2567, allocations: 359.1 kB / 490.7 MB, free: 2.402 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001663/0.2568, allocations: 145 kB / 490.8 MB, free: 2.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002529/0.2571, allocations: 324.7 kB / 491.1 MB, free: 2.113 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009525/0.2581, allocations: 0.8043 MB / 491.9 MB, free: 1.918 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.2581, allocations: 1.375 kB / 491.9 MB, free: 1.918 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2581, allocations: 0 / 491.9 MB, free: 1.918 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.2581, allocations: 0 / 491.9 MB, free: 1.918 MB / 314.7 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.001783/0.2599, allocations: 0.9862 MB / 492.9 MB, free: 1.234 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2599, allocations: 8.875 kB / 492.9 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.2601, allocations: 105.7 kB / 493 MB, free: 1.156 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007849/0.2608, allocations: 157.2 kB / 493.2 MB, free: 1.109 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008403/0.2617, allocations: 0.5893 MB / 493.8 MB, free: 0.6953 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.2617, allocations: 50.84 kB / 493.8 MB, free: 0.668 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.944e-05/0.2619, allocations: 60.89 kB / 493.9 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.2632, allocations: 0.7714 MB / 494.7 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.2632, allocations: 1.812 kB / 494.7 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.596e-05/0.2633, allocations: 29.28 kB / 494.7 MB, free: 248 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.873e-05/0.2633, allocations: 33.44 kB / 494.7 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.2646, allocations: 0.644 MB / 495.4 MB, free: 20 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004347/0.2689, allocations: 2.915 MB / 498.3 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.2704, allocations: 0.7313 MB / 499 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004929/0.2709, allocations: 239.7 kB / 499.3 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.874e-05/0.2709, allocations: 11.36 kB / 499.3 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.271, allocations: 42.02 kB / 499.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.271, allocations: 1.188 kB / 499.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.001598/0.2726, allocations: 0.729 MB / 0.4883 GB, free: 13.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.892e-05/0.2727, allocations: 107.8 kB / 0.4884 GB, free: 13.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008291/0.2735, allocations: 0.5873 MB / 0.489 GB, free: 12.79 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.135e-05/0.2736, allocations: 36.98 kB / 0.489 GB, free: 12.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002622/0.2738, allocations: 356.5 kB / 0.4894 GB, free: 12.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.274, allocations: 165.6 kB / 0.4895 GB, free: 12.29 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.274, allocations: 14.34 kB / 0.4895 GB, free: 12.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2742, allocations: 378.7 kB / 0.4899 GB, free: 11.91 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004501/0.2746, allocations: 215.2 kB / 0.4901 GB, free: 11.81 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005452/0.2752, allocations: 357.5 kB / 0.4904 GB, free: 11.55 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.2762, allocations: 0.5706 MB / 0.491 GB, free: 11.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.2762, allocations: 5.375 kB / 0.491 GB, free: 11.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00179/0.278, allocations: 0.8151 MB / 0.4918 GB, free: 10.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001349/0.2782, allocations: 191.3 kB / 0.492 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.2782, allocations: 3.406 kB / 0.492 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005063/0.2787, allocations: 151.3 kB / 0.4921 GB, free: 10.46 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005493/0.2792, allocations: 129.9 kB / 0.4923 GB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.282, allocations: 2.252 MB / 0.4945 GB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004825/0.2825, allocations: 91.97 kB / 0.4945 GB, free: 8.461 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.2826, allocations: 20.94 kB / 0.4946 GB, free: 8.457 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.2826, allocations: 3.312 kB / 0.4946 GB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00126/0.2839, allocations: 0.6266 MB / 0.4952 GB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.2839, allocations: 3.797 kB / 0.4952 GB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002624/0.2841, allocations: 99.11 kB / 0.4953 GB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000507/0.2847, allocations: 134.1 kB / 0.4954 GB, free: 8.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00196/0.2866, allocations: 2.028 MB / 0.4974 GB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.2871, allocations: 69.41 kB / 0.4975 GB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.2871, allocations: 21.16 kB / 0.4975 GB, free: 6.176 MB / 330.7 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.00039/0.2875, allocations: 305.8 kB / 0.4978 GB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.2877, allocations: 72.03 kB / 0.4978 GB, free: 5.871 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/0.2888, allocations: 0.584 MB / 0.4984 GB, free: 5.543 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.2889, allocations: 9.438 kB / 0.4984 GB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.2889, allocations: 0 / 0.4984 GB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.2889, allocations: 5.234 kB / 0.4984 GB, free: 5.535 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001994/0.2909, allocations: 1.335 MB / 0.4997 GB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2909, allocations: 1.219 kB / 0.4997 GB, free: 4.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005509/0.2915, allocations: 111.4 kB / 0.4998 GB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.2915, allocations: 2.562 kB / 0.4998 GB, free: 4.57 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.767e-05/0.2915, allocations: 11.75 kB / 0.4998 GB, free: 4.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.982e-06/0.2915, allocations: 10.41 kB / 0.4999 GB, free: 4.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.2915, allocations: 5.312 kB / 0.4999 GB, free: 4.551 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.2931, allocations: 0.9416 MB / 0.5008 GB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.2934, allocations: 190.8 kB / 0.501 GB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.586e-05/0.2935, allocations: 12.38 kB / 0.501 GB, free: 3.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003759/0.2938, allocations: 48.81 kB / 0.501 GB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.294, allocations: 36.72 kB / 0.5011 GB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.294, allocations: 13.19 kB / 0.5011 GB, free: 3.777 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006375/0.2946, allocations: 420.1 kB / 0.5015 GB, free: 3.531 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2947, allocations: 0.8125 kB / 0.5015 GB, free: 3.531 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000885/0.2955, allocations: 259.5 kB / 0.5017 GB, free: 3.422 MB / 330.7 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.001897/0.2974, allocations: 1.489 MB / 0.5032 GB, free: 1.895 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00195/0.2994, allocations: 1.103 MB / 0.5042 GB, free: 0.7695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2994, allocations: 4.875 kB / 0.5043 GB, free: 0.7656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.2999, allocations: 262.4 kB / 0.5045 GB, free: 0.5078 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007779/0.3007, allocations: 133.2 kB / 0.5046 GB, free: 392 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008501/0.3092, allocations: 4.702 MB / 0.5092 GB, free: 11.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005082/0.3098, allocations: 0.9455 MB / 0.5101 GB, free: 10.59 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/0.3101, allocations: 263.3 kB / 0.5104 GB, free: 10.33 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.3102, allocations: 4 kB / 0.5104 GB, free: 10.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.409/3.719, allocations: 11.67 MB / 0.5218 GB, free: 14.64 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_PowerWorld_Test_PowerPlantTest1.fmu > PowerSystems_cpp_PowerSystems.Examples.PowerWorld.Test.PowerPlantTest1.pipe 2>&1)