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.007735/0.007735, allocations: 98.77 kB / 15.73 MB, free: 6.031 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.001782/0.001782, allocations: 193.8 kB / 16.67 MB, free: 5.953 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.335/1.335, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06256/0.06256, allocations: 14.16 MB / 284.1 MB, free: 6.969 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.002682/0.002682, allocations: 63.89 kB / 398.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2896, allocations: 50.14 MB / 448.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.01719/0.3068, allocations: 18.61 MB / 467.5 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.3192, allocations: 7.623 MB / 475.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00261/0.3218, allocations: 51.81 kB / 475.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00287/0.3248, allocations: 1.006 MB / 476.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008879/0.3337, allocations: 3.413 MB / 479.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.3356, allocations: 0.7711 MB / 480.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007645/0.3433, allocations: 5.712 MB / 486.1 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009427/0.3442, allocations: 390 kB / 486.5 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003834/0.3481, allocations: 1.946 MB / 488.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003678/0.3518, allocations: 2.012 MB / 490.5 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009576/0.3528, allocations: 200 kB / 490.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002605/0.3554, allocations: 0.7261 MB / 491.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007236/0.3562, allocations: 0.4937 MB / 491.9 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002855/0.359, allocations: 1.675 MB / 493.6 MB, free: 10 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006658/0.3657, allocations: 4.216 MB / 497.8 MB, free: 5.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3657, allocations: 0 / 497.8 MB, free: 5.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3657, allocations: 0 / 497.8 MB, free: 5.777 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001213/0.3659, allocations: 0 / 497.8 MB, free: 5.777 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.01574/0.3816, allocations: 4.548 MB / 0.4905 GB, free: 1.156 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3817, allocations: 8.031 kB / 0.4905 GB, free: 1.148 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004742/0.3822, allocations: 300.4 kB / 0.4908 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002169/0.3843, allocations: 474.7 kB / 0.4913 GB, free: 388 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003821/0.3882, allocations: 1.816 MB / 0.4931 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.3883, allocations: 164.5 kB / 0.4932 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002948/0.3886, allocations: 212 kB / 0.4934 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003742/0.3924, allocations: 2.141 MB / 0.4955 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.413e-05/0.3924, allocations: 7.938 kB / 0.4955 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.3926, allocations: 88 kB / 0.4956 GB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.454e-05/0.3927, allocations: 56 kB / 0.4957 GB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00356/0.3963, allocations: 2.176 MB / 0.4978 GB, free: 9.547 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.02037/0.4166, allocations: 15.17 MB / 0.5126 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004877/0.4216, allocations: 3.116 MB / 0.5156 GB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001261/0.4228, allocations: 0.7988 MB / 0.5164 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.423, allocations: 29.97 kB / 0.5165 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.4231, allocations: 56.56 kB / 0.5165 GB, free: 4.445 MB / 398.1 MB Notification: Performance of pre-optimization done (n=217): time 4.819e-06/0.4231, allocations: 0 / 0.5165 GB, free: 4.445 MB / 398.1 MB Notification: Performance of matching and sorting (n=217): time 0.008789/0.4319, allocations: 3.466 MB / 0.5199 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.878e-05/0.4319, allocations: 77.34 kB / 0.52 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002629/0.4346, allocations: 1.689 MB / 0.5216 GB, free: 15.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.4347, allocations: 61.7 kB / 0.5217 GB, free: 15.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008119/0.4355, allocations: 1.088 MB / 0.5227 GB, free: 13.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007579/0.4363, allocations: 0.7978 MB / 0.5235 GB, free: 13.12 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006448/0.4369, allocations: 429.1 kB / 0.5239 GB, free: 12.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.457e-05/0.437, allocations: 305.1 kB / 0.5242 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.4382, allocations: 0.661 MB / 0.5249 GB, free: 11.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.4397, allocations: 1.222 MB / 0.5261 GB, free: 10.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002773/0.4425, allocations: 2.021 MB / 0.528 GB, free: 8.004 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.4425, allocations: 11.94 kB / 0.528 GB, free: 7.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.005022/0.4475, allocations: 2.693 MB / 0.5307 GB, free: 5.238 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.048e-05/0.4476, allocations: 12 kB / 0.5307 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/0.4476, allocations: 16 kB / 0.5307 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001772/0.4494, allocations: 0.5297 MB / 0.5312 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/0.4516, allocations: 0.5773 MB / 0.5318 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009231/0.4608, allocations: 7.711 MB / 0.5393 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002696/0.4635, allocations: 191 kB / 0.5395 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003196/0.4639, allocations: 100 kB / 0.5396 GB, free: 11.7 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.001253/0.4651, allocations: 481.1 kB / 0.54 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00089/0.466, allocations: 242.5 kB / 0.5403 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004795/0.4709, allocations: 2.156 MB / 0.5424 GB, free: 8.793 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.874e-05/0.4709, allocations: 20 kB / 0.5424 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4709, allocations: 0 / 0.5424 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.589e-05/0.471, allocations: 15.95 kB / 0.5424 GB, free: 8.758 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009363/0.4803, allocations: 5.255 MB / 0.5475 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/0.4804, allocations: 4 kB / 0.5475 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.482, allocations: 391.8 kB / 0.5479 GB, free: 2.891 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.4837, allocations: 0.5065 MB / 0.5484 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/0.4838, allocations: 40 kB / 0.5485 GB, free: 2.336 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009001/0.4928, allocations: 7.569 MB / 0.5558 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.4929, allocations: 4 kB / 0.5559 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/0.4973, allocations: 2.318 MB / 0.5581 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/0.4988, allocations: 0.5303 MB / 0.5586 GB, free: 7.395 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006564/0.4995, allocations: 36 kB / 0.5587 GB, free: 7.359 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001806/0.5013, allocations: 52 kB / 0.5587 GB, free: 7.309 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002796/0.5016, allocations: 153.7 kB / 0.5589 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.705e-05/0.5017, allocations: 52 kB / 0.5589 GB, free: 7.109 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002226/0.5039, allocations: 1.105 MB / 0.56 GB, free: 5.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.504, allocations: 0 / 0.56 GB, free: 5.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003327/0.5073, allocations: 0.8901 MB / 0.5609 GB, free: 5.09 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.005035/0.5123, allocations: 3.053 MB / 0.5638 GB, free: 1.949 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004276/0.5166, allocations: 2.39 MB / 0.5662 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5167, allocations: 0 / 0.5662 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002236/0.5189, allocations: 1.402 MB / 0.5675 GB, free: 14.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.5219, allocations: 349 kB / 0.5679 GB, free: 13.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03013/0.5521, allocations: 16.49 MB / 0.584 GB, free: 12.44 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001344/0.5535, allocations: 1.482 MB / 0.5854 GB, free: 10.92 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001256/0.5547, allocations: 308.9 kB / 0.5857 GB, free: 10.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.556, allocations: 0.882 MB / 0.5866 GB, free: 9.734 MB / 478.1 MB Notification: Performance of SimCode: time 1.283e-06/0.556, allocations: 0 / 0.5866 GB, free: 9.734 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2786/0.8347, allocations: 51.52 MB / 0.6369 GB, free: 114.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.65/16.48, allocations: 6.906 kB / 0.6369 GB, free: 114.4 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)