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.001123/0.001123, allocations: 180 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.258/1.258, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001643/0.001643, allocations: 112.2 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1647/0.1647, allocations: 37.99 MB / 340.1 MB, free: 1.363 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003861/0.0003863, allocations: 19.98 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.088/0.0884, allocations: 53.22 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3307/0.4191, allocations: 108.2 MB / 0.552 GB, free: 3.418 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002691/0.4195, allocations: 94.02 kB / 0.5521 GB, free: 3.367 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08038/0.4998, allocations: 30.03 MB / 0.5814 GB, free: 9.598 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4999, allocations: 0 / 0.5814 GB, free: 9.598 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.564e-05/0.5, allocations: 20 kB / 0.5814 GB, free: 9.578 MB / 394.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.002761/0.5027, allocations: 1.15 MB / 0.5826 GB, free: 8.438 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5028, allocations: 16.02 kB / 0.5826 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002931/0.5031, allocations: 137.4 kB / 0.5827 GB, free: 8.332 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001191/0.5043, allocations: 190.7 kB / 0.5829 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003571/0.5079, allocations: 1.221 MB / 0.5841 GB, free: 7.078 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.043e-05/0.508, allocations: 62.61 kB / 0.5841 GB, free: 7.043 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002649/0.5082, allocations: 88.2 kB / 0.5842 GB, free: 6.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.5102, allocations: 1.08 MB / 0.5853 GB, free: 6.156 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.856e-05/0.5102, allocations: 4 kB / 0.5853 GB, free: 6.152 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.605e-05/0.5103, allocations: 35.92 kB / 0.5853 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.5104, allocations: 68.47 kB / 0.5854 GB, free: 6.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.5118, allocations: 0.8507 MB / 0.5862 GB, free: 5.484 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005593/0.5174, allocations: 4.013 MB / 0.5901 GB, free: 1.906 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005875/0.518, allocations: 432.8 kB / 0.5906 GB, free: 1.551 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.96e-05/0.5181, allocations: 12.42 kB / 0.5906 GB, free: 1.539 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.5181, allocations: 42.81 kB / 0.5906 GB, free: 1.492 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 2.525e-06/0.5181, allocations: 0 / 0.5906 GB, free: 1.492 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.002973/0.5211, allocations: 1.769 MB / 0.5923 GB, free: 52 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.5212, allocations: 81.55 kB / 0.5924 GB, free: 15.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005776/0.5218, allocations: 0.5153 MB / 0.5929 GB, free: 15.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.5218, allocations: 31.52 kB / 0.5929 GB, free: 15.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002932/0.5221, allocations: 472.5 kB / 0.5934 GB, free: 15.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.5223, allocations: 190.2 kB / 0.5936 GB, free: 14.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-05/0.5223, allocations: 14.81 kB / 0.5936 GB, free: 14.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.5225, allocations: 381.7 kB / 0.594 GB, free: 14.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.5229, allocations: 248.3 kB / 0.5942 GB, free: 14.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004902/0.5234, allocations: 478.5 kB / 0.5946 GB, free: 14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004459/0.5238, allocations: 337.9 kB / 0.595 GB, free: 13.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.5238, allocations: 4 kB / 0.595 GB, free: 13.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001815/0.5256, allocations: 1.107 MB / 0.5961 GB, free: 12.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.5257, allocations: 8 kB / 0.5961 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001317/0.527, allocations: 0.8055 MB / 0.5968 GB, free: 12.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006821/0.5277, allocations: 218.4 kB / 0.5971 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.5282, allocations: 155.7 kB / 0.5972 GB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005047/0.5333, allocations: 5.341 MB / 0.6024 GB, free: 6.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005683/0.5339, allocations: 47.86 kB / 0.6025 GB, free: 6.062 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.5339, allocations: 32 kB / 0.6025 GB, free: 6.031 MB / 410.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 () * Number of clocked 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005073/0.5345, allocations: 305.4 kB / 0.6028 GB, free: 5.723 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.5346, allocations: 63.25 kB / 0.6028 GB, free: 5.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009401/0.5355, allocations: 0.6167 MB / 0.6035 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.24e-05/0.5355, allocations: 8 kB / 0.6035 GB, free: 5.027 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5355, allocations: 7.938 kB / 0.6035 GB, free: 5.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.5356, allocations: 0 / 0.6035 GB, free: 5.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002432/0.538, allocations: 1.502 MB / 0.6049 GB, free: 3.449 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.538, allocations: 0 / 0.6049 GB, free: 3.449 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006042/0.5386, allocations: 119.9 kB / 0.605 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.5386, allocations: 4 kB / 0.6051 GB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.306e-05/0.5387, allocations: 24.14 kB / 0.6051 GB, free: 3.305 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.5387, allocations: 7.938 kB / 0.6051 GB, free: 3.297 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.5387, allocations: 0 / 0.6051 GB, free: 3.297 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.54, allocations: 1.007 MB / 0.6061 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/0.5403, allocations: 192 kB / 0.6062 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.128e-05/0.5404, allocations: 16 kB / 0.6063 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003091/0.5407, allocations: 19.98 kB / 0.6063 GB, free: 1.977 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.938e-05/0.5408, allocations: 36.39 kB / 0.6063 GB, free: 1.941 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.88e-05/0.5408, allocations: 8 kB / 0.6063 GB, free: 1.934 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004604/0.5413, allocations: 415 kB / 0.6067 GB, free: 1.531 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5413, allocations: 0 / 0.6067 GB, free: 1.531 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007619/0.5421, allocations: 224 kB / 0.6069 GB, free: 1.312 MB / 410.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: 2 (system.initime,$cse4) * Number of discrete states: 0 () * Number of clocked 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.001698/0.5438, allocations: 2.008 MB / 0.6089 GB, free: 15.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001503/0.5453, allocations: 1.031 MB / 0.6099 GB, free: 14.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5453, allocations: 4.312 kB / 0.6099 GB, free: 14.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003338/0.5457, allocations: 266.6 kB / 0.6102 GB, free: 13.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.5463, allocations: 126.9 kB / 0.6103 GB, free: 13.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008559/0.5548, allocations: 10.07 MB / 0.6201 GB, free: 3.477 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007609/0.5556, allocations: 1.098 MB / 0.6212 GB, free: 2.348 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005562/0.5562, allocations: 185.9 kB / 0.6214 GB, free: 2.164 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004205/0.5566, allocations: 327.3 kB / 0.6217 GB, free: 1.844 MB / 426.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5566, allocations: 0 / 0.6217 GB, free: 1.844 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03101/0.5876, allocations: 15.9 MB / 0.6372 GB, free: 1.938 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000196/0.5879, allocations: 224 kB / 0.6374 GB, free: 1.688 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.312/2.9, allocations: 4 kB / 0.6374 GB, free: 1.684 MB / 442.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)