Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Ignoring simflag -noemit -outputFormat=mat since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_IslandOperation_PowerFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_IslandOperation_PowerFlow",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.009344/0.009344, allocations: 98.55 kB / 15.73 MB, free: 6.035 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.001905/0.001905, allocations: 193.3 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.1 MB / 222.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06291/0.06291, allocations: 14.18 MB / 284.1 MB, free: 13.85 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001428/0.001428, allocations: 75.59 kB / 398.8 MB, free: 42.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07033/0.07176, allocations: 50.13 MB / 448.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.0157/0.0875, allocations: 18.62 MB / 467.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01215/0.09969, allocations: 7.62 MB / 475.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002374/0.1021, allocations: 51.81 kB / 475.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.1046, allocations: 0.998 MB / 476.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007836/0.1125, allocations: 3.41 MB / 479.6 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.1141, allocations: 0.7744 MB / 480.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00592/0.1201, allocations: 5.708 MB / 486.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006029/0.1207, allocations: 390.4 kB / 486.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002446/0.1231, allocations: 1.942 MB / 488.4 MB, free: 3.719 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00225/0.1254, allocations: 2.016 MB / 490.4 MB, free: 1.695 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002982/0.1257, allocations: 200 kB / 490.6 MB, free: 1.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00157/0.1273, allocations: 0.7262 MB / 491.4 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.1276, allocations: 0.4937 MB / 491.9 MB, free: 284 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.1292, allocations: 1.676 MB / 493.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004569/0.1337, allocations: 4.212 MB / 497.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1338, allocations: 0 / 497.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1338, allocations: 0 / 497.8 MB, free: 10.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.431e-05/0.1338, allocations: 4 kB / 497.8 MB, free: 10.36 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 560 * Number of variables: 560 Notification: Performance of Generate backend data structure: time 0.01496/0.1488, allocations: 4.548 MB / 0.4905 GB, free: 5.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1489, allocations: 8.031 kB / 0.4905 GB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003381/0.1492, allocations: 304.4 kB / 0.4908 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001958/0.1512, allocations: 474.8 kB / 0.4913 GB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003401/0.1546, allocations: 1.804 MB / 0.493 GB, free: 3.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.1547, allocations: 164.5 kB / 0.4932 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002734/0.155, allocations: 219.9 kB / 0.4934 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00331/0.1583, allocations: 2.141 MB / 0.4955 GB, free: 484 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.987e-05/0.1584, allocations: 7.938 kB / 0.4955 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001689/0.1585, allocations: 88 kB / 0.4956 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.919e-05/0.1586, allocations: 52 kB / 0.4956 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003279/0.1619, allocations: 2.172 MB / 0.4978 GB, free: 14.14 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01917/0.1811, allocations: 15.17 MB / 0.5126 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004301/0.1854, allocations: 3.124 MB / 0.5156 GB, free: 9.926 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.1865, allocations: 0.7988 MB / 0.5164 GB, free: 9.129 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.1866, allocations: 26 kB / 0.5164 GB, free: 9.105 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.1866, allocations: 56.55 kB / 0.5165 GB, free: 9.039 MB / 414.1 MB Notification: Performance of pre-optimization done (n=217): time 3.507e-06/0.1867, allocations: 0 / 0.5165 GB, free: 9.039 MB / 414.1 MB Notification: Performance of matching and sorting (n=217): time 0.008215/0.1949, allocations: 3.478 MB / 0.5199 GB, free: 5.492 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.483e-05/0.195, allocations: 77.34 kB / 0.52 GB, free: 5.406 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.1973, allocations: 1.693 MB / 0.5216 GB, free: 3.668 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.1974, allocations: 57.7 kB / 0.5217 GB, free: 3.605 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000778/0.1982, allocations: 1.092 MB / 0.5227 GB, free: 2.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007209/0.1989, allocations: 0.79 MB / 0.5235 GB, free: 1.703 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005591/0.1995, allocations: 437 kB / 0.5239 GB, free: 1.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.619e-05/0.1996, allocations: 305.1 kB / 0.5242 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.2006, allocations: 0.661 MB / 0.5249 GB, free: 312 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1751/0.3757, allocations: 1.208 MB / 0.526 GB, free: 78.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002599/0.3784, allocations: 2.023 MB / 0.528 GB, free: 78.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-05/0.3784, allocations: 4.5 kB / 0.528 GB, free: 78.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.005376/0.3838, allocations: 2.691 MB / 0.5306 GB, free: 77.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.3838, allocations: 12.31 kB / 0.5307 GB, free: 77.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.005e-05/0.3839, allocations: 16.16 kB / 0.5307 GB, free: 77.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001985/0.3859, allocations: 0.5351 MB / 0.5312 GB, free: 77.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002241/0.3881, allocations: 0.5757 MB / 0.5318 GB, free: 77.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008732/0.3969, allocations: 7.71 MB / 0.5393 GB, free: 71.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/0.3997, allocations: 192.2 kB / 0.5395 GB, free: 71.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/0.3999, allocations: 95.05 kB / 0.5396 GB, free: 71.32 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 282 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(4,26), (2,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0009041/0.4008, allocations: 485.5 kB / 0.54 GB, free: 70.96 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005591/0.4014, allocations: 249.2 kB / 0.5403 GB, free: 70.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003798/0.4052, allocations: 2.15 MB / 0.5424 GB, free: 69.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.4052, allocations: 21.64 kB / 0.5424 GB, free: 69.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.4053, allocations: 3.531 kB / 0.5424 GB, free: 69.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.528e-05/0.4053, allocations: 11.73 kB / 0.5424 GB, free: 69.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00719/0.4125, allocations: 5.252 MB / 0.5475 GB, free: 67.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.248e-06/0.4125, allocations: 5.156 kB / 0.5475 GB, free: 67.1 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001476/0.414, allocations: 393.3 kB / 0.5479 GB, free: 67.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001506/0.4155, allocations: 0.5084 MB / 0.5484 GB, free: 66.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.244e-05/0.4156, allocations: 39.11 kB / 0.5484 GB, free: 66.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007129/0.4228, allocations: 7.565 MB / 0.5558 GB, free: 60.83 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.4228, allocations: 7.875 kB / 0.5558 GB, free: 60.83 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003749/0.4265, allocations: 2.327 MB / 0.5581 GB, free: 59.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.4276, allocations: 0.5192 MB / 0.5586 GB, free: 59.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003235/0.4279, allocations: 44.44 kB / 0.5587 GB, free: 59.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.4294, allocations: 54.02 kB / 0.5587 GB, free: 59.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002181/0.4297, allocations: 149.6 kB / 0.5589 GB, free: 59.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.149e-05/0.4297, allocations: 62.75 kB / 0.5589 GB, free: 59.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001436/0.4312, allocations: 1.102 MB / 0.56 GB, free: 58.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4312, allocations: 0 / 0.56 GB, free: 58.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002914/0.4341, allocations: 0.8914 MB / 0.5609 GB, free: 58.55 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (176): * Single equations (assignments): 173 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,10), (4,26)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003497/0.4376, allocations: 3.05 MB / 0.5638 GB, free: 56.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003363/0.441, allocations: 2.387 MB / 0.5662 GB, free: 54.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.441, allocations: 0 / 0.5662 GB, free: 54.36 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.4427, allocations: 1.405 MB / 0.5675 GB, free: 52.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001895/0.4446, allocations: 332.5 kB / 0.5679 GB, free: 52.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02012/0.4648, allocations: 16.51 MB / 0.584 GB, free: 35.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007081/0.4655, allocations: 1.486 MB / 0.5854 GB, free: 33.79 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001093/0.4666, allocations: 304.6 kB / 0.5857 GB, free: 33.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009673/0.4676, allocations: 0.882 MB / 0.5866 GB, free: 32.62 MB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.4676, allocations: 0 / 0.5866 GB, free: 32.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09323/0.5608, allocations: 51.51 MB / 0.6369 GB, free: 13.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.55/17.11, allocations: 4.594 kB / 0.6369 GB, free: 13.09 MB / 446.1 MB (rm -f PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.pipe ; mkfifo PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.pipe >> ../files/PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.sim & python3 -m fmpy simulate --output-file PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 PowerGrids_PowerGrids_Examples_Tutorial_IslandOperation_PowerFlow.fmu > PowerGrids_PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow.pipe 2>&1)