Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/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.TurbineGenerator,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_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.001564/0.001564, allocations: 110.2 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.002137/0.002137, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.489/1.489, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.183/0.183, allocations: 38.03 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002438/0.002438, allocations: 58.19 kB / 398.9 MB, free: 33.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1456, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.01602/0.1616, allocations: 7.519 MB / 464.5 MB, free: 436 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008068/0.1697, allocations: 2.976 MB / 467.5 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009664/0.1707, allocations: 27.81 kB / 467.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003126/0.1739, allocations: 0.7383 MB / 468.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002856/0.1768, allocations: 0.6882 MB / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001588/0.1784, allocations: 371.2 kB / 469.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.1811, allocations: 1.344 MB / 470.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.1827, allocations: 0.713 MB / 471.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.1841, allocations: 0.5565 MB / 471.9 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001628/0.1857, allocations: 0.6268 MB / 472.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002715/0.186, allocations: 75.94 kB / 472.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001426/0.1874, allocations: 479.1 kB / 473.1 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007478/0.1882, allocations: 446.9 kB / 473.5 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001052/0.1893, allocations: 0.5171 MB / 474 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002451/0.1917, allocations: 1.402 MB / 475.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1918, allocations: 0 / 475.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1918, allocations: 0 / 475.4 MB, free: 5.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.1918, allocations: 0 / 475.4 MB, free: 5.453 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.004099/0.1959, allocations: 1.281 MB / 476.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.196, allocations: 15.89 kB / 476.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002911/0.1963, allocations: 139.6 kB / 476.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002241/0.1986, allocations: 207.5 kB / 477 MB, free: 3.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002349/0.2009, allocations: 0.7059 MB / 477.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.559e-05/0.201, allocations: 66.11 kB / 477.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003909/0.2014, allocations: 95.92 kB / 477.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002756/0.2042, allocations: 1.096 MB / 479 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.973e-05/0.2043, allocations: 7.938 kB / 479 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.2044, allocations: 32 kB / 479 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002709/0.2047, allocations: 73.89 kB / 479.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00251/0.2072, allocations: 0.8704 MB / 480 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008821/0.2161, allocations: 4.012 MB / 484 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.2171, allocations: 431.1 kB / 484.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006879/0.2178, allocations: 289.1 kB / 484.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.587e-05/0.2179, allocations: 4.438 kB / 484.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/0.2179, allocations: 42.94 kB / 484.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 3.427e-06/0.2179, allocations: 0 / 484.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.004443/0.2224, allocations: 1.709 MB / 486.5 MB, free: 9.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.2224, allocations: 85.55 kB / 486.5 MB, free: 9.855 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006659/0.2231, allocations: 0.586 MB / 487.1 MB, free: 9.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.2232, allocations: 41.83 kB / 487.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.2235, allocations: 470.5 kB / 487.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001466/0.2236, allocations: 189.3 kB / 487.8 MB, free: 8.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.2238, allocations: 134.6 kB / 487.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.224, allocations: 382.8 kB / 488.3 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.2244, allocations: 249.8 kB / 488.6 MB, free: 7.789 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005186/0.2249, allocations: 481 kB / 489 MB, free: 7.223 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.226, allocations: 0.7702 MB / 489.8 MB, free: 6.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.226, allocations: 0 / 489.8 MB, free: 6.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002032/0.228, allocations: 1.118 MB / 490.9 MB, free: 5.203 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.2281, allocations: 8 kB / 490.9 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001384/0.2295, allocations: 0.7917 MB / 491.7 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007294/0.2302, allocations: 230.4 kB / 491.9 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005214/0.2307, allocations: 155.7 kB / 492.1 MB, free: 3.988 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005586/0.2363, allocations: 5.671 MB / 497.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004619/0.2368, allocations: 35.97 kB / 497.8 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.112e-05/0.2369, allocations: 36.06 kB / 497.8 MB, free: 13.81 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.000439/0.2373, allocations: 313.4 kB / 498.1 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.2375, allocations: 67.16 kB / 498.2 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009741/0.2384, allocations: 0.6085 MB / 498.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.2385, allocations: 12 kB / 498.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2385, allocations: 0 / 498.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.2385, allocations: 3.984 kB / 498.8 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/0.2409, allocations: 1.49 MB / 0.4886 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2409, allocations: 0 / 0.4886 GB, free: 11.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006523/0.2416, allocations: 127.9 kB / 0.4887 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.2416, allocations: 8.219 kB / 0.4887 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.184e-05/0.2417, allocations: 15.94 kB / 0.4887 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.2417, allocations: 4 kB / 0.4887 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.2417, allocations: 8.094 kB / 0.4888 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.2429, allocations: 0.9232 MB / 0.4897 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002978/0.2432, allocations: 188.2 kB / 0.4898 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.2433, allocations: 23.92 kB / 0.4899 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/0.2437, allocations: 15.98 kB / 0.4899 GB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.999e-05/0.2438, allocations: 36.39 kB / 0.4899 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-05/0.2438, allocations: 12 kB / 0.4899 GB, free: 9.836 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004869/0.2443, allocations: 419 kB / 0.4903 GB, free: 9.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2443, allocations: 0 / 0.4903 GB, free: 9.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008148/0.2451, allocations: 236 kB / 0.4905 GB, free: 9.199 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.001685/0.2468, allocations: 1.517 MB / 0.492 GB, free: 7.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00185/0.2487, allocations: 1.163 MB / 0.4932 GB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/0.2487, allocations: 0 / 0.4932 GB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000362/0.2491, allocations: 266.7 kB / 0.4934 GB, free: 6.176 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008189/0.2499, allocations: 142.9 kB / 0.4935 GB, free: 6.039 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.2603, allocations: 7.494 MB / 0.5009 GB, free: 14.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007795/0.2611, allocations: 1.086 MB / 0.5019 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005611/0.2617, allocations: 189.9 kB / 0.5021 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000412/0.2621, allocations: 327.3 kB / 0.5024 GB, free: 12.57 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2621, allocations: 0 / 0.5024 GB, free: 12.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1985/0.4606, allocations: 16.44 MB / 0.5185 GB, free: 70.87 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.86, allocations: 9.891 kB / 0.5185 GB, free: 70.87 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)