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.007233/0.007233, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.001887/0.001887, allocations: 193.4 kB / 16.68 MB, free: 5.973 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.57/1.57, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06824/0.06824, allocations: 14.17 MB / 284.1 MB, free: 6.984 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.002102/0.002102, allocations: 75.89 kB / 398.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2586, allocations: 50.13 MB / 448.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.01731/0.276, allocations: 18.63 MB / 467.6 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01298/0.289, allocations: 7.606 MB / 475.2 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002639/0.2917, allocations: 51.81 kB / 475.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002672/0.2944, allocations: 1.01 MB / 476.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008644/0.3031, allocations: 3.249 MB / 479.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.305, allocations: 0.7672 MB / 480.2 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007578/0.3126, allocations: 5.72 MB / 486 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007561/0.3134, allocations: 382.1 kB / 486.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.3163, allocations: 1.899 MB / 488.2 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002778/0.3191, allocations: 2.02 MB / 490.3 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003707/0.3195, allocations: 200 kB / 490.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0018/0.3213, allocations: 0.7263 MB / 491.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004292/0.3218, allocations: 0.4937 MB / 491.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.3236, allocations: 1.679 MB / 493.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005566/0.3292, allocations: 4.212 MB / 497.6 MB, free: 5.984 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3292, allocations: 0 / 497.6 MB, free: 5.984 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3292, allocations: 0 / 497.6 MB, free: 5.984 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.905e-05/0.3293, allocations: 0 / 497.6 MB, free: 5.984 MB / 366.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.01529/0.3446, allocations: 4.544 MB / 0.4903 GB, free: 1.367 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.71e-05/0.3447, allocations: 12.03 kB / 0.4903 GB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003859/0.3451, allocations: 304.4 kB / 0.4906 GB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002052/0.3471, allocations: 478.7 kB / 0.4911 GB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003669/0.3508, allocations: 1.797 MB / 0.4928 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.351, allocations: 168.5 kB / 0.493 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002826/0.3513, allocations: 212 kB / 0.4932 GB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003383/0.3546, allocations: 2.15 MB / 0.4953 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/0.3547, allocations: 0 / 0.4953 GB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001845/0.3549, allocations: 96 kB / 0.4954 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.55e-05/0.3549, allocations: 56 kB / 0.4955 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00348/0.3584, allocations: 2.172 MB / 0.4976 GB, free: 9.758 MB / 382.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.02119/0.3796, allocations: 15.18 MB / 0.5124 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00448/0.3841, allocations: 3.109 MB / 0.5154 GB, free: 5.547 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.3853, allocations: 0.8027 MB / 0.5162 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.3854, allocations: 29.98 kB / 0.5162 GB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/0.3855, allocations: 56.56 kB / 0.5163 GB, free: 4.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=217): time 3.827e-06/0.3855, allocations: 3.938 kB / 0.5163 GB, free: 4.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=217): time 0.008534/0.394, allocations: 3.466 MB / 0.5197 GB, free: 1.113 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.3941, allocations: 77.41 kB / 0.5198 GB, free: 1.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002518/0.3966, allocations: 1.689 MB / 0.5214 GB, free: 15.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.3967, allocations: 61.7 kB / 0.5215 GB, free: 15.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008845/0.3976, allocations: 1.088 MB / 0.5225 GB, free: 14.12 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008331/0.3985, allocations: 0.79 MB / 0.5233 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000619/0.3991, allocations: 437.1 kB / 0.5237 GB, free: 12.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3992, allocations: 305.1 kB / 0.524 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.4003, allocations: 0.6571 MB / 0.5247 GB, free: 11.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001558/0.4019, allocations: 1.222 MB / 0.5259 GB, free: 10.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002851/0.4047, allocations: 2.02 MB / 0.5278 GB, free: 8.211 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.266e-05/0.4048, allocations: 8 kB / 0.5278 GB, free: 8.203 MB / 414.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.005103/0.4099, allocations: 2.689 MB / 0.5305 GB, free: 5.453 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.4099, allocations: 15.98 kB / 0.5305 GB, free: 5.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/0.41, allocations: 19.94 kB / 0.5305 GB, free: 5.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001835/0.4118, allocations: 0.5298 MB / 0.531 GB, free: 4.879 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002168/0.414, allocations: 0.5773 MB / 0.5316 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009796/0.4238, allocations: 7.707 MB / 0.5391 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002581/0.4264, allocations: 194.9 kB / 0.5393 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/0.4266, allocations: 92 kB / 0.5394 GB, free: 11.91 MB / 430.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.0009003/0.4275, allocations: 481.1 kB / 0.5398 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005047/0.428, allocations: 246.5 kB / 0.5401 GB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.432, allocations: 2.159 MB / 0.5422 GB, free: 9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.93e-05/0.4321, allocations: 20 kB / 0.5422 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.4321, allocations: 0 / 0.5422 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/0.4321, allocations: 7.969 kB / 0.5422 GB, free: 8.973 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008001/0.4401, allocations: 5.258 MB / 0.5473 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.378e-06/0.4401, allocations: 4 kB / 0.5473 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/0.4417, allocations: 396.1 kB / 0.5477 GB, free: 3.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001652/0.4434, allocations: 0.5064 MB / 0.5482 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.607e-05/0.4435, allocations: 40 kB / 0.5483 GB, free: 2.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00916/0.4527, allocations: 7.566 MB / 0.5556 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.4527, allocations: 7.938 kB / 0.5556 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004367/0.4571, allocations: 2.314 MB / 0.5579 GB, free: 8.156 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.4582, allocations: 0.5303 MB / 0.5584 GB, free: 7.605 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/0.4584, allocations: 44 kB / 0.5585 GB, free: 7.562 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001472/0.4599, allocations: 51.98 kB / 0.5585 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002628/0.4602, allocations: 145.7 kB / 0.5587 GB, free: 7.371 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.447e-05/0.4603, allocations: 63.98 kB / 0.5587 GB, free: 7.309 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001644/0.4619, allocations: 1.101 MB / 0.5598 GB, free: 6.184 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.462, allocations: 0 / 0.5598 GB, free: 6.184 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002551/0.4645, allocations: 0.8941 MB / 0.5607 GB, free: 5.289 MB / 446.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.004565/0.4691, allocations: 3.053 MB / 0.5636 GB, free: 2.148 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004018/0.4731, allocations: 2.39 MB / 0.566 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4731, allocations: 0 / 0.566 GB, free: 15.72 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.4753, allocations: 1.413 MB / 0.5674 GB, free: 14.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001853/0.4772, allocations: 329.5 kB / 0.5677 GB, free: 13.94 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02612/0.5033, allocations: 16.49 MB / 0.5838 GB, free: 12.64 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.5046, allocations: 1.49 MB / 0.5852 GB, free: 11.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001161/0.5058, allocations: 296.9 kB / 0.5855 GB, free: 10.82 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/0.507, allocations: 0.8859 MB / 0.5864 GB, free: 9.938 MB / 478.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5071, allocations: 7.938 kB / 0.5864 GB, free: 9.93 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3042/0.8113, allocations: 51.5 MB / 0.6367 GB, free: 114.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.26/17.07, allocations: 7.031 kB / 0.6367 GB, free: 114.6 MB / 478.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)