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.001115/0.001115, allocations: 105.4 kB / 16.92 MB, free: 5.766 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.001064/0.001064, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.312/1.312, allocations: 222.9 MB / 241.6 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1769/0.1769, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 69.75 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.102, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.0103/0.1123, allocations: 7.504 MB / 464.5 MB, free: 408 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004405/0.1168, allocations: 2.98 MB / 467.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005297/0.1173, allocations: 23.88 kB / 467.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001892/0.1192, allocations: 0.738 MB / 468.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001563/0.1208, allocations: 0.6998 MB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00082/0.1216, allocations: 367.2 kB / 469.3 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001521/0.1232, allocations: 1.341 MB / 470.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00092/0.1241, allocations: 0.7208 MB / 471.3 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000801/0.1249, allocations: 0.5564 MB / 471.9 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009727/0.1259, allocations: 0.6229 MB / 472.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.1261, allocations: 75.94 kB / 472.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008093/0.1269, allocations: 479.2 kB / 473.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003778/0.1273, allocations: 446.9 kB / 473.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005564/0.1278, allocations: 0.5208 MB / 474 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.1292, allocations: 1.394 MB / 475.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1292, allocations: 0 / 475.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1292, allocations: 0 / 475.4 MB, free: 5.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.937e-05/0.1293, allocations: 0 / 475.4 MB, free: 5.422 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.002104/0.1314, allocations: 1.288 MB / 476.7 MB, free: 4.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.1314, allocations: 12.03 kB / 476.7 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.1316, allocations: 139.6 kB / 476.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001186/0.1328, allocations: 207.5 kB / 477.1 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.1341, allocations: 0.7059 MB / 477.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.551e-05/0.1341, allocations: 66.11 kB / 477.8 MB, free: 2.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002107/0.1344, allocations: 95.98 kB / 477.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1359, allocations: 1.092 MB / 479 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.404e-05/0.136, allocations: 11.88 kB / 479 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.136, allocations: 31.98 kB / 479.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.1362, allocations: 73.95 kB / 479.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.1377, allocations: 0.8743 MB / 480 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00546/0.1431, allocations: 4.005 MB / 484 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006281/0.1438, allocations: 432.7 kB / 484.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003707/0.1442, allocations: 283 kB / 484.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.1442, allocations: 8.422 kB / 484.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.1443, allocations: 46.94 kB / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.823e-06/0.1443, allocations: 0 / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.003035/0.1473, allocations: 1.713 MB / 486.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.1474, allocations: 85.48 kB / 486.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007021/0.1481, allocations: 0.5899 MB / 487.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.1482, allocations: 37.7 kB / 487.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003485/0.1485, allocations: 466.5 kB / 487.6 MB, free: 8.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.1487, allocations: 193.3 kB / 487.8 MB, free: 8.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001959/0.1489, allocations: 134.6 kB / 488 MB, free: 8.375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.149, allocations: 386.8 kB / 488.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003633/0.1494, allocations: 249.8 kB / 488.6 MB, free: 7.746 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.1499, allocations: 473 kB / 489 MB, free: 7.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009522/0.1509, allocations: 0.7703 MB / 489.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.1509, allocations: 0 / 489.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00196/0.1529, allocations: 1.118 MB / 490.9 MB, free: 5.168 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.1529, allocations: 11.94 kB / 490.9 MB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001346/0.1543, allocations: 0.7998 MB / 491.7 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006994/0.155, allocations: 218.4 kB / 492 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000511/0.1555, allocations: 151.7 kB / 492.1 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005578/0.1611, allocations: 5.682 MB / 497.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/0.1616, allocations: 31.98 kB / 497.8 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.519e-05/0.1617, allocations: 36.08 kB / 497.9 MB, free: 13.78 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004408/0.1622, allocations: 309.5 kB / 498.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/0.1623, allocations: 67.16 kB / 498.2 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000945/0.1633, allocations: 0.6126 MB / 498.8 MB, free: 12.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.1633, allocations: 8 kB / 498.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.1633, allocations: 0 / 498.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1633, allocations: 7.922 kB / 498.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002364/0.1657, allocations: 1.482 MB / 0.4886 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.1657, allocations: 0 / 0.4886 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.1663, allocations: 132 kB / 0.4887 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.1663, allocations: 7.938 kB / 0.4887 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.726e-05/0.1664, allocations: 11.98 kB / 0.4887 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.1664, allocations: 4 kB / 0.4888 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1664, allocations: 4 kB / 0.4888 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.1676, allocations: 0.9271 MB / 0.4897 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002756/0.1679, allocations: 184.2 kB / 0.4898 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.168, allocations: 27.92 kB / 0.4899 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/0.1684, allocations: 15.98 kB / 0.4899 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.1684, allocations: 32.39 kB / 0.4899 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.1685, allocations: 20 kB / 0.4899 GB, free: 9.801 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005954/0.1691, allocations: 423 kB / 0.4903 GB, free: 9.391 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1691, allocations: 0 / 0.4903 GB, free: 9.391 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009537/0.17, allocations: 236 kB / 0.4906 GB, free: 9.16 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001651/0.1717, allocations: 1.51 MB / 0.492 GB, free: 7.605 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00213/0.1738, allocations: 1.166 MB / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1739, allocations: 0 / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003684/0.1742, allocations: 266.2 kB / 0.4934 GB, free: 6.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008063/0.175, allocations: 146.1 kB / 0.4936 GB, free: 6.004 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.1864, allocations: 7.487 MB / 0.5009 GB, free: 14.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007889/0.1872, allocations: 1.086 MB / 0.5019 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005889/0.1878, allocations: 185.9 kB / 0.5021 GB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000496/0.1883, allocations: 327.3 kB / 0.5024 GB, free: 12.54 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1883, allocations: 0 / 0.5024 GB, free: 12.54 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2292/0.4175, allocations: 16.46 MB / 0.5185 GB, free: 70.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.64, allocations: 6 kB / 0.5185 GB, free: 70.73 MB / 398.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/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)