Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.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.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine",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.001338/0.001338, allocations: 108.1 kB / 16.92 MB, free: 5.762 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.001234/0.001234, allocations: 187.3 kB / 17.85 MB, free: 5.176 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.304/1.304, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1772/0.1772, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 64.45 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.112, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine): time 0.01184/0.1239, allocations: 9.533 MB / 466.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006485/0.1304, allocations: 3.576 MB / 470.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000975/0.1314, allocations: 31.81 kB / 470.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.1346, allocations: 1.108 MB / 471.2 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00297/0.1376, allocations: 0.8864 MB / 472.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.1391, allocations: 479 kB / 472.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002599/0.1418, allocations: 1.8 MB / 474.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.1434, allocations: 0.9777 MB / 475.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.1447, allocations: 0.7627 MB / 476.1 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0019/0.1467, allocations: 0.9071 MB / 477 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004096/0.1471, allocations: 104 kB / 477.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001551/0.1487, allocations: 0.5343 MB / 477.7 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008234/0.1495, allocations: 0.6429 MB / 478.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001061/0.1506, allocations: 0.692 MB / 479 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002339/0.1529, allocations: 1.889 MB / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1529, allocations: 0 / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1529, allocations: 0 / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.787e-05/0.153, allocations: 0 / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 298 * Number of variables: 298 Notification: Performance of Generate backend data structure: time 0.003371/0.1564, allocations: 1.629 MB / 482.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1564, allocations: 11.89 kB / 482.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002387/0.1567, allocations: 177.6 kB / 482.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/0.1584, allocations: 278.9 kB / 483 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001987/0.1604, allocations: 0.8982 MB / 483.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.671e-05/0.1604, allocations: 82.09 kB / 483.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003717/0.1608, allocations: 135.9 kB / 484.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00239/0.1632, allocations: 1.486 MB / 485.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.461e-05/0.1633, allocations: 7.938 kB / 485.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.1634, allocations: 44 kB / 485.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003458/0.1638, allocations: 102.2 kB / 485.7 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002085/0.1659, allocations: 1.254 MB / 487 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008476/0.1743, allocations: 5.668 MB / 492.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008811/0.1753, allocations: 0.5904 MB / 493.2 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000611/0.1759, allocations: 399.3 kB / 493.6 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.08e-05/0.176, allocations: 12.56 kB / 493.6 MB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.176, allocations: 39.12 kB / 493.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of pre-optimization done (n=67): time 3.416e-06/0.176, allocations: 0 / 493.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=74): time 0.00755/0.1836, allocations: 3.638 MB / 497.3 MB, free: 14.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.787e-05/0.1837, allocations: 93.73 kB / 497.4 MB, free: 14.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.1847, allocations: 0.7351 MB / 498.1 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.846e-05/0.1848, allocations: 41.69 kB / 498.2 MB, free: 13.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005039/0.1853, allocations: 0.5918 MB / 498.8 MB, free: 13.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002743/0.1856, allocations: 272.1 kB / 499 MB, free: 13.03 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/0.1859, allocations: 182.5 kB / 499.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000221/0.1861, allocations: 402.7 kB / 499.6 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005702/0.1867, allocations: 389.8 kB / 500 MB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007637/0.1875, allocations: 0.6574 MB / 0.4889 GB, free: 11.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.1889, allocations: 1.148 MB / 0.49 GB, free: 10.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1889, allocations: 4 kB / 0.49 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003239/0.1922, allocations: 1.701 MB / 0.4917 GB, free: 8.297 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.1922, allocations: 15.92 kB / 0.4917 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002584/0.1948, allocations: 1.315 MB / 0.493 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.1966, allocations: 0.5833 MB / 0.4936 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/0.1972, allocations: 175.7 kB / 0.4937 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/0.2092, allocations: 10.36 MB / 0.5038 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008005/0.21, allocations: 51.88 kB / 0.5039 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.2101, allocations: 40 kB / 0.5039 GB, free: 11.16 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (93): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0006263/0.2108, allocations: 381.5 kB / 0.5043 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/0.211, allocations: 90.88 kB / 0.5044 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002192/0.2132, allocations: 1.248 MB / 0.5056 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.2132, allocations: 8 kB / 0.5056 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.2132, allocations: 4 kB / 0.5056 GB, free: 9.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.2132, allocations: 7.984 kB / 0.5056 GB, free: 9.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004091/0.2173, allocations: 2.4 MB / 0.508 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.2174, allocations: 4 kB / 0.508 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004483/0.2178, allocations: 112 kB / 0.5081 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001058/0.2189, allocations: 371.8 kB / 0.5084 GB, free: 6.402 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.685e-05/0.219, allocations: 31.97 kB / 0.5085 GB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2112/0.4301, allocations: 9.29 MB / 0.5175 GB, free: 66.15 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.4302, allocations: 2.875 kB / 0.5175 GB, free: 66.15 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.4328, allocations: 1.676 MB / 0.5192 GB, free: 65.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003508/0.4332, allocations: 231.5 kB / 0.5194 GB, free: 65.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.4333, allocations: 29.83 kB / 0.5194 GB, free: 65.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004457/0.4338, allocations: 24.78 kB / 0.5194 GB, free: 65.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.434, allocations: 64.2 kB / 0.5195 GB, free: 65.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.7e-05/0.434, allocations: 22.78 kB / 0.5195 GB, free: 65.81 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006884/0.4347, allocations: 0.5115 MB / 0.52 GB, free: 65.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4347, allocations: 0 / 0.52 GB, free: 65.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001331/0.4361, allocations: 362.7 kB / 0.5204 GB, free: 65.69 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,10,100.0%), (1,3,100.0%), (1,3,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002707/0.4388, allocations: 2.261 MB / 0.5226 GB, free: 64.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002675/0.4415, allocations: 1.769 MB / 0.5243 GB, free: 63.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.4415, allocations: 2.062 kB / 0.5243 GB, free: 63.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.4429, allocations: 1.093 MB / 0.5254 GB, free: 62.9 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.4441, allocations: 211.5 kB / 0.5256 GB, free: 62.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.459, allocations: 10.22 MB / 0.5356 GB, free: 57.44 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008219/0.4599, allocations: 1.265 MB / 0.5368 GB, free: 56.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007658/0.4607, allocations: 217.9 kB / 0.537 GB, free: 56.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004553/0.4611, allocations: 438.4 kB / 0.5374 GB, free: 56.29 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4611, allocations: 0 / 0.5374 GB, free: 56.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05152/0.5126, allocations: 24.66 MB / 0.5615 GB, free: 36.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.87, allocations: 8.047 kB / 0.5615 GB, free: 36.63 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGeneratorLine.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGeneratorLine.pipe 2>&1)