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.00109/0.00109, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001236/0.001236, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.478/1.478, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06349/0.06349, allocations: 14.16 MB / 283.9 MB, free: 7.055 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.002228/0.002228, allocations: 66.97 kB / 348 MB, free: 16.5 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.1, allocations: 50.13 MB / 398.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.IslandOperation.PowerFlow): time 0.01783/0.1179, allocations: 18.63 MB / 416.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01432/0.1322, allocations: 7.612 MB / 424.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003549/0.1358, allocations: 51.81 kB / 424.4 MB, free: 3.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003386/0.1393, allocations: 1.006 MB / 425.4 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2026/0.3419, allocations: 3.242 MB / 428.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003171/0.3451, allocations: 0.7686 MB / 429.4 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008964/0.354, allocations: 5.692 MB / 435.1 MB, free: 15.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007565/0.3548, allocations: 382.4 kB / 435.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004399/0.3592, allocations: 1.895 MB / 437.4 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003625/0.3629, allocations: 2.011 MB / 439.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005167/0.3634, allocations: 201.5 kB / 439.6 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002605/0.366, allocations: 0.72 MB / 440.3 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004101/0.3664, allocations: 0.5024 MB / 440.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002145/0.3686, allocations: 1.679 MB / 442.5 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004342/0.3729, allocations: 3.967 MB / 446.4 MB, free: 12.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3729, allocations: 1.594 kB / 446.4 MB, free: 12.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.373, allocations: 0 / 446.4 MB, free: 12.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.873e-05/0.373, allocations: 0 / 446.4 MB, free: 12.5 MB / 318.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.01464/0.3877, allocations: 4.506 MB / 451 MB, free: 10.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.3877, allocations: 13.91 kB / 451 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002943/0.388, allocations: 305.8 kB / 451.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00199/0.39, allocations: 462.5 kB / 451.7 MB, free: 10.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003677/0.3937, allocations: 1.745 MB / 453.5 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.946e-05/0.3938, allocations: 164.6 kB / 453.6 MB, free: 8.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002248/0.394, allocations: 209.8 kB / 453.8 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003199/0.3973, allocations: 2.144 MB / 456 MB, free: 7.484 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.136e-05/0.3973, allocations: 6.797 kB / 456 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000147/0.3975, allocations: 91.34 kB / 456.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.272e-05/0.3975, allocations: 53.88 kB / 456.1 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002948/0.4005, allocations: 2.176 MB / 458.3 MB, free: 6.367 MB / 318.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.01897/0.4194, allocations: 15.25 MB / 473.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004239/0.4237, allocations: 3.109 MB / 476.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/0.4248, allocations: 0.7949 MB / 477.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001086/0.4249, allocations: 33.89 kB / 477.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.425, allocations: 56.56 kB / 477.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=217): time 3.928e-06/0.425, allocations: 0 / 477.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=217): time 0.008559/0.4335, allocations: 3.447 MB / 481 MB, free: 14.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.4336, allocations: 77.41 kB / 481.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002782/0.4364, allocations: 1.685 MB / 482.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.4365, allocations: 61.7 kB / 482.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008053/0.4373, allocations: 1.061 MB / 483.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000849/0.4382, allocations: 0.7555 MB / 484.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005713/0.4388, allocations: 432.8 kB / 485 MB, free: 10.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.112e-05/0.4389, allocations: 305.1 kB / 485.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009927/0.4399, allocations: 0.6618 MB / 486 MB, free: 9.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.4413, allocations: 1.221 MB / 487.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.4439, allocations: 2.02 MB / 489.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.126e-05/0.444, allocations: 4 kB / 489.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=326) (initialization): time 0.005125/0.4491, allocations: 2.684 MB / 491.9 MB, free: 2.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.201e-05/0.4491, allocations: 12 kB / 491.9 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.482e-05/0.4492, allocations: 16 kB / 492 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.451, allocations: 0.542 MB / 492.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002065/0.4531, allocations: 0.5765 MB / 493.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008953/0.462, allocations: 7.725 MB / 0.4891 GB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002969/0.465, allocations: 186.6 kB / 0.4892 GB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/0.4652, allocations: 95.98 kB / 0.4893 GB, free: 9.16 MB / 366.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.00095/0.4662, allocations: 486.1 kB / 0.4898 GB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005287/0.4667, allocations: 237.2 kB / 0.49 GB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003788/0.4705, allocations: 2.152 MB / 0.4921 GB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/0.4705, allocations: 20 kB / 0.4921 GB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.974e-06/0.4705, allocations: 3.984 kB / 0.4922 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.4706, allocations: 7.969 kB / 0.4922 GB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008467/0.479, allocations: 5.273 MB / 0.4973 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.4791, allocations: 4 kB / 0.4973 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00154/0.4806, allocations: 391.6 kB / 0.4977 GB, free: 404 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001616/0.4822, allocations: 0.5067 MB / 0.4982 GB, free: 15.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.091e-05/0.4824, allocations: 40 kB / 0.4982 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008267/0.4906, allocations: 7.559 MB / 0.5056 GB, free: 7.871 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/0.4907, allocations: 11.94 kB / 0.5056 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004177/0.4948, allocations: 2.307 MB / 0.5079 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/0.4961, allocations: 0.506 MB / 0.5084 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003368/0.4964, allocations: 51.88 kB / 0.5084 GB, free: 4.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.4979, allocations: 51.84 kB / 0.5085 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002709/0.4982, allocations: 153.7 kB / 0.5086 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.4983, allocations: 56 kB / 0.5087 GB, free: 4.633 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001528/0.4998, allocations: 1.105 MB / 0.5097 GB, free: 3.504 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4999, allocations: 0 / 0.5097 GB, free: 3.504 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002527/0.5024, allocations: 0.8861 MB / 0.5106 GB, free: 2.617 MB / 382.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.004259/0.5067, allocations: 3.049 MB / 0.5136 GB, free: 15.49 MB / 398.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.005953/0.5126, allocations: 2.446 MB / 0.516 GB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.5126, allocations: 4.188 kB / 0.516 GB, free: 13 MB / 398.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created simulation system equations: time 0.002014/0.5147, allocations: 1.394 MB / 0.5173 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.5172, allocations: 329.5 kB / 0.5176 GB, free: 11.25 MB / 398.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02616/0.5433, allocations: 18.7 MB / 0.5359 GB, free: 6.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.5444, allocations: 1.486 MB / 0.5374 GB, free: 5.207 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001539/0.546, allocations: 298.7 kB / 0.5376 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/0.5472, allocations: 0.8897 MB / 0.5385 GB, free: 4.023 MB / 414.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5472, allocations: 0 / 0.5385 GB, free: 4.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09316/0.6404, allocations: 50.69 MB / 0.588 GB, free: 1.301 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.36, allocations: 3.859 kB / 0.588 GB, free: 1.297 MB / 462.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)