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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001767/0.001767, allocations: 179.4 kB / 8.351 MB, free: 0.7227 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.632/1.632, allocations: 194.3 MB / 203.1 MB, free: 12.95 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.001759/0.001759, allocations: 120.1 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1539/0.1539, allocations: 37.92 MB / 330.9 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.457e-05/2.458e-05, allocations: 4 kB / 390.5 MB, free: 6.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3342/0.3343, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4627/0.797, allocations: 107.4 MB / 0.5382 GB, free: 91.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.7974, allocations: 89.2 kB / 0.5383 GB, free: 91.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1043/0.9018, allocations: 29.72 MB / 0.5673 GB, free: 61.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.9018, allocations: 0 / 0.5673 GB, free: 61.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.784e-05/0.9019, allocations: 20 kB / 0.5673 GB, free: 61.71 MB / 378.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.002163/0.9041, allocations: 1.041 MB / 0.5683 GB, free: 60.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.9041, allocations: 8.031 kB / 0.5683 GB, free: 60.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.9057, allocations: 198.6 kB / 0.5685 GB, free: 60.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003729/0.9094, allocations: 1.206 MB / 0.5697 GB, free: 59.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.458e-05/0.9095, allocations: 24 kB / 0.5697 GB, free: 59.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002161/0.9097, allocations: 52 kB / 0.5698 GB, free: 59.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001585/0.9113, allocations: 0.7028 MB / 0.5704 GB, free: 58.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001882/0.9132, allocations: 0.956 MB / 0.5714 GB, free: 57.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.673e-05/0.9133, allocations: 3.906 kB / 0.5714 GB, free: 57.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.856e-05/0.9134, allocations: 4 kB / 0.5714 GB, free: 57.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/0.9135, allocations: 61.97 kB / 0.5715 GB, free: 57.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006393/0.9199, allocations: 3.826 MB / 0.5752 GB, free: 53.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007334/0.9207, allocations: 0.5001 MB / 0.5757 GB, free: 52.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004636/0.9212, allocations: 286.6 kB / 0.5759 GB, free: 52.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.067e-05/0.9213, allocations: 4.438 kB / 0.576 GB, free: 52.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.9213, allocations: 42.94 kB / 0.576 GB, free: 52.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 4.698e-06/0.9213, allocations: 0 / 0.576 GB, free: 52.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002933/0.9242, allocations: 1.446 MB / 0.5774 GB, free: 50.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.9243, allocations: 89.58 kB / 0.5775 GB, free: 50.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005767/0.9249, allocations: 426 kB / 0.5779 GB, free: 50.38 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.9249, allocations: 25.7 kB / 0.5779 GB, free: 50.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002795/0.9252, allocations: 474.3 kB / 0.5784 GB, free: 49.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.9254, allocations: 193.2 kB / 0.5786 GB, free: 49.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.9254, allocations: 0 / 0.5786 GB, free: 49.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.9256, allocations: 378.8 kB / 0.5789 GB, free: 49.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004569/0.9261, allocations: 229.5 kB / 0.5791 GB, free: 49.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000575/0.9266, allocations: 457.3 kB / 0.5796 GB, free: 48.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006009/0.9273, allocations: 325.9 kB / 0.5799 GB, free: 48.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.9273, allocations: 7.953 kB / 0.5799 GB, free: 48.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.00245/0.9297, allocations: 1.029 MB / 0.5809 GB, free: 47.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.9298, allocations: 9.719 kB / 0.5809 GB, free: 47.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001715/0.9315, allocations: 0.7685 MB / 0.5817 GB, free: 46.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000962/0.9325, allocations: 226.3 kB / 0.5819 GB, free: 46.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007537/0.9332, allocations: 155.8 kB / 0.582 GB, free: 45.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005827/0.9391, allocations: 5.25 MB / 0.5871 GB, free: 40.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008098/0.9399, allocations: 19.97 kB / 0.5872 GB, free: 40.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/0.94, allocations: 36 kB / 0.5872 GB, free: 40.3 MB / 378.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.0002274/0.9402, allocations: 128.9 kB / 0.5873 GB, free: 40.16 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001024/0.9413, allocations: 0.519 MB / 0.5878 GB, free: 39.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000125/0.9414, allocations: 63.31 kB / 0.5879 GB, free: 39.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001164/0.9426, allocations: 0.5727 MB / 0.5885 GB, free: 38.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.9426, allocations: 4 kB / 0.5885 GB, free: 38.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.9426, allocations: 4 kB / 0.5885 GB, free: 38.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.288e-06/0.9426, allocations: 3.984 kB / 0.5885 GB, free: 38.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002927/0.9456, allocations: 1.363 MB / 0.5898 GB, free: 37.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.9456, allocations: 0 / 0.5898 GB, free: 37.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008948/0.9465, allocations: 131.8 kB / 0.5899 GB, free: 37.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.9465, allocations: 4 kB / 0.5899 GB, free: 37.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.995e-05/0.9466, allocations: 11.98 kB / 0.5899 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.9466, allocations: 4 kB / 0.5899 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.9466, allocations: 0 / 0.5899 GB, free: 37.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/0.9481, allocations: 0.9878 MB / 0.5909 GB, free: 36.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/0.9484, allocations: 176.2 kB / 0.5911 GB, free: 36.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.9485, allocations: 11.98 kB / 0.5911 GB, free: 36.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004688/0.949, allocations: 11.98 kB / 0.5911 GB, free: 36.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.411e-05/0.9491, allocations: 36.34 kB / 0.5911 GB, free: 36.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.393e-05/0.9491, allocations: 12 kB / 0.5911 GB, free: 36.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004397/0.9496, allocations: 326.9 kB / 0.5915 GB, free: 35.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.9496, allocations: 3.938 kB / 0.5915 GB, free: 35.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0013/0.9509, allocations: 200 kB / 0.5916 GB, free: 35.57 MB / 378.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 (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.001867/0.9528, allocations: 1.97 MB / 0.5936 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001961/0.9547, allocations: 0.9837 MB / 0.5945 GB, free: 32.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.9548, allocations: 4.156 kB / 0.5945 GB, free: 32.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.9552, allocations: 257.4 kB / 0.5948 GB, free: 32.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008477/0.9561, allocations: 113.9 kB / 0.5949 GB, free: 32.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004139/0.9602, allocations: 1.857 MB / 0.5967 GB, free: 30.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006883/0.9609, allocations: 1.098 MB / 0.5978 GB, free: 29.11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008063/0.9618, allocations: 193.5 kB / 0.598 GB, free: 28.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004917/0.9623, allocations: 319.3 kB / 0.5983 GB, free: 28.6 MB / 378.7 MB Notification: Performance of SimCode: time 8.62e-07/0.9623, allocations: 0 / 0.5983 GB, free: 28.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0428/1.005, allocations: 14.13 MB / 0.6121 GB, free: 14.45 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001951/1.005, allocations: 142.3 kB / 0.6122 GB, free: 14.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.547/3.552, allocations: 7.875 kB / 0.6122 GB, free: 14.25 MB / 378.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)