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.00114/0.00114, allocations: 109.1 kB / 16.92 MB, free: 5.773 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.001351/0.001351, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.331/1.331, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1763/0.1763, allocations: 38.03 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002386/0.002386, allocations: 69.92 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1213, allocations: 58.06 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01019/0.1315, allocations: 9.246 MB / 466.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005171/0.1367, allocations: 3.253 MB / 469.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000778/0.1375, allocations: 39.81 kB / 469.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.1389, allocations: 421.2 kB / 469.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001967/0.1408, allocations: 0.8006 MB / 470.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.142, allocations: 481.2 kB / 471.2 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002178/0.1442, allocations: 1.859 MB / 473 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001531/0.1457, allocations: 1.116 MB / 474.2 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.1469, allocations: 0.7511 MB / 474.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001216/0.1481, allocations: 0.8094 MB / 475.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000329/0.1485, allocations: 140 kB / 475.9 MB, free: 5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008549/0.1493, allocations: 379.5 kB / 476.2 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005263/0.1499, allocations: 0.491 MB / 476.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001024/0.1509, allocations: 0.7037 MB / 477.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002031/0.153, allocations: 1.955 MB / 479.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.153, allocations: 0 / 479.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.153, allocations: 3.938 kB / 479.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.691e-05/0.1531, allocations: 0 / 479.4 MB, free: 1.465 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.00382/0.1569, allocations: 1.647 MB / 481 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.1569, allocations: 19.88 kB / 481.1 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001869/0.1571, allocations: 157 kB / 481.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007345/0.1579, allocations: 187.2 kB / 481.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001498/0.1594, allocations: 0.9108 MB / 482.3 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.217e-05/0.1595, allocations: 74.06 kB / 482.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002782/0.1598, allocations: 127.9 kB / 482.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.1618, allocations: 1.345 MB / 483.8 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.649e-05/0.1618, allocations: 11.98 kB / 483.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000103/0.1619, allocations: 40 kB / 483.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001097/0.162, allocations: 65.98 kB / 484 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001756/0.1638, allocations: 1.073 MB / 485 MB, free: 11.62 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.006403/0.1702, allocations: 5.133 MB / 490.2 MB, free: 6.254 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.1714, allocations: 0.757 MB / 490.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000502/0.1719, allocations: 340.2 kB / 491.3 MB, free: 5.113 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.432e-05/0.1719, allocations: 12.55 kB / 491.3 MB, free: 5.098 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.172, allocations: 47.05 kB / 491.3 MB, free: 5.043 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 2.665e-06/0.172, allocations: 4 kB / 491.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.005355/0.1773, allocations: 2.66 MB / 494 MB, free: 2.289 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.1774, allocations: 145 kB / 494.1 MB, free: 2.113 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008583/0.1783, allocations: 0.7471 MB / 494.9 MB, free: 1.359 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.119e-05/0.1784, allocations: 37.7 kB / 494.9 MB, free: 1.316 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003486/0.1787, allocations: 0.5688 MB / 495.5 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001782/0.1789, allocations: 252.4 kB / 495.7 MB, free: 500 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002275/0.1791, allocations: 162.6 kB / 495.9 MB, free: 332 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1792, allocations: 341.9 kB / 496.2 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005085/0.1798, allocations: 300.7 kB / 496.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006351/0.1804, allocations: 0.549 MB / 497.1 MB, free: 15.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.1816, allocations: 0.9052 MB / 498 MB, free: 14.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.1816, allocations: 4 kB / 498 MB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002758/0.1844, allocations: 1.344 MB / 499.3 MB, free: 12.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.1844, allocations: 8.312 kB / 499.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.1844, allocations: 12 kB / 499.3 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001366/0.1858, allocations: 420.5 kB / 499.7 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006448/0.1865, allocations: 171.7 kB / 499.9 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007924/0.1944, allocations: 5.285 MB / 0.4933 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006176/0.195, allocations: 43.97 kB / 0.4934 GB, free: 6.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.776e-05/0.1951, allocations: 32 kB / 0.4934 GB, free: 6.551 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008237/0.196, allocations: 0.5565 MB / 0.494 GB, free: 5.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005878/0.1965, allocations: 0.5451 MB / 0.4945 GB, free: 5.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001083/0.1976, allocations: 0.8702 MB / 0.4953 GB, free: 4.352 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.501e-06/0.1977, allocations: 0 / 0.4953 GB, free: 4.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002441/0.2001, allocations: 1.27 MB / 0.4966 GB, free: 3.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2001, allocations: 8 kB / 0.4966 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.2001, allocations: 8 kB / 0.4966 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001253/0.2014, allocations: 405.3 kB / 0.497 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006101/0.202, allocations: 171.7 kB / 0.4972 GB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00689/0.2089, allocations: 5.071 MB / 0.5021 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/0.2096, allocations: 35.89 kB / 0.5021 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.497e-05/0.2097, allocations: 36 kB / 0.5022 GB, free: 13.2 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.0002538/0.21, allocations: 236.8 kB / 0.5024 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.2102, allocations: 94.81 kB / 0.5025 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001465/0.2117, allocations: 0.8714 MB / 0.5033 GB, free: 11.97 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.2117, allocations: 8 kB / 0.5033 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2117, allocations: 0 / 0.5033 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.2117, allocations: 3.984 kB / 0.5034 GB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003013/0.2148, allocations: 1.865 MB / 0.5052 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.2148, allocations: 0 / 0.5052 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008406/0.2156, allocations: 159.8 kB / 0.5053 GB, free: 9.875 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.233e-05/0.2156, allocations: 4 kB / 0.5053 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.495e-05/0.2157, allocations: 27.97 kB / 0.5054 GB, free: 9.844 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.2157, allocations: 4 kB / 0.5054 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2157, allocations: 0 / 0.5054 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.2175, allocations: 1.266 MB / 0.5066 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003331/0.2179, allocations: 231.8 kB / 0.5068 GB, free: 8.305 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001452/0.218, allocations: 19.98 kB / 0.5068 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/0.2186, allocations: 27.98 kB / 0.5069 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.2187, allocations: 40.59 kB / 0.5069 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/0.2187, allocations: 24 kB / 0.5069 GB, free: 8.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006753/0.2194, allocations: 0.5107 MB / 0.5074 GB, free: 7.688 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2194, allocations: 0 / 0.5074 GB, free: 7.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00157/0.221, allocations: 468 kB / 0.5079 GB, free: 7.23 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.002231/0.2232, allocations: 1.865 MB / 0.5097 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004065/0.2273, allocations: 2.055 MB / 0.5117 GB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.2273, allocations: 0 / 0.5117 GB, free: 3.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005348/0.2278, allocations: 355.5 kB / 0.512 GB, free: 2.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001228/0.2291, allocations: 250 kB / 0.5123 GB, free: 2.672 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1724/0.4015, allocations: 9.458 MB / 0.5215 GB, free: 66.26 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007508/0.4022, allocations: 1.208 MB / 0.5227 GB, free: 65.49 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009248/0.4032, allocations: 241 kB / 0.5229 GB, free: 65.48 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.4037, allocations: 434.5 kB / 0.5233 GB, free: 65.15 MB / 398.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4037, allocations: 0 / 0.5233 GB, free: 65.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05384/0.4575, allocations: 27.25 MB / 0.5499 GB, free: 50.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.79, allocations: 11.36 kB / 0.55 GB, free: 50.17 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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)