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.001341/0.001341, allocations: 175 kB / 13.63 MB, free: 1.684 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.458/1.458, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.0008233/0.0008232, allocations: 78.78 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1837/0.1837, allocations: 37.98 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.36e-05/3.368e-05, allocations: 8 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 56.32 MB / 474.2 MB, free: 4.688 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4348/0.5511, allocations: 113.2 MB / 0.5736 GB, free: 5.805 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002881/0.5515, allocations: 94.97 kB / 0.5737 GB, free: 5.762 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08709/0.6386, allocations: 29.98 MB / 0.6029 GB, free: 12.02 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6387, allocations: 0 / 0.6029 GB, free: 12.02 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.326e-05/0.6388, allocations: 27.94 kB / 0.603 GB, free: 11.99 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.002887/0.6416, allocations: 1.041 MB / 0.604 GB, free: 10.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.6417, allocations: 8.031 kB / 0.604 GB, free: 10.95 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004034/0.6421, allocations: 145.8 kB / 0.6041 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001452/0.6436, allocations: 190.6 kB / 0.6043 GB, free: 10.67 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003405/0.647, allocations: 1.206 MB / 0.6055 GB, free: 9.621 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.818e-05/0.6471, allocations: 61.8 kB / 0.6055 GB, free: 9.586 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002692/0.6474, allocations: 90.89 kB / 0.6056 GB, free: 9.523 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.6493, allocations: 1.065 MB / 0.6067 GB, free: 8.715 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.93e-05/0.6494, allocations: 7.938 kB / 0.6067 GB, free: 8.707 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.661e-05/0.6495, allocations: 33.81 kB / 0.6067 GB, free: 8.695 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001081/0.6496, allocations: 64.53 kB / 0.6068 GB, free: 8.641 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/0.6511, allocations: 0.8423 MB / 0.6076 GB, free: 8.047 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006095/0.6572, allocations: 4.002 MB / 0.6115 GB, free: 4.484 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006695/0.6579, allocations: 436.5 kB / 0.6119 GB, free: 4.121 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003953/0.6583, allocations: 272.5 kB / 0.6122 GB, free: 3.938 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.078e-05/0.6584, allocations: 11.89 kB / 0.6122 GB, free: 3.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/0.6584, allocations: 46.31 kB / 0.6122 GB, free: 3.879 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.647e-06/0.6584, allocations: 0 / 0.6122 GB, free: 3.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=51): time 0.00312/0.6616, allocations: 1.519 MB / 0.6137 GB, free: 2.582 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.6616, allocations: 85.42 kB / 0.6138 GB, free: 2.484 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007034/0.6624, allocations: 0.5106 MB / 0.6143 GB, free: 2.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.467e-05/0.6624, allocations: 37.52 kB / 0.6143 GB, free: 2.039 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003343/0.6628, allocations: 456.6 kB / 0.6148 GB, free: 1.695 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001884/0.663, allocations: 196.6 kB / 0.615 GB, free: 1.527 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.663, allocations: 13.88 kB / 0.615 GB, free: 1.523 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.6632, allocations: 384.5 kB / 0.6153 GB, free: 1.168 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004254/0.6636, allocations: 239 kB / 0.6156 GB, free: 1.008 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005511/0.6642, allocations: 459 kB / 0.616 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000535/0.6647, allocations: 337.6 kB / 0.6163 GB, free: 332 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.6648, allocations: 0 / 0.6163 GB, free: 332 kB / 410.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002078/0.6668, allocations: 1.102 MB / 0.6174 GB, free: 15.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.128e-05/0.6669, allocations: 8 kB / 0.6174 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001358/0.6683, allocations: 0.7849 MB / 0.6182 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007286/0.669, allocations: 220.5 kB / 0.6184 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005492/0.6696, allocations: 154.5 kB / 0.6185 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005632/0.6752, allocations: 5.236 MB / 0.6236 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006319/0.6759, allocations: 35.89 kB / 0.6237 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.307e-05/0.676, allocations: 35.98 kB / 0.6237 GB, free: 8.973 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 () * 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.0002156/0.6762, allocations: 152.6 kB / 0.6239 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.6764, allocations: 67.16 kB / 0.6239 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001092/0.6775, allocations: 0.6008 MB / 0.6245 GB, free: 8.141 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.922e-06/0.6775, allocations: 4 kB / 0.6245 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.6775, allocations: 0 / 0.6245 GB, free: 8.137 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.6775, allocations: 7.984 kB / 0.6245 GB, free: 8.129 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002869/0.6804, allocations: 1.466 MB / 0.626 GB, free: 6.594 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.6804, allocations: 4 kB / 0.626 GB, free: 6.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006121/0.681, allocations: 123.9 kB / 0.6261 GB, free: 6.469 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.21e-05/0.681, allocations: 4 kB / 0.6261 GB, free: 6.465 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.148e-05/0.6811, allocations: 20.14 kB / 0.6261 GB, free: 6.445 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.099e-05/0.6811, allocations: 11.89 kB / 0.6261 GB, free: 6.434 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.6811, allocations: 4 kB / 0.6261 GB, free: 6.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.6825, allocations: 0.9727 MB / 0.6271 GB, free: 5.387 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000336/0.6828, allocations: 184.1 kB / 0.6272 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.6829, allocations: 16 kB / 0.6273 GB, free: 5.172 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/0.6833, allocations: 19.98 kB / 0.6273 GB, free: 5.152 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.548e-05/0.6834, allocations: 36.34 kB / 0.6273 GB, free: 5.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.54e-05/0.6834, allocations: 16 kB / 0.6273 GB, free: 5.102 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005627/0.684, allocations: 411.1 kB / 0.6277 GB, free: 4.703 MB / 426.7 MB Notification: Performance of sort global known variables: time 2e-07/0.684, allocations: 0 / 0.6277 GB, free: 4.703 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008887/0.6849, allocations: 216.2 kB / 0.6279 GB, free: 4.492 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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.001893/0.6868, allocations: 1.982 MB / 0.6299 GB, free: 2.434 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001729/0.6886, allocations: 1.01 MB / 0.6308 GB, free: 1.387 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.6886, allocations: 0 / 0.6308 GB, free: 1.387 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.689, allocations: 250.7 kB / 0.6311 GB, free: 1.145 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007051/0.6897, allocations: 143 kB / 0.6312 GB, free: 1.008 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003722/0.6934, allocations: 1.892 MB / 0.6331 GB, free: 15.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008433/0.6943, allocations: 1.102 MB / 0.6341 GB, free: 13.92 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005873/0.6949, allocations: 189.8 kB / 0.6343 GB, free: 13.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004656/0.6953, allocations: 323.3 kB / 0.6346 GB, free: 13.42 MB / 442.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6954, allocations: 0 / 0.6346 GB, free: 13.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03727/0.7326, allocations: 15.81 MB / 0.6501 GB, free: 13.63 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/0.7329, allocations: 198.3 kB / 0.6503 GB, free: 13.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.523/3.256, allocations: 0 / 0.6503 GB, free: 13.4 MB / 458.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