Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_latest_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.001037/0.001037, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.191/1.191, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007975/0.0007974, allocations: 99.94 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1563/0.1563, allocations: 38.06 MB / 357.2 MB, free: 1.891 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003043/0.0003043, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2326, allocations: 56.32 MB / 480.4 MB, free: 9.547 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.3622, allocations: 113.3 MB / 0.5798 GB, free: 5.102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.3625, allocations: 99.94 kB / 0.5799 GB, free: 5.004 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0766/0.4391, allocations: 30 MB / 0.6092 GB, free: 6.637 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4391, allocations: 0 / 0.6092 GB, free: 6.637 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.805e-05/0.4392, allocations: 31.88 kB / 0.6092 GB, free: 6.605 MB / 442.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.001938/0.4411, allocations: 1.146 MB / 0.6103 GB, free: 5.406 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.4412, allocations: 12.03 kB / 0.6103 GB, free: 5.395 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.4414, allocations: 135.5 kB / 0.6105 GB, free: 5.254 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009753/0.4423, allocations: 190.7 kB / 0.6106 GB, free: 5.066 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.4452, allocations: 1.235 MB / 0.6119 GB, free: 3.785 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.4453, allocations: 58 kB / 0.6119 GB, free: 3.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.4454, allocations: 91.97 kB / 0.612 GB, free: 3.641 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.447, allocations: 1.077 MB / 0.613 GB, free: 2.512 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.447, allocations: 4 kB / 0.613 GB, free: 2.508 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.459e-05/0.4471, allocations: 35.98 kB / 0.6131 GB, free: 2.473 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.286e-05/0.4472, allocations: 61.97 kB / 0.6131 GB, free: 2.414 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.4485, allocations: 0.8625 MB / 0.614 GB, free: 1.547 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004789/0.4533, allocations: 4.005 MB / 0.6179 GB, free: 13.34 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005606/0.4539, allocations: 432.7 kB / 0.6183 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.4539, allocations: 8.422 kB / 0.6183 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.4539, allocations: 46.89 kB / 0.6184 GB, free: 12.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=48): time 2.434e-06/0.454, allocations: 4 kB / 0.6184 GB, free: 12.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=51): time 0.002721/0.4567, allocations: 1.721 MB / 0.62 GB, free: 11.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.4568, allocations: 81.55 kB / 0.6201 GB, free: 10.95 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005489/0.4573, allocations: 0.5149 MB / 0.6206 GB, free: 10.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.4574, allocations: 29.7 kB / 0.6207 GB, free: 10.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000287/0.4576, allocations: 466.5 kB / 0.6211 GB, free: 9.926 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001423/0.4578, allocations: 197.4 kB / 0.6213 GB, free: 9.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.252e-05/0.4578, allocations: 16 kB / 0.6213 GB, free: 9.715 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.458, allocations: 374.8 kB / 0.6217 GB, free: 9.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.4584, allocations: 249.8 kB / 0.6219 GB, free: 9.098 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004961/0.4589, allocations: 472.9 kB / 0.6224 GB, free: 8.539 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000463/0.4593, allocations: 334.6 kB / 0.6227 GB, free: 8.215 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.4593, allocations: 4 kB / 0.6227 GB, free: 8.211 MB / 458.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001826/0.4612, allocations: 1.111 MB / 0.6238 GB, free: 7.066 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.4612, allocations: 8 kB / 0.6238 GB, free: 7.059 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001295/0.4625, allocations: 0.7917 MB / 0.6245 GB, free: 6.234 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007028/0.4632, allocations: 222.5 kB / 0.6248 GB, free: 6.008 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005095/0.4637, allocations: 151.7 kB / 0.6249 GB, free: 5.859 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004925/0.4687, allocations: 5.334 MB / 0.6301 GB, free: 124 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004441/0.4691, allocations: 44.03 kB / 0.6301 GB, free: 80 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-05/0.4692, allocations: 31.98 kB / 0.6302 GB, free: 48 kB / 458.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.0004315/0.4696, allocations: 309.4 kB / 0.6305 GB, free: 15.73 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.302e-05/0.4697, allocations: 67.16 kB / 0.6305 GB, free: 15.67 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009059/0.4706, allocations: 0.6128 MB / 0.6311 GB, free: 15.05 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.4707, allocations: 8 kB / 0.6311 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-06/0.4707, allocations: 0 / 0.6311 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.4707, allocations: 3.984 kB / 0.6311 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002255/0.4729, allocations: 1.49 MB / 0.6326 GB, free: 13.47 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.473, allocations: 4 kB / 0.6326 GB, free: 13.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005836/0.4736, allocations: 115.9 kB / 0.6327 GB, free: 13.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.714e-06/0.4736, allocations: 4 kB / 0.6327 GB, free: 13.35 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.7e-05/0.4736, allocations: 16 kB / 0.6327 GB, free: 13.34 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.4736, allocations: 4 kB / 0.6327 GB, free: 13.33 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.4736, allocations: 7.891 kB / 0.6327 GB, free: 13.32 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.4748, allocations: 0.9886 MB / 0.6337 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.475, allocations: 188.1 kB / 0.6339 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.823e-05/0.4751, allocations: 16 kB / 0.6339 GB, free: 12.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.4754, allocations: 19.98 kB / 0.6339 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.4755, allocations: 44.28 kB / 0.634 GB, free: 11.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.4755, allocations: 19.94 kB / 0.634 GB, free: 11.96 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004151/0.4759, allocations: 411 kB / 0.6344 GB, free: 11.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.476, allocations: 0 / 0.6344 GB, free: 11.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006417/0.4766, allocations: 228 kB / 0.6346 GB, free: 11.34 MB / 474.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.001593/0.4782, allocations: 1.993 MB / 0.6365 GB, free: 9.281 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.4796, allocations: 1.017 MB / 0.6375 GB, free: 8.227 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4796, allocations: 0 / 0.6375 GB, free: 8.227 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.48, allocations: 267.6 kB / 0.6378 GB, free: 7.965 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005577/0.4806, allocations: 139.2 kB / 0.6379 GB, free: 7.828 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1603/0.6409, allocations: 10.02 MB / 0.6477 GB, free: 133.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005868/0.6415, allocations: 1.095 MB / 0.6488 GB, free: 132.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0005639/0.6421, allocations: 192.1 kB / 0.649 GB, free: 132.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.6425, allocations: 325.8 kB / 0.6493 GB, free: 132.7 MB / 474.7 MB Notification: Performance of SimCode: time 7.61e-07/0.6425, allocations: 0.9062 kB / 0.6493 GB, free: 132.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.6736, allocations: 15.88 MB / 0.6648 GB, free: 132 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/0.6738, allocations: 233.9 kB / 0.665 GB, free: 131.8 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.878, allocations: 4 kB / 0.665 GB, free: 131.7 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.mat does not exist to compare? outputFormat=mat