Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",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.001168/0.001168, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001222/0.001222, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.348/1.348, 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.1713/0.1713, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 62.3 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01055/0.1198, allocations: 9.241 MB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005439/0.1253, allocations: 3.257 MB / 469.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008213/0.1261, allocations: 43.75 kB / 469.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001284/0.1274, allocations: 413.2 kB / 469.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001739/0.1292, allocations: 0.7966 MB / 470.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1302, allocations: 484.7 kB / 471.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001863/0.1321, allocations: 1.859 MB / 473 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001254/0.1333, allocations: 1.116 MB / 474.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008682/0.1342, allocations: 0.755 MB / 474.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009097/0.1351, allocations: 0.8133 MB / 475.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001873/0.1353, allocations: 136 kB / 475.9 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005961/0.136, allocations: 379.5 kB / 476.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000398/0.1364, allocations: 498.8 kB / 476.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006061/0.137, allocations: 0.7037 MB / 477.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001651/0.1386, allocations: 1.959 MB / 479.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1387, allocations: 4 kB / 479.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.1387, allocations: 0 / 479.4 MB, free: 1.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.1387, allocations: 0 / 479.4 MB, free: 1.434 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.002898/0.1416, allocations: 1.647 MB / 481 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1416, allocations: 11.89 kB / 481 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.1418, allocations: 168.9 kB / 481.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006777/0.1425, allocations: 183.2 kB / 481.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.144, allocations: 0.9108 MB / 482.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.195e-05/0.144, allocations: 82.05 kB / 482.4 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.1443, allocations: 115.9 kB / 482.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001878/0.1462, allocations: 1.345 MB / 483.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.1462, allocations: 7.938 kB / 483.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-05/0.1463, allocations: 40 kB / 483.9 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000103/0.1464, allocations: 73.97 kB / 484 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/0.1481, allocations: 1.066 MB / 485 MB, free: 11.6 MB / 366.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.0008318498358936397 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006108/0.1542, allocations: 5.148 MB / 490.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.1553, allocations: 0.7453 MB / 490.9 MB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.1558, allocations: 343.3 kB / 491.2 MB, free: 5.086 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.74e-05/0.1558, allocations: 12.55 kB / 491.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.1559, allocations: 47.12 kB / 491.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.224e-06/0.1559, allocations: 0 / 491.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.005162/0.161, allocations: 2.671 MB / 494 MB, free: 2.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.797e-05/0.1611, allocations: 145 kB / 494.1 MB, free: 2.082 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009166/0.1621, allocations: 0.7432 MB / 494.9 MB, free: 1.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.872e-05/0.1621, allocations: 41.7 kB / 494.9 MB, free: 1.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003905/0.1625, allocations: 0.5689 MB / 495.5 MB, free: 0.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/0.1627, allocations: 248.4 kB / 495.7 MB, free: 472 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002281/0.163, allocations: 162.6 kB / 495.9 MB, free: 304 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1631, allocations: 349.9 kB / 496.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004992/0.1636, allocations: 296.7 kB / 496.5 MB, free: 15.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/0.1643, allocations: 0.549 MB / 497.1 MB, free: 15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/0.1654, allocations: 0.8936 MB / 497.9 MB, free: 13.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1655, allocations: 7.938 kB / 498 MB, free: 13.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.00267/0.1681, allocations: 1.348 MB / 499.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.1682, allocations: 8 kB / 499.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.1682, allocations: 11.94 kB / 499.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.1696, allocations: 420.6 kB / 499.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006562/0.1703, allocations: 171.7 kB / 499.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008185/0.1785, allocations: 5.294 MB / 0.4934 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007516/0.1792, allocations: 31.98 kB / 0.4934 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.833e-05/0.1793, allocations: 40 kB / 0.4934 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009458/0.1803, allocations: 0.5604 MB / 0.494 GB, free: 5.949 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005981/0.1809, allocations: 0.5334 MB / 0.4945 GB, free: 5.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001081/0.182, allocations: 0.8741 MB / 0.4953 GB, free: 4.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.023e-06/0.182, allocations: 0 / 0.4953 GB, free: 4.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002584/0.1846, allocations: 1.266 MB / 0.4966 GB, free: 3.043 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.1846, allocations: 15.42 kB / 0.4966 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.1846, allocations: 8 kB / 0.4966 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.1859, allocations: 405.3 kB / 0.497 GB, free: 2.625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005989/0.1865, allocations: 167.7 kB / 0.4971 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006734/0.1932, allocations: 5.065 MB / 0.5021 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000741/0.194, allocations: 39.89 kB / 0.5021 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.412e-05/0.1941, allocations: 36 kB / 0.5022 GB, free: 13.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(7,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0002876/0.1944, allocations: 232.9 kB / 0.5024 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002395/0.1946, allocations: 102.8 kB / 0.5025 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/0.1961, allocations: 0.8675 MB / 0.5033 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.248e-06/0.1961, allocations: 8 kB / 0.5033 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1961, allocations: 0 / 0.5033 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.367e-06/0.1962, allocations: 3.984 kB / 0.5033 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002984/0.1991, allocations: 1.861 MB / 0.5052 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.1992, allocations: 0 / 0.5052 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008114/0.2, allocations: 171.8 kB / 0.5053 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.448e-06/0.2, allocations: 4 kB / 0.5053 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.377e-05/0.2001, allocations: 19.94 kB / 0.5054 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.159e-06/0.2001, allocations: 4 kB / 0.5054 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2001, allocations: 0 / 0.5054 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.2018, allocations: 1.266 MB / 0.5066 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/0.2021, allocations: 231.8 kB / 0.5068 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.2022, allocations: 20 kB / 0.5068 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004611/0.2027, allocations: 19.98 kB / 0.5068 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.767e-05/0.2028, allocations: 52.52 kB / 0.5069 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.2028, allocations: 24 kB / 0.5069 GB, free: 8.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006406/0.2035, allocations: 0.5146 MB / 0.5074 GB, free: 7.652 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2035, allocations: 0 / 0.5074 GB, free: 7.652 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00157/0.2051, allocations: 464 kB / 0.5079 GB, free: 7.199 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * 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.002249/0.2073, allocations: 1.857 MB / 0.5097 GB, free: 5.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00382/0.2112, allocations: 2.055 MB / 0.5117 GB, free: 3.227 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.2112, allocations: 1.562 kB / 0.5117 GB, free: 3.227 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005294/0.2117, allocations: 359.5 kB / 0.512 GB, free: 2.879 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/0.2129, allocations: 253.3 kB / 0.5123 GB, free: 2.641 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1935/0.4064, allocations: 9.464 MB / 0.5215 GB, free: 66.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007894/0.4072, allocations: 1.205 MB / 0.5227 GB, free: 65.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000899/0.4081, allocations: 245 kB / 0.5229 GB, free: 65.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/0.4086, allocations: 434.4 kB / 0.5233 GB, free: 65.05 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4086, allocations: 0 / 0.5233 GB, free: 65.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05201/0.4606, allocations: 27.25 MB / 0.5499 GB, free: 50.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.4, allocations: 7.938 kB / 0.55 GB, free: 50.07 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)