Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_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.001331/0.00133, allocations: 105.8 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.001574/0.001574, 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.407/1.407, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.185/0.185, allocations: 38.02 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 60.84 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1083, allocations: 58.07 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.01116/0.1195, allocations: 9.235 MB / 466.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005256/0.1248, allocations: 3.253 MB / 469.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008936/0.1257, allocations: 43.75 kB / 469.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.1272, allocations: 409.3 kB / 469.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002126/0.1293, allocations: 0.8006 MB / 470.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001208/0.1305, allocations: 482.7 kB / 471.2 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002388/0.1329, allocations: 1.867 MB / 473 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001529/0.1345, allocations: 1.124 MB / 474.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001282/0.1358, allocations: 0.7433 MB / 474.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.1372, allocations: 0.8172 MB / 475.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003366/0.1375, allocations: 140 kB / 475.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008231/0.1383, allocations: 383.5 kB / 476.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005774/0.1389, allocations: 494.8 kB / 476.7 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.14, allocations: 0.7037 MB / 477.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002007/0.142, allocations: 1.959 MB / 479.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.142, allocations: 0 / 479.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.142, allocations: 0 / 479.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-05/0.1421, allocations: 0 / 479.4 MB, free: 1.43 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.003611/0.1457, allocations: 1.647 MB / 481 MB, free: 15.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.1458, allocations: 15.89 kB / 481 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002533/0.146, allocations: 165 kB / 481.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000768/0.1468, allocations: 187.2 kB / 481.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001602/0.1484, allocations: 0.9146 MB / 482.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.516e-05/0.1485, allocations: 82.06 kB / 482.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002757/0.1488, allocations: 119.9 kB / 482.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00213/0.1509, allocations: 1.341 MB / 483.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.946e-05/0.151, allocations: 3.938 kB / 483.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.1511, allocations: 47.98 kB / 483.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/0.1512, allocations: 65.97 kB / 484 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.153, allocations: 1.077 MB / 485 MB, free: 11.58 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.006932/0.16, allocations: 5.137 MB / 490.2 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001172/0.1612, allocations: 0.7453 MB / 490.9 MB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.1617, allocations: 348.2 kB / 491.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.592e-05/0.1617, allocations: 8.562 kB / 491.3 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.1618, allocations: 39.12 kB / 491.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of pre-optimization done (n=64): time 3.256e-06/0.1618, allocations: 0 / 491.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of matching and sorting (n=71): time 0.006105/0.1679, allocations: 2.675 MB / 494 MB, free: 2.246 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.734e-05/0.168, allocations: 145.1 kB / 494.1 MB, free: 2.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001081/0.1691, allocations: 0.7471 MB / 494.9 MB, free: 1.316 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.1692, allocations: 37.7 kB / 494.9 MB, free: 1.273 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.1696, allocations: 0.5649 MB / 495.5 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.1699, allocations: 252.4 kB / 495.7 MB, free: 460 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002827/0.1702, allocations: 162.6 kB / 495.9 MB, free: 292 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1703, allocations: 338 kB / 496.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005239/0.1709, allocations: 304.7 kB / 496.5 MB, free: 15.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007014/0.1716, allocations: 0.5451 MB / 497 MB, free: 14.99 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1729, allocations: 0.8975 MB / 497.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.1729, allocations: 3.938 kB / 497.9 MB, free: 13.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002942/0.1759, allocations: 1.348 MB / 499.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.1759, allocations: 8 kB / 499.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.1759, allocations: 11.94 kB / 499.3 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.1773, allocations: 424.8 kB / 499.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006439/0.178, allocations: 163.7 kB / 499.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008287/0.1863, allocations: 5.292 MB / 0.4933 GB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007396/0.1871, allocations: 35.98 kB / 0.4934 GB, free: 6.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/0.1872, allocations: 44 kB / 0.4934 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009062/0.1881, allocations: 0.5565 MB / 0.494 GB, free: 5.949 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006576/0.1888, allocations: 0.5334 MB / 0.4945 GB, free: 5.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00109/0.1899, allocations: 0.878 MB / 0.4953 GB, free: 4.316 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.904e-06/0.1899, allocations: 4 kB / 0.4953 GB, free: 4.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=112) (initialization_lambda0): time 0.002485/0.1924, allocations: 1.266 MB / 0.4966 GB, free: 3.035 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1924, allocations: 8.312 kB / 0.4966 GB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1924, allocations: 12 kB / 0.4966 GB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.1937, allocations: 409 kB / 0.497 GB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005958/0.1943, allocations: 171.7 kB / 0.4971 GB, free: 2.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007156/0.2015, allocations: 5.054 MB / 0.5021 GB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006855/0.2022, allocations: 35.89 kB / 0.5021 GB, free: 13.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-05/0.2023, allocations: 40 kB / 0.5022 GB, free: 13.17 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.0003064/0.2026, allocations: 232.9 kB / 0.5024 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/0.2029, allocations: 102.7 kB / 0.5025 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.2045, allocations: 0.8636 MB / 0.5033 GB, free: 11.94 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.2045, allocations: 8 kB / 0.5033 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2046, allocations: 0 / 0.5033 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.2046, allocations: 11.98 kB / 0.5033 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.2079, allocations: 1.853 MB / 0.5051 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/0.2079, allocations: 4 kB / 0.5052 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008205/0.2087, allocations: 167.7 kB / 0.5053 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-05/0.2087, allocations: 4 kB / 0.5053 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.699e-05/0.2088, allocations: 19.88 kB / 0.5053 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.955e-06/0.2088, allocations: 7.984 kB / 0.5053 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.2088, allocations: 0 / 0.5053 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.2107, allocations: 1.262 MB / 0.5066 GB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.2112, allocations: 235.8 kB / 0.5068 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.2113, allocations: 16 kB / 0.5068 GB, free: 8.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005137/0.2119, allocations: 27.98 kB / 0.5068 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.681e-05/0.212, allocations: 48.53 kB / 0.5069 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.016e-05/0.212, allocations: 19.98 kB / 0.5069 GB, free: 8.164 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006716/0.2127, allocations: 0.5107 MB / 0.5074 GB, free: 7.656 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2127, allocations: 0 / 0.5074 GB, free: 7.656 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001878/0.2146, allocations: 464 kB / 0.5078 GB, free: 7.203 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.002571/0.2172, allocations: 1.864 MB / 0.5097 GB, free: 5.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00435/0.2215, allocations: 2.06 MB / 0.5117 GB, free: 3.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.2215, allocations: 8.25 kB / 0.5117 GB, free: 3.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005902/0.2221, allocations: 355.5 kB / 0.512 GB, free: 2.867 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/0.2237, allocations: 251.5 kB / 0.5123 GB, free: 2.637 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1876/0.4113, allocations: 9.458 MB / 0.5215 GB, free: 66.16 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009683/0.4123, allocations: 1.205 MB / 0.5227 GB, free: 65.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001058/0.4134, allocations: 244.1 kB / 0.5229 GB, free: 65.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005221/0.4139, allocations: 433.5 kB / 0.5233 GB, free: 65.05 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4139, allocations: 0 / 0.5233 GB, free: 65.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05113/0.465, allocations: 27.24 MB / 0.5499 GB, free: 49.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.54, allocations: 11.98 kB / 0.5499 GB, free: 49.91 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)