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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007921/0.0007923, allocations: 85 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009198/0.0009199, allocations: 178.4 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 223.2 MB / 241.2 MB, free: 356 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1811/0.1811, allocations: 38.1 MB / 330.4 MB, free: 8.863 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003404/0.0003404, allocations: 15.92 kB / 400.2 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1135, allocations: 59.17 MB / 459.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.009161/0.1227, allocations: 7.821 MB / 467.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00625/0.129, allocations: 3.142 MB / 470.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001088/0.1301, allocations: 47.69 kB / 470.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008677/0.131, allocations: 222.4 kB / 470.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002983/0.134, allocations: 0.7077 MB / 471.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001521/0.1355, allocations: 355.3 kB / 471.6 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.1383, allocations: 1.594 MB / 473.2 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002008/0.1403, allocations: 0.9124 MB / 474.1 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001055/0.1414, allocations: 462 kB / 474.6 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.1426, allocations: 0.5997 MB / 475.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.1427, allocations: 36 kB / 475.2 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00115/0.1439, allocations: 371.2 kB / 475.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005443/0.1444, allocations: 415 kB / 476 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003233/0.1448, allocations: 205.2 kB / 476.2 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0014/0.1462, allocations: 1.064 MB / 477.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1462, allocations: 0 / 477.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1462, allocations: 0 / 477.2 MB, free: 5.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.1462, allocations: 0 / 477.2 MB, free: 5.309 MB / 350.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.001948/0.1482, allocations: 1.106 MB / 478.4 MB, free: 4.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.1482, allocations: 15.97 kB / 478.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001647/0.1484, allocations: 135.5 kB / 478.5 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.1495, allocations: 210.6 kB / 478.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001236/0.1508, allocations: 0.6814 MB / 479.4 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.333e-05/0.1508, allocations: 65.97 kB / 479.4 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002053/0.1511, allocations: 99.98 kB / 479.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.1526, allocations: 1.092 MB / 480.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.879e-05/0.1527, allocations: 7.906 kB / 480.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-05/0.1527, allocations: 31.94 kB / 480.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.1529, allocations: 73.95 kB / 480.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.1547, allocations: 0.8665 MB / 481.6 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007097/0.1619, allocations: 4.005 MB / 485.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008481/0.1627, allocations: 436.7 kB / 486 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005522/0.1633, allocations: 281.5 kB / 486.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.676e-05/0.1634, allocations: 4.438 kB / 486.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.1634, allocations: 42.94 kB / 486.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.765e-06/0.1635, allocations: 0 / 486.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.004239/0.1677, allocations: 1.717 MB / 488.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.057e-05/0.1678, allocations: 85.55 kB / 488.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009547/0.1688, allocations: 0.582 MB / 488.8 MB, free: 9.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-05/0.1689, allocations: 37.7 kB / 488.8 MB, free: 9.273 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004176/0.1693, allocations: 466.5 kB / 489.2 MB, free: 8.809 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.1695, allocations: 189.3 kB / 489.4 MB, free: 8.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.906e-05/0.1696, allocations: 12 kB / 489.4 MB, free: 8.609 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002598/0.1699, allocations: 390.7 kB / 489.8 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005734/0.1704, allocations: 245.9 kB / 490.1 MB, free: 7.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008431/0.1713, allocations: 484.9 kB / 490.5 MB, free: 7.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007509/0.1721, allocations: 330 kB / 490.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.1721, allocations: 7.938 kB / 490.9 MB, free: 7.082 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002839/0.1749, allocations: 1.103 MB / 492 MB, free: 5.941 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.998e-05/0.175, allocations: 8 kB / 492 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001985/0.177, allocations: 0.7921 MB / 492.8 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009533/0.1779, allocations: 226.3 kB / 493 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007289/0.1787, allocations: 151.8 kB / 493.1 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006927/0.1856, allocations: 5.239 MB / 498.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006063/0.1863, allocations: 39.97 kB / 498.4 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.1864, allocations: 28 kB / 498.4 MB, free: 15.02 MB / 382.1 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 (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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005371/0.1869, allocations: 301.6 kB / 498.7 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.1871, allocations: 71.16 kB / 498.8 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.1884, allocations: 0.6126 MB / 499.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.1884, allocations: 4 kB / 499.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1884, allocations: 3.953 kB / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.275e-06/0.1884, allocations: 7.984 kB / 499.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002627/0.191, allocations: 1.486 MB / 0.4892 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/0.1911, allocations: 11.89 kB / 0.4892 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/0.1917, allocations: 119.9 kB / 0.4893 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.768e-06/0.1917, allocations: 4 kB / 0.4893 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/0.1917, allocations: 16 kB / 0.4893 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.181e-06/0.1918, allocations: 4 kB / 0.4893 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1918, allocations: 0 / 0.4893 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.193, allocations: 0.9276 MB / 0.4902 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.1933, allocations: 192.1 kB / 0.4904 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.1934, allocations: 20 kB / 0.4904 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.1937, allocations: 20.27 kB / 0.4905 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.151e-05/0.1938, allocations: 36.33 kB / 0.4905 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.1938, allocations: 16 kB / 0.4905 GB, free: 11.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004771/0.1943, allocations: 419 kB / 0.4909 GB, free: 10.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1943, allocations: 0 / 0.4909 GB, free: 10.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008693/0.1952, allocations: 228 kB / 0.4911 GB, free: 10.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (turboGrp.phi,turboGrp.w,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 () * Number of clocked 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.001675/0.1969, allocations: 1.508 MB / 0.4926 GB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001616/0.1985, allocations: 1.01 MB / 0.4936 GB, free: 7.812 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.1985, allocations: 7.938 kB / 0.4936 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.1989, allocations: 263.7 kB / 0.4938 GB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007806/0.1997, allocations: 141.9 kB / 0.494 GB, free: 7.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008245/0.2079, allocations: 5.562 MB / 0.4994 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007572/0.2087, allocations: 1.083 MB / 0.5005 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005775/0.2093, allocations: 193.9 kB / 0.5007 GB, free: 368 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004226/0.2097, allocations: 323.3 kB / 0.501 GB, free: 44 kB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.2097, allocations: 3.938 kB / 0.501 GB, free: 40 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2829/0.4927, allocations: 15.8 MB / 0.5164 GB, free: 50.43 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/0.493, allocations: 233.7 kB / 0.5166 GB, free: 50.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.268/2.761, allocations: 0 / 0.5166 GB, free: 50.2 MB / 382.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) Environment - environmentSimulation: 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