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.001318/0.001318, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.725/1.725, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000882/0.0008821, allocations: 80 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.176/0.176, allocations: 38 MB / 348.1 MB, free: 7.773 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.792e-05/1.793e-05, allocations: 0 / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 56.33 MB / 467 MB, free: 6.477 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5396, allocations: 112.5 MB / 0.5659 GB, free: 14.34 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.5399, allocations: 87.95 kB / 0.566 GB, free: 14.26 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08158/0.6215, allocations: 29.71 MB / 0.595 GB, free: 216 kB / 427.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.6216, allocations: 0 / 0.595 GB, free: 216 kB / 427.1 MB Notification: Performance of Transformations before backend: time 5.689e-05/0.6216, allocations: 28 kB / 0.5951 GB, free: 188 kB / 427.1 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.00203/0.6237, allocations: 1.045 MB / 0.5961 GB, free: 15.09 MB / 443.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.6237, allocations: 8.031 kB / 0.5961 GB, free: 15.08 MB / 443.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.6248, allocations: 194.6 kB / 0.5963 GB, free: 14.89 MB / 443.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003064/0.6279, allocations: 1.21 MB / 0.5974 GB, free: 13.64 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.676e-05/0.6279, allocations: 24 kB / 0.5975 GB, free: 13.61 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.6281, allocations: 51.91 kB / 0.5975 GB, free: 13.56 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001139/0.6292, allocations: 0.7106 MB / 0.5982 GB, free: 12.85 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001437/0.6307, allocations: 0.9494 MB / 0.5991 GB, free: 11.86 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.6307, allocations: 8 kB / 0.5991 GB, free: 11.85 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.396e-05/0.6308, allocations: 0 / 0.5991 GB, free: 11.85 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.6309, allocations: 65.97 kB / 0.5992 GB, free: 11.78 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005083/0.636, allocations: 3.822 MB / 0.6029 GB, free: 7.777 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006615/0.6367, allocations: 0.4962 MB / 0.6034 GB, free: 7.227 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003717/0.6371, allocations: 271 kB / 0.6037 GB, free: 6.957 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.014e-05/0.6372, allocations: 12.44 kB / 0.6037 GB, free: 6.941 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.6372, allocations: 38.94 kB / 0.6037 GB, free: 6.895 MB / 443.1 MB Notification: Performance of pre-optimization done (n=50): time 3.607e-06/0.6372, allocations: 4 kB / 0.6037 GB, free: 6.891 MB / 443.1 MB Notification: Performance of matching and sorting (n=53): time 0.002496/0.6397, allocations: 1.421 MB / 0.6051 GB, free: 5.418 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.25e-05/0.6398, allocations: 93.53 kB / 0.6052 GB, free: 5.309 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.6403, allocations: 426.1 kB / 0.6056 GB, free: 4.887 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 3.867e-05/0.6403, allocations: 25.7 kB / 0.6056 GB, free: 4.855 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.6407, allocations: 470.4 kB / 0.6061 GB, free: 4.387 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.6408, allocations: 189.2 kB / 0.6063 GB, free: 4.199 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.91e-05/0.6409, allocations: 0 / 0.6063 GB, free: 4.199 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.641, allocations: 374.8 kB / 0.6066 GB, free: 3.824 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003312/0.6414, allocations: 233.5 kB / 0.6069 GB, free: 3.598 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000503/0.6419, allocations: 449.3 kB / 0.6073 GB, free: 3.062 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004638/0.6424, allocations: 329.9 kB / 0.6076 GB, free: 2.738 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.6424, allocations: 0 / 0.6076 GB, free: 2.738 MB / 443.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001854/0.6442, allocations: 1.036 MB / 0.6086 GB, free: 1.668 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.6443, allocations: 8 kB / 0.6086 GB, free: 1.66 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001226/0.6455, allocations: 0.7608 MB / 0.6094 GB, free: 0.8711 MB / 443.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007007/0.6462, allocations: 234.2 kB / 0.6096 GB, free: 0.6328 MB / 443.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000517/0.6468, allocations: 147.8 kB / 0.6097 GB, free: 500 kB / 443.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005498/0.6523, allocations: 5.25 MB / 0.6149 GB, free: 10.88 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006803/0.653, allocations: 23.91 kB / 0.6149 GB, free: 10.86 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.511e-05/0.653, allocations: 35.95 kB / 0.6149 GB, free: 10.82 MB / 459.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: generator.psi_s[2]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002368/0.6533, allocations: 122.7 kB / 0.615 GB, free: 10.7 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007637/0.6541, allocations: 0.5152 MB / 0.6155 GB, free: 10.18 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.6542, allocations: 59.34 kB / 0.6156 GB, free: 10.12 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009621/0.6551, allocations: 0.5726 MB / 0.6161 GB, free: 9.535 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.6551, allocations: 8 kB / 0.6162 GB, free: 9.527 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.6552, allocations: 3.953 kB / 0.6162 GB, free: 9.523 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.6552, allocations: 3.984 kB / 0.6162 GB, free: 9.52 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.6575, allocations: 1.343 MB / 0.6175 GB, free: 8.117 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6575, allocations: 4 kB / 0.6175 GB, free: 8.113 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/0.6581, allocations: 132 kB / 0.6176 GB, free: 7.984 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.6581, allocations: 4 kB / 0.6176 GB, free: 7.98 MB / 459.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/0.6581, allocations: 11.98 kB / 0.6176 GB, free: 7.969 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.6582, allocations: 7.938 kB / 0.6176 GB, free: 7.961 MB / 459.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.6582, allocations: 0 / 0.6176 GB, free: 7.961 MB / 459.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.6594, allocations: 0.9689 MB / 0.6186 GB, free: 6.922 MB / 459.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.6597, allocations: 188.1 kB / 0.6188 GB, free: 6.719 MB / 459.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/0.6598, allocations: 7.984 kB / 0.6188 GB, free: 6.711 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.6601, allocations: 15.92 kB / 0.6188 GB, free: 6.695 MB / 459.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.997e-05/0.6602, allocations: 32.39 kB / 0.6188 GB, free: 6.664 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.6602, allocations: 16 kB / 0.6188 GB, free: 6.648 MB / 459.1 MB Notification: Performance of sorting global known variables: time 0.0003744/0.6606, allocations: 326.9 kB / 0.6191 GB, free: 6.332 MB / 459.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6606, allocations: 0 / 0.6191 GB, free: 6.332 MB / 459.1 MB Notification: Performance of remove unused functions: time 0.0009089/0.6615, allocations: 200 kB / 0.6193 GB, free: 6.137 MB / 459.1 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 (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.00196/0.6635, allocations: 1.961 MB / 0.6212 GB, free: 4.105 MB / 459.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.6651, allocations: 0.9698 MB / 0.6222 GB, free: 3.109 MB / 459.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6651, allocations: 1.312 kB / 0.6222 GB, free: 3.109 MB / 459.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003613/0.6655, allocations: 249.8 kB / 0.6224 GB, free: 2.863 MB / 459.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006594/0.6662, allocations: 122.3 kB / 0.6225 GB, free: 2.746 MB / 459.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.6695, allocations: 1.853 MB / 0.6244 GB, free: 0.8281 MB / 459.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007708/0.6703, allocations: 1.102 MB / 0.6254 GB, free: 15.7 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.0005387/0.6709, allocations: 185.4 kB / 0.6256 GB, free: 15.51 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004468/0.6713, allocations: 315.3 kB / 0.6259 GB, free: 15.2 MB / 475.1 MB Notification: Performance of SimCode: time 4.01e-07/0.6713, allocations: 4 kB / 0.6259 GB, free: 15.2 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03977/0.7111, allocations: 14.1 MB / 0.6397 GB, free: 1.105 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002545/0.7114, allocations: 166.1 kB / 0.6398 GB, free: 0.8984 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.39/3.101, allocations: 0 / 0.6398 GB, free: 0.8984 MB / 475.1 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