Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters.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.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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 -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridComputedParameters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_Static_StaticGridComputedParameters",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.001133/0.001132, allocations: 92.86 kB / 15.71 MB, free: 464 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.001289/0.001289, allocations: 177.4 kB / 16.59 MB, free: 6.398 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.832/1.832, allocations: 205.4 MB / 222.8 MB, free: 5.625 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06618/0.06618, allocations: 14.17 MB / 285.2 MB, free: 7.109 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.0005273/0.0005274, allocations: 16 kB / 349.6 MB, free: 17.07 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1208, allocations: 51.12 MB / 400.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.Static.StaticGridComputedParameters): time 0.01179/0.1326, allocations: 11.14 MB / 411.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.1429, allocations: 5.081 MB / 417 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002464/0.1454, allocations: 31.88 kB / 417 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002141/0.1475, allocations: 473.4 kB / 417.5 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006794/0.1544, allocations: 1.851 MB / 419.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00201/0.1564, allocations: 0.7048 MB / 420 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006393/0.1628, allocations: 3.539 MB / 423.5 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008188/0.1636, allocations: 221.4 kB / 423.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.166, allocations: 0.9488 MB / 424.7 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/0.1684, allocations: 1.039 MB / 425.7 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005919/0.1691, allocations: 64 kB / 425.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002251/0.1713, allocations: 439.6 kB / 426.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005669/0.1719, allocations: 254.6 kB / 426.5 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.1731, allocations: 380.8 kB / 426.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003218/0.1763, allocations: 1.87 MB / 428.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.1763, allocations: 0 / 428.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1764, allocations: 0 / 428.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.7e-05/0.1765, allocations: 0 / 428.7 MB, free: 1.801 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: 325 * Number of variables: 325 Notification: Performance of Generate backend data structure: time 0.2545/0.431, allocations: 2.632 MB / 431.4 MB, free: 36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/0.4311, allocations: 12.59 kB / 431.4 MB, free: 36 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005703/0.4316, allocations: 189.8 kB / 431.6 MB, free: 35.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/0.4329, allocations: 276.8 kB / 431.8 MB, free: 35.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002406/0.4353, allocations: 1.09 MB / 432.9 MB, free: 35.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-05/0.4354, allocations: 106.3 kB / 433 MB, free: 35.45 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002203/0.4357, allocations: 142.9 kB / 433.2 MB, free: 35.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002531/0.4382, allocations: 1.266 MB / 434.4 MB, free: 35.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.4382, allocations: 6.188 kB / 434.4 MB, free: 35.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.627e-05/0.4384, allocations: 50.38 kB / 434.5 MB, free: 35.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.114e-05/0.4384, allocations: 33.03 kB / 434.5 MB, free: 35.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002275/0.4407, allocations: 1.292 MB / 435.8 MB, free: 34.63 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.01208/0.4528, allocations: 8.382 MB / 444.2 MB, free: 27.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.4553, allocations: 2.078 MB / 446.3 MB, free: 26.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008793/0.4562, allocations: 0.509 MB / 446.8 MB, free: 26.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.91e-05/0.4563, allocations: 22.08 kB / 446.8 MB, free: 26.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.4564, allocations: 44.44 kB / 446.8 MB, free: 25.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=140): time 3.326e-06/0.4564, allocations: 0 / 446.8 MB, free: 25.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=141): time 0.01189/0.4683, allocations: 4.241 MB / 451.1 MB, free: 23.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.4684, allocations: 70.22 kB / 451.2 MB, free: 23.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.4702, allocations: 1.085 MB / 452.2 MB, free: 23.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001424/0.4703, allocations: 51.95 kB / 452.3 MB, free: 23.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000626/0.471, allocations: 0.6836 MB / 453 MB, free: 22.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005078/0.4715, allocations: 0.4984 MB / 453.5 MB, free: 22.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.579e-05/0.4716, allocations: 41.09 kB / 453.5 MB, free: 22.05 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.4717, allocations: 386.4 kB / 453.9 MB, free: 21.69 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009222/0.4726, allocations: 0.5474 MB / 454.4 MB, free: 21.41 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00124/0.4739, allocations: 1.005 MB / 455.4 MB, free: 20.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.4749, allocations: 0.7199 MB / 456.2 MB, free: 20.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.4749, allocations: 3.781 kB / 456.2 MB, free: 20.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=264) (initialization): time 0.004265/0.4792, allocations: 2.321 MB / 458.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.78e-05/0.4793, allocations: 12.94 kB / 458.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-05/0.4793, allocations: 18.61 kB / 458.5 MB, free: 18.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005622/0.485, allocations: 1.201 MB / 459.7 MB, free: 18.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001795/0.4868, allocations: 477.6 kB / 460.2 MB, free: 18.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/0.4968, allocations: 12.48 MB / 472.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002242/0.4991, allocations: 127.2 kB / 472.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/0.4995, allocations: 79.98 kB / 472.9 MB, free: 4.723 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (235): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 0,(2,100.0%) 0,(2,100.0%) 0} * Non-linear torn systems: 5 {23 0,2 0,2 0,2 0,2 0} Notification: Performance of prepare postOptimizeDAE: time 0.001008/0.5005, allocations: 357.5 kB / 473.2 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000525/0.501, allocations: 154.1 kB / 473.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002862/0.5039, allocations: 1.533 MB / 474.9 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.5039, allocations: 12 kB / 474.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.504, allocations: 12 kB / 474.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.407e-05/0.504, allocations: 7.969 kB / 474.9 MB, free: 2.629 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 postOpt removeSimpleEquations (simulation): time 0.005285/0.5093, allocations: 3.151 MB / 478.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.5093, allocations: 0 / 478.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.5104, allocations: 243.7 kB / 478.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.5114, allocations: 296.4 kB / 478.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.5115, allocations: 24 kB / 478.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006792/0.5183, allocations: 3.821 MB / 482.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.5183, allocations: 3.938 kB / 482.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02763/0.546, allocations: 13.13 MB / 495.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/0.547, allocations: 323.1 kB / 495.9 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004264/0.5475, allocations: 27.92 kB / 495.9 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.5486, allocations: 51.69 kB / 496 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/0.549, allocations: 93.17 kB / 496.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-05/0.5491, allocations: 28 kB / 496.1 MB, free: 12.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001242/0.5503, allocations: 0.6847 MB / 496.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5503, allocations: 4 kB / 496.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003366/0.5537, allocations: 0.7042 MB / 497.5 MB, free: 11.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (GEN.theta,GEN.omegaPu,GEN.lambdaDPu,GEN.lambdafPu,GEN.lambdaQ1Pu,GEN.lambdaQ2Pu) * 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 (108): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(36,8.0%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004581/0.5583, allocations: 2.803 MB / 0.4886 GB, free: 8.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005606/0.5639, allocations: 2.745 MB / 0.4912 GB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.564, allocations: 1.875 kB / 0.4912 GB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002503/0.5665, allocations: 1.202 MB / 0.4924 GB, free: 4.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002037/0.5685, allocations: 180.7 kB / 0.4926 GB, free: 4.445 MB / 350.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/0.5922, allocations: 10.83 MB / 0.5032 GB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.5937, allocations: 1.283 MB / 0.5044 GB, free: 7.816 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001103/0.5948, allocations: 199.5 kB / 0.5046 GB, free: 7.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000952/0.5958, allocations: 0.55 MB / 0.5052 GB, free: 7.066 MB / 366.1 MB Notification: Performance of SimCode: time 1.703e-06/0.5958, allocations: 0 / 0.5052 GB, free: 7.066 MB / 366.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).