Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.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.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",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.001714/0.001713, allocations: 183.7 kB / 15.76 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.213/2.213, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001279/0.001278, allocations: 98.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2915/0.2915, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006431/0.000643, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1324, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5312/0.6637, allocations: 113.3 MB / 0.5785 GB, free: 2.824 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/0.6641, allocations: 96.45 kB / 0.5786 GB, free: 2.773 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1348/0.7989, allocations: 30.01 MB / 0.6079 GB, free: 9.012 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.799, allocations: 0 / 0.6079 GB, free: 9.012 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.947e-05/0.7991, allocations: 23.94 kB / 0.6079 GB, free: 8.988 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.003581/0.8027, allocations: 1.153 MB / 0.6091 GB, free: 7.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.8027, allocations: 8.031 kB / 0.6091 GB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003538/0.8031, allocations: 138.3 kB / 0.6092 GB, free: 7.746 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001861/0.805, allocations: 194.6 kB / 0.6094 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005274/0.8103, allocations: 1.232 MB / 0.6106 GB, free: 6.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.849e-05/0.8104, allocations: 62.23 kB / 0.6107 GB, free: 6.445 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003006/0.8107, allocations: 86.44 kB / 0.6107 GB, free: 6.387 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002713/0.8134, allocations: 1.08 MB / 0.6118 GB, free: 5.562 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.205e-05/0.8135, allocations: 4 kB / 0.6118 GB, free: 5.559 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001212/0.8137, allocations: 30.12 kB / 0.6118 GB, free: 5.551 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.8138, allocations: 68.77 kB / 0.6119 GB, free: 5.492 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002281/0.8161, allocations: 0.8511 MB / 0.6127 GB, free: 4.891 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008718/0.8249, allocations: 4.007 MB / 0.6166 GB, free: 1.324 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009699/0.8259, allocations: 427.3 kB / 0.617 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.548e-05/0.826, allocations: 8.484 kB / 0.6171 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.826, allocations: 54.77 kB / 0.6171 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 2.845e-06/0.8261, allocations: 0 / 0.6171 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of matching and sorting (n=51): time 0.00496/0.831, allocations: 1.718 MB / 0.6188 GB, free: 15.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.8311, allocations: 85.48 kB / 0.6189 GB, free: 15.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009597/0.8321, allocations: 0.5112 MB / 0.6194 GB, free: 14.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.57e-05/0.8322, allocations: 39.02 kB / 0.6194 GB, free: 14.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003869/0.8326, allocations: 499.5 kB / 0.6199 GB, free: 14.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002579/0.8329, allocations: 183.5 kB / 0.6201 GB, free: 14.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-05/0.8329, allocations: 20.5 kB / 0.6201 GB, free: 14.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.8331, allocations: 336.4 kB / 0.6204 GB, free: 14.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006485/0.8338, allocations: 250.2 kB / 0.6206 GB, free: 13.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008151/0.8346, allocations: 468.1 kB / 0.6211 GB, free: 13.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008498/0.8355, allocations: 340.7 kB / 0.6214 GB, free: 13.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.517e-06/0.8355, allocations: 4 kB / 0.6214 GB, free: 13.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.003201/0.8387, allocations: 1.068 MB / 0.6225 GB, free: 12.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.8388, allocations: 8 kB / 0.6225 GB, free: 12.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002404/0.8412, allocations: 0.7934 MB / 0.6232 GB, free: 11.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.8424, allocations: 219.5 kB / 0.6234 GB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/0.8435, allocations: 158.4 kB / 0.6236 GB, free: 11.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008627/0.8522, allocations: 5.334 MB / 0.6288 GB, free: 5.938 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009721/0.8532, allocations: 43.94 kB / 0.6288 GB, free: 5.895 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.098e-05/0.8533, allocations: 39.94 kB / 0.6289 GB, free: 5.855 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * 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 initialization (80): * Single equations (assignments): 77 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000743/0.8541, allocations: 309.4 kB / 0.6292 GB, free: 5.543 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.8542, allocations: 67.16 kB / 0.6292 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.8559, allocations: 0.6089 MB / 0.6298 GB, free: 4.863 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.856, allocations: 4 kB / 0.6298 GB, free: 4.859 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.856, allocations: 4 kB / 0.6298 GB, free: 4.855 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.856, allocations: 3.984 kB / 0.6298 GB, free: 4.852 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004214/0.8602, allocations: 1.486 MB / 0.6313 GB, free: 3.289 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.8603, allocations: 0 / 0.6313 GB, free: 3.289 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001221/0.8615, allocations: 123.9 kB / 0.6314 GB, free: 3.168 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.8615, allocations: 4 kB / 0.6314 GB, free: 3.164 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.238e-05/0.8616, allocations: 12 kB / 0.6314 GB, free: 3.152 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.8616, allocations: 4 kB / 0.6314 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.757e-06/0.8616, allocations: 11.89 kB / 0.6314 GB, free: 3.137 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.8639, allocations: 0.9924 MB / 0.6324 GB, free: 2.074 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004454/0.8643, allocations: 180.2 kB / 0.6326 GB, free: 1.879 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.8645, allocations: 12 kB / 0.6326 GB, free: 1.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006147/0.8651, allocations: 19.98 kB / 0.6326 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.8652, allocations: 48.22 kB / 0.6327 GB, free: 1.801 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.937e-05/0.8653, allocations: 16 kB / 0.6327 GB, free: 1.785 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008214/0.8661, allocations: 411 kB / 0.6331 GB, free: 1.387 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.8661, allocations: 0 / 0.6331 GB, free: 1.387 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001163/0.8673, allocations: 224 kB / 0.6333 GB, free: 1.168 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.w,generator.phi_el,generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 2 (system.initime,$cse4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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.002844/0.8702, allocations: 2 MB / 0.6352 GB, free: 15.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002692/0.8729, allocations: 1.017 MB / 0.6362 GB, free: 14.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.8729, allocations: 0 / 0.6362 GB, free: 14.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006778/0.8736, allocations: 268 kB / 0.6365 GB, free: 13.78 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.8748, allocations: 135.1 kB / 0.6366 GB, free: 13.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.89, allocations: 10.11 MB / 0.6465 GB, free: 3.297 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001052/0.8911, allocations: 1.094 MB / 0.6476 GB, free: 2.172 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007786/0.8919, allocations: 335.3 kB / 0.6479 GB, free: 1.844 MB / 442.7 MB Notification: Performance of SimCode: time 1.492e-06/0.8919, allocations: 0 / 0.6479 GB, free: 1.844 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.5/4.392, allocations: 18.69 MB / 0.6661 GB, free: 15.13 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)