Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_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.2+maint.om/package.mo): time 0.0009898/0.0009899, allocations: 182.4 kB / 8.134 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.003/1.003, allocations: 194.2 MB / 202.8 MB, free: 8.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001567/0.001567, allocations: 123.7 kB / 247.7 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.154/0.154, allocations: 37.91 MB / 330.5 MB, free: 6.93 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1673/0.3213, allocations: 59.35 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07575/0.397, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2358/0.6329, allocations: 107.4 MB / 0.5376 GB, free: 408 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.6331, allocations: 86.67 kB / 0.5377 GB, free: 364 kB / 346.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.07993/0.7131, allocations: 30.57 MB / 0.5675 GB, free: 6.492 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.7131, allocations: 8 kB / 0.5675 GB, free: 6.484 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001119/0.7142, allocations: 198.5 kB / 0.5677 GB, free: 6.289 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.7172, allocations: 1.201 MB / 0.5689 GB, free: 5.258 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.7173, allocations: 24 kB / 0.5689 GB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/0.7174, allocations: 59.83 kB / 0.569 GB, free: 5.176 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001095/0.7185, allocations: 0.7326 MB / 0.5697 GB, free: 4.676 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.7199, allocations: 0.9722 MB / 0.5706 GB, free: 3.895 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.024e-05/0.72, allocations: 4 kB / 0.5706 GB, free: 3.891 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.645e-05/0.72, allocations: 3.906 kB / 0.5706 GB, free: 3.887 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.55e-05/0.7201, allocations: 72.02 kB / 0.5707 GB, free: 3.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004574/0.7247, allocations: 3.824 MB / 0.5744 GB, free: 400 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004159/0.7252, allocations: 298 kB / 0.5747 GB, free: 176 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.7255, allocations: 270.8 kB / 0.575 GB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.313e-05/0.7256, allocations: 12.42 kB / 0.575 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.7256, allocations: 40.94 kB / 0.575 GB, free: 15.93 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 1.994e-06/0.7256, allocations: 0 / 0.575 GB, free: 15.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.00222/0.7278, allocations: 1.465 MB / 0.5765 GB, free: 14.67 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.7279, allocations: 85.55 kB / 0.5766 GB, free: 14.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004277/0.7283, allocations: 428.4 kB / 0.577 GB, free: 14.23 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.825e-05/0.7284, allocations: 25.7 kB / 0.577 GB, free: 14.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.7286, allocations: 404.2 kB / 0.5774 GB, free: 13.84 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.7287, allocations: 193 kB / 0.5776 GB, free: 13.68 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.7287, allocations: 3.938 kB / 0.5776 GB, free: 13.67 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.7289, allocations: 378.2 kB / 0.5779 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003349/0.7292, allocations: 244.7 kB / 0.5782 GB, free: 13.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004378/0.7296, allocations: 454.6 kB / 0.5786 GB, free: 12.71 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.7301, allocations: 340.7 kB / 0.5789 GB, free: 12.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.7301, allocations: 4 kB / 0.5789 GB, free: 12.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001792/0.7319, allocations: 1.047 MB / 0.5799 GB, free: 11.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.7319, allocations: 4 kB / 0.5799 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001308/0.7333, allocations: 0.7897 MB / 0.5807 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007436/0.734, allocations: 240.4 kB / 0.5809 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005246/0.7345, allocations: 151 kB / 0.5811 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004779/0.7393, allocations: 4.994 MB / 0.586 GB, free: 5.574 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004271/0.7398, allocations: 20.05 kB / 0.586 GB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.103e-05/0.7399, allocations: 36 kB / 0.586 GB, free: 5.52 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: generator.psi_s[1]: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 (81): * Single equations (assignments): 78 * 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.00018/0.74, allocations: 124.6 kB / 0.5861 GB, free: 5.391 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.7401, allocations: 63.25 kB / 0.5862 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008989/0.7411, allocations: 0.5876 MB / 0.5868 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.7411, allocations: 4 kB / 0.5868 GB, free: 4.727 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.349e-06/0.7411, allocations: 8 kB / 0.5868 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.7411, allocations: 0 / 0.5868 GB, free: 4.719 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002448/0.7435, allocations: 1.542 MB / 0.5883 GB, free: 3.086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.7436, allocations: 7.938 kB / 0.5883 GB, free: 3.078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006736/0.7442, allocations: 131.8 kB / 0.5884 GB, free: 2.949 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.7443, allocations: 8.469 kB / 0.5884 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.856e-05/0.7443, allocations: 12 kB / 0.5884 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.456e-06/0.7443, allocations: 15.83 kB / 0.5885 GB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.7443, allocations: 4 kB / 0.5885 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001239/0.7456, allocations: 1.179 MB / 0.5896 GB, free: 1.566 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00171/0.7473, allocations: 1.867 MB / 0.5914 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.7476, allocations: 180.2 kB / 0.5916 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.7477, allocations: 12 kB / 0.5916 GB, free: 15.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003595/0.7481, allocations: 11.98 kB / 0.5916 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.265e-05/0.7481, allocations: 43.8 kB / 0.5917 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.7482, allocations: 23.98 kB / 0.5917 GB, free: 15.25 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000335/0.7485, allocations: 326.9 kB / 0.592 GB, free: 14.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001332/0.7498, allocations: 196 kB / 0.5922 GB, free: 14.75 MB / 410.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 (55): * Single equations (assignments): 54 * 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.0002105/0.7501, allocations: 143.9 kB / 0.5923 GB, free: 14.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.7515, allocations: 0.9692 MB / 0.5933 GB, free: 13.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.7515, allocations: 4.125 kB / 0.5933 GB, free: 13.59 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003423/0.7518, allocations: 271.6 kB / 0.5935 GB, free: 13.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/0.7524, allocations: 117.9 kB / 0.5937 GB, free: 13.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.7552, allocations: 1.745 MB / 0.5954 GB, free: 11.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008404/0.756, allocations: 1.169 MB / 0.5965 GB, free: 10.19 MB / 410.7 MB Notification: Performance of SimCode: time 2.81e-07/0.756, allocations: 0 / 0.5965 GB, free: 10.19 MB / 410.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)