Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.TurbineGenerator,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator,fileNamePrefix="PowerSystems_latest_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.001569/0.001569, allocations: 108.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.001845/0.001845, 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.34/1.34, allocations: 222.9 MB / 241.5 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.1784/0.1784, allocations: 38.04 MB / 329.7 MB, free: 8.824 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 65.91 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08963, allocations: 58.06 MB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.TurbineGenerator): time 0.0106/0.1003, allocations: 7.507 MB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00505/0.1054, allocations: 2.972 MB / 467.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005393/0.1059, allocations: 27.81 kB / 467.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002096/0.108, allocations: 0.7418 MB / 468.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001809/0.1099, allocations: 0.692 MB / 468.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009461/0.1108, allocations: 375.2 kB / 469.3 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.1126, allocations: 1.344 MB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001054/0.1137, allocations: 0.7208 MB / 471.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.1148, allocations: 0.5487 MB / 471.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/0.116, allocations: 0.6267 MB / 472.5 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000211/0.1162, allocations: 76 kB / 472.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009889/0.1172, allocations: 479.1 kB / 473.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004762/0.1177, allocations: 450.9 kB / 473.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007797/0.1185, allocations: 0.5093 MB / 474 MB, free: 6.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001821/0.1203, allocations: 1.402 MB / 475.4 MB, free: 5.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.1203, allocations: 4 kB / 475.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1203, allocations: 0 / 475.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.684e-05/0.1204, allocations: 0 / 475.4 MB, free: 5.41 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.002689/0.1231, allocations: 1.281 MB / 476.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.1231, allocations: 11.89 kB / 476.7 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001996/0.1233, allocations: 147.6 kB / 476.9 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001335/0.1247, allocations: 207.5 kB / 477.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.1262, allocations: 0.6981 MB / 477.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.127e-05/0.1263, allocations: 70.05 kB / 477.8 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002347/0.1265, allocations: 95.97 kB / 477.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.1283, allocations: 1.096 MB / 479 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.967e-05/0.1284, allocations: 4 kB / 479 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.41e-05/0.1285, allocations: 32 kB / 479.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000174/0.1286, allocations: 73.91 kB / 479.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001513/0.1302, allocations: 0.8665 MB / 480 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006316/0.1365, allocations: 4.016 MB / 484 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006679/0.1372, allocations: 428.7 kB / 484.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003992/0.1376, allocations: 286.9 kB / 484.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1376, allocations: 8.438 kB / 484.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.1377, allocations: 42.94 kB / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 2.885e-06/0.1377, allocations: 0 / 484.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=51): time 0.003188/0.1409, allocations: 1.717 MB / 486.5 MB, free: 9.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.385e-05/0.141, allocations: 81.55 kB / 486.6 MB, free: 9.809 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007069/0.1417, allocations: 0.586 MB / 487.1 MB, free: 9.211 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.861e-05/0.1417, allocations: 37.7 kB / 487.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/0.1421, allocations: 466.4 kB / 487.6 MB, free: 8.703 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.1423, allocations: 197.4 kB / 487.8 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.1425, allocations: 138.6 kB / 488 MB, free: 8.363 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.1427, allocations: 378.8 kB / 488.3 MB, free: 7.984 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004033/0.1431, allocations: 249.8 kB / 488.6 MB, free: 7.742 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005619/0.1436, allocations: 480.9 kB / 489 MB, free: 7.176 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009517/0.1446, allocations: 0.7702 MB / 489.8 MB, free: 6.309 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1446, allocations: 8 kB / 489.8 MB, free: 6.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002049/0.1467, allocations: 1.11 MB / 490.9 MB, free: 5.156 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.1467, allocations: 8.406 kB / 490.9 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001378/0.1481, allocations: 0.7957 MB / 491.7 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007227/0.1488, allocations: 222.3 kB / 492 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005744/0.1494, allocations: 159.7 kB / 492.1 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005934/0.1554, allocations: 5.674 MB / 497.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.156, allocations: 39.97 kB / 497.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/0.1561, allocations: 32 kB / 497.9 MB, free: 13.77 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.0004764/0.1565, allocations: 309.5 kB / 498.2 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.1567, allocations: 67.16 kB / 498.2 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.1577, allocations: 0.6124 MB / 498.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1577, allocations: 4 kB / 498.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.1577, allocations: 0 / 498.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.1578, allocations: 4 kB / 498.8 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.1602, allocations: 1.493 MB / 0.4886 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1602, allocations: 0 / 0.4886 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006382/0.1608, allocations: 123.9 kB / 0.4887 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.1608, allocations: 11.88 kB / 0.4887 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.268e-05/0.1609, allocations: 19.98 kB / 0.4888 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.875e-06/0.1609, allocations: 8 kB / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1609, allocations: 0 / 0.4888 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.1621, allocations: 0.9233 MB / 0.4897 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.1624, allocations: 188.1 kB / 0.4898 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.1625, allocations: 15.94 kB / 0.4899 GB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003542/0.1629, allocations: 31.97 kB / 0.4899 GB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.343e-05/0.163, allocations: 32.39 kB / 0.4899 GB, free: 9.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.032e-05/0.163, allocations: 11.98 kB / 0.4899 GB, free: 9.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004852/0.1635, allocations: 423 kB / 0.4903 GB, free: 9.379 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1635, allocations: 0 / 0.4903 GB, free: 9.379 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000803/0.1643, allocations: 228 kB / 0.4906 GB, free: 9.156 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.001697/0.166, allocations: 1.511 MB / 0.492 GB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001937/0.168, allocations: 1.173 MB / 0.4932 GB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.168, allocations: 0 / 0.4932 GB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003586/0.1684, allocations: 263.6 kB / 0.4934 GB, free: 6.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007824/0.1692, allocations: 146.4 kB / 0.4936 GB, free: 5.992 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009742/0.1789, allocations: 7.491 MB / 0.5009 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007129/0.1797, allocations: 1.079 MB / 0.5019 GB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005498/0.1802, allocations: 197.9 kB / 0.5021 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004027/0.1806, allocations: 327.3 kB / 0.5024 GB, free: 12.52 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1806, allocations: 0 / 0.5024 GB, free: 12.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.208/0.3887, allocations: 16.44 MB / 0.5185 GB, free: 70.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.84, allocations: 8.422 kB / 0.5185 GB, free: 70.92 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_TurbineGenerator.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.TurbineGenerator.pipe 2>&1)