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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 188.3 kB / 8.139 MB, free: 2.18 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.32/1.32, allocations: 205.2 MB / 213.7 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.0009054/0.0009054, allocations: 92.78 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1722/0.1722, allocations: 37.97 MB / 347.7 MB, free: 7.457 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2072/0.3795, allocations: 62.44 MB / 410.1 MB, free: 46.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.4815, allocations: 56.31 MB / 466.4 MB, free: 6.355 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3008/0.7823, allocations: 112.5 MB / 0.5653 GB, free: 13.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.7826, allocations: 95.94 kB / 0.5654 GB, free: 13.87 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.0849/0.8676, allocations: 30.55 MB / 0.5953 GB, free: 14.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.8676, allocations: 12 kB / 0.5953 GB, free: 14.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001234/0.8689, allocations: 194.5 kB / 0.5955 GB, free: 14.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003339/0.8722, allocations: 1.208 MB / 0.5966 GB, free: 13.48 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.87e-05/0.8723, allocations: 24 kB / 0.5967 GB, free: 13.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002147/0.8725, allocations: 56 kB / 0.5967 GB, free: 13.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001325/0.8738, allocations: 0.7302 MB / 0.5974 GB, free: 12.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/0.8755, allocations: 0.9755 MB / 0.5984 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.2e-05/0.8756, allocations: 3.906 kB / 0.5984 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.8756, allocations: 0 / 0.5984 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.941e-05/0.8757, allocations: 69.97 kB / 0.5985 GB, free: 11.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005598/0.8813, allocations: 3.841 MB / 0.6022 GB, free: 7.547 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004689/0.8818, allocations: 301.7 kB / 0.6025 GB, free: 7.238 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003557/0.8822, allocations: 271 kB / 0.6028 GB, free: 6.969 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.157e-05/0.8823, allocations: 12.38 kB / 0.6028 GB, free: 6.953 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.8823, allocations: 38.98 kB / 0.6028 GB, free: 6.906 MB / 442.7 MB Notification: Performance of pre-optimization done (n=50): time 3.437e-06/0.8823, allocations: 0 / 0.6028 GB, free: 6.906 MB / 442.7 MB Notification: Performance of matching and sorting (n=53): time 0.002619/0.8849, allocations: 1.443 MB / 0.6042 GB, free: 5.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.885, allocations: 93.52 kB / 0.6043 GB, free: 5.301 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005636/0.8856, allocations: 426.1 kB / 0.6047 GB, free: 4.879 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.991e-05/0.8856, allocations: 25.7 kB / 0.6047 GB, free: 4.848 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.8859, allocations: 402.4 kB / 0.6051 GB, free: 4.445 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.8861, allocations: 185.2 kB / 0.6053 GB, free: 4.262 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.8861, allocations: 0 / 0.6053 GB, free: 4.262 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.8863, allocations: 374.8 kB / 0.6056 GB, free: 3.887 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.8867, allocations: 245.5 kB / 0.6059 GB, free: 3.648 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005021/0.8872, allocations: 457.4 kB / 0.6063 GB, free: 3.105 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005058/0.8877, allocations: 338.9 kB / 0.6066 GB, free: 2.773 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.8877, allocations: 0 / 0.6066 GB, free: 2.773 MB / 442.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002042/0.8897, allocations: 1.056 MB / 0.6077 GB, free: 1.684 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.8898, allocations: 4 kB / 0.6077 GB, free: 1.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001382/0.8912, allocations: 0.7816 MB / 0.6084 GB, free: 0.875 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007962/0.892, allocations: 238.3 kB / 0.6087 GB, free: 0.6328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005497/0.8925, allocations: 139.8 kB / 0.6088 GB, free: 0.4961 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00523/0.8978, allocations: 5.001 MB / 0.6137 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006168/0.8984, allocations: 23.89 kB / 0.6137 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.8985, allocations: 32 kB / 0.6137 GB, free: 11.08 MB / 458.7 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.000273/0.8988, allocations: 124.8 kB / 0.6139 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001835/0.899, allocations: 67.14 kB / 0.6139 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.9001, allocations: 0.5721 MB / 0.6145 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.666e-06/0.9001, allocations: 7.906 kB / 0.6145 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.9001, allocations: 4 kB / 0.6145 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.106e-06/0.9002, allocations: 3.984 kB / 0.6145 GB, free: 10.29 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/0.903, allocations: 1.53 MB / 0.616 GB, free: 8.664 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.903, allocations: 4 kB / 0.616 GB, free: 8.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006834/0.9037, allocations: 132.2 kB / 0.6161 GB, free: 8.531 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/0.9038, allocations: 12 kB / 0.6161 GB, free: 8.52 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.54e-05/0.9038, allocations: 11.98 kB / 0.6161 GB, free: 8.508 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.9038, allocations: 4 kB / 0.6161 GB, free: 8.504 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/0.9038, allocations: 15.88 kB / 0.6162 GB, free: 8.488 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001322/0.9052, allocations: 1.173 MB / 0.6173 GB, free: 7.152 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001738/0.9069, allocations: 1.848 MB / 0.6191 GB, free: 5.137 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002862/0.9072, allocations: 184.2 kB / 0.6193 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.9073, allocations: 11.98 kB / 0.6193 GB, free: 4.926 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.9077, allocations: 11.98 kB / 0.6193 GB, free: 4.914 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.238e-05/0.9078, allocations: 43.62 kB / 0.6194 GB, free: 4.871 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.9078, allocations: 23.98 kB / 0.6194 GB, free: 4.848 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003719/0.9082, allocations: 322.9 kB / 0.6197 GB, free: 4.535 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0014/0.9096, allocations: 192 kB / 0.6199 GB, free: 4.348 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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.0002322/0.9098, allocations: 144.3 kB / 0.62 GB, free: 4.199 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.9114, allocations: 0.9529 MB / 0.6209 GB, free: 3.219 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.9114, allocations: 8.375 kB / 0.6209 GB, free: 3.211 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003374/0.9117, allocations: 259.7 kB / 0.6212 GB, free: 2.957 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.9124, allocations: 108.6 kB / 0.6213 GB, free: 2.852 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003029/0.9154, allocations: 1.748 MB / 0.623 GB, free: 1.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008114/0.9162, allocations: 1.169 MB / 0.6241 GB, free: 15.82 MB / 474.7 MB Notification: Performance of SimCode: time 5.91e-07/0.9162, allocations: 0 / 0.6241 GB, free: 15.82 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