Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals.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.LoadChange.LoadChangeByInputSignals,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_LoadChange_LoadChangeByInputSignals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals,fileNamePrefix="PowerGrids_PowerGrids_Examples_Tutorial_GridOperation_LoadChange_LoadChangeByInputSignals",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.001401/0.0014, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001708/0.001708, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.533/1.533, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05881/0.05881, allocations: 14.16 MB / 284.5 MB, free: 7.027 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.0005464/0.0005466, allocations: 16 kB / 348.9 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1114, allocations: 51.12 MB / 400 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals): time 0.01072/0.1222, allocations: 10.43 MB / 410.5 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01017/0.1324, allocations: 5.098 MB / 415.6 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001989/0.1344, allocations: 31.88 kB / 415.6 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.1361, allocations: 481.3 kB / 416.1 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006697/0.1428, allocations: 2.018 MB / 418.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.1448, allocations: 0.7323 MB / 418.8 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005589/0.1504, allocations: 2.646 MB / 421.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006817/0.1511, allocations: 230.2 kB / 421.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00214/0.1532, allocations: 1.004 MB / 422.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.1556, allocations: 1.062 MB / 423.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005187/0.1561, allocations: 68 kB / 423.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002067/0.1582, allocations: 423.6 kB / 424.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005506/0.1588, allocations: 262.8 kB / 424.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.16, allocations: 388.8 kB / 424.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00329/0.1633, allocations: 1.89 MB / 426.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1633, allocations: 0 / 426.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1633, allocations: 7.938 kB / 426.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.139e-05/0.1634, allocations: 0 / 426.8 MB, free: 3.121 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: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.01047/0.1739, allocations: 2.756 MB / 429.5 MB, free: 304 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1739, allocations: 12.03 kB / 429.5 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003868/0.1743, allocations: 198.4 kB / 429.7 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2212/0.3955, allocations: 298.2 kB / 430 MB, free: 35.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002993/0.3986, allocations: 1.092 MB / 431.1 MB, free: 35.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.351e-05/0.3987, allocations: 114.1 kB / 431.2 MB, free: 35.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.3989, allocations: 151.8 kB / 431.4 MB, free: 35.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002746/0.4017, allocations: 1.323 MB / 432.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.976e-05/0.4017, allocations: 1.094 kB / 432.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.4018, allocations: 53.41 kB / 432.7 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/0.4019, allocations: 33.39 kB / 432.8 MB, free: 35.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002618/0.4045, allocations: 1.364 MB / 434.1 MB, free: 34.74 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.01143/0.416, allocations: 8.598 MB / 442.7 MB, free: 27.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0031/0.4191, allocations: 2.228 MB / 445 MB, free: 26.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001012/0.4192, allocations: 23.2 kB / 445 MB, free: 26.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001428/0.4207, allocations: 0.7637 MB / 445.8 MB, free: 25.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=162): time 4.409e-06/0.4207, allocations: 0 / 445.8 MB, free: 25.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=163): time 0.01321/0.4339, allocations: 5.054 MB / 450.8 MB, free: 23.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.434, allocations: 230.2 kB / 451 MB, free: 22.87 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.4354, allocations: 1.019 MB / 452 MB, free: 22.28 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001341/0.4356, allocations: 68.91 kB / 452.1 MB, free: 22.21 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004573/0.436, allocations: 0.6299 MB / 452.7 MB, free: 21.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004578/0.4365, allocations: 0.5582 MB / 453.3 MB, free: 21.17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.414e-05/0.4366, allocations: 41.56 kB / 453.3 MB, free: 21.14 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.4367, allocations: 383.4 kB / 453.7 MB, free: 20.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.4377, allocations: 0.5938 MB / 454.3 MB, free: 20.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.4388, allocations: 0.9312 MB / 455.2 MB, free: 19.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/0.4399, allocations: 0.7899 MB / 456 MB, free: 19.31 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.4399, allocations: 0 / 456 MB, free: 19.31 MB / 318.1 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.004351/0.4442, allocations: 2.416 MB / 458.4 MB, free: 18.01 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/0.4443, allocations: 59.34 kB / 458.5 MB, free: 17.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.762e-05/0.4443, allocations: 15.52 kB / 458.5 MB, free: 17.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002678/0.447, allocations: 0.7506 MB / 459.3 MB, free: 17.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/0.449, allocations: 497.8 kB / 459.8 MB, free: 17.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008873/0.4579, allocations: 11.49 MB / 471.2 MB, free: 5.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/0.4599, allocations: 103.6 kB / 471.3 MB, free: 5.434 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003249/0.4603, allocations: 75.98 kB / 471.4 MB, free: 5.359 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition3,$whenCondition4,$PRE.NTHV.fault,NTHV.fault,$whenCondition1,$whenCondition2,$PRE.NTHV.Y.re,NTHV.Y.re,$PRE.NTHV.Y.im,NTHV.Y.im) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (235): * Single equations (assignments): 225 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {3 20,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001017/0.4613, allocations: 426 kB / 471.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004854/0.4618, allocations: 162 kB / 472 MB, free: 4.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00329/0.4651, allocations: 1.846 MB / 473.8 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.4651, allocations: 18.16 kB / 473.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.4651, allocations: 11.95 kB / 473.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.4652, allocations: 7.969 kB / 473.9 MB, free: 2.852 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.005689/0.4709, allocations: 3.581 MB / 477.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.99e-05/0.4709, allocations: 0 / 477.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.4723, allocations: 319.6 kB / 477.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00152/0.4739, allocations: 483.9 kB / 478.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.474, allocations: 28 kB / 478.3 MB, free: 14.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006967/0.481, allocations: 3.883 MB / 482.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.481, allocations: 0 / 482.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/0.4865, allocations: 2.563 MB / 484.7 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009675/0.4875, allocations: 339 kB / 485.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003867/0.4879, allocations: 35.95 kB / 485.1 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/0.4891, allocations: 55.83 kB / 485.1 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000353/0.4895, allocations: 114.4 kB / 485.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.962e-05/0.4896, allocations: 43.98 kB / 485.3 MB, free: 7.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001149/0.4907, allocations: 0.6442 MB / 485.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4907, allocations: 0 / 485.9 MB, free: 6.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002459/0.4932, allocations: 0.5701 MB / 486.5 MB, free: 5.93 MB / 334.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: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,NTHV.Y.re,NTHV.Y.im,NTHV.fault) * Number of discrete states: 7 ($whenCondition4,NTHV.Y.im,NTHV.Y.re,$whenCondition3,NTHV.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 2 * 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 {(9,48.1%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005396/0.4986, allocations: 3.241 MB / 489.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00472/0.5033, allocations: 2.751 MB / 492.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.5034, allocations: 1.062 kB / 492.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002108/0.5055, allocations: 1.178 MB / 493.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.5066, allocations: 157.8 kB / 493.8 MB, free: 14.39 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.01068/0.5173, allocations: 9.834 MB / 0.4919 GB, free: 4.324 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.5185, allocations: 1.262 MB / 0.4931 GB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.5195, allocations: 191.4 kB / 0.4933 GB, free: 2.836 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008452/0.5204, allocations: 0.5735 MB / 0.4938 GB, free: 2.262 MB / 350.1 MB Notification: Performance of SimCode: time 1.253e-06/0.5204, allocations: 0 / 0.4938 GB, free: 2.262 MB / 350.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 0.0, 0.0).