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.0008365/0.0008362, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.00111/0.00111, allocations: 172.7 kB / 15.95 MB, free: 208 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.412/1.412, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06253/0.06253, allocations: 14.18 MB / 284.6 MB, free: 7.129 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.000514/0.000514, allocations: 12 kB / 349 MB, free: 17.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1028, allocations: 51.12 MB / 400.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals): time 0.0108/0.1136, allocations: 11.44 MB / 411.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008254/0.1219, allocations: 5.124 MB / 416.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001075/0.123, allocations: 27.88 kB / 416.7 MB, free: 13.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.1242, allocations: 481.3 kB / 417.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004398/0.1287, allocations: 1.874 MB / 419 MB, free: 10.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001463/0.1301, allocations: 0.7282 MB / 419.8 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00424/0.1344, allocations: 3.597 MB / 423.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004519/0.1348, allocations: 234.1 kB / 423.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.1363, allocations: 0.9566 MB / 424.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/0.1374, allocations: 1.078 MB / 425.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001428/0.1376, allocations: 68 kB / 425.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1387, allocations: 435.6 kB / 426.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002472/0.1389, allocations: 262.5 kB / 426.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004939/0.1394, allocations: 388.8 kB / 426.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002009/0.1414, allocations: 1.921 MB / 428.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.1415, allocations: 4 kB / 428.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.129e-06/0.1415, allocations: 4 kB / 428.7 MB, free: 1.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.756e-05/0.1415, allocations: 3.938 kB / 428.7 MB, free: 1.219 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.1977/0.3392, allocations: 2.759 MB / 431.4 MB, free: 36.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.3393, allocations: 10.22 kB / 431.5 MB, free: 36.22 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005039/0.3398, allocations: 192.2 kB / 431.6 MB, free: 36.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001384/0.3412, allocations: 304.3 kB / 431.9 MB, free: 36.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001996/0.3432, allocations: 1.099 MB / 433 MB, free: 35.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.3434, allocations: 110 kB / 433.1 MB, free: 35.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.3436, allocations: 155.5 kB / 433.3 MB, free: 35.65 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.346, allocations: 1.337 MB / 434.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.3461, allocations: 0 / 434.6 MB, free: 35.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.3462, allocations: 52.94 kB / 434.7 MB, free: 35.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.059e-05/0.3462, allocations: 31.38 kB / 434.7 MB, free: 35.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002305/0.3485, allocations: 1.36 MB / 436.1 MB, free: 34.66 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.009332/0.3579, allocations: 8.488 MB / 444.6 MB, free: 27.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.3603, allocations: 2.203 MB / 446.8 MB, free: 26.19 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00083/0.3611, allocations: 0.5914 MB / 447.4 MB, free: 25.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.3613, allocations: 22.3 kB / 447.4 MB, free: 25.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001054/0.3623, allocations: 0.763 MB / 448.1 MB, free: 25.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=162): time 4.178e-06/0.3623, allocations: 4 kB / 448.1 MB, free: 25.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=163): time 0.01161/0.3739, allocations: 5.043 MB / 453.2 MB, free: 22.42 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.3741, allocations: 238 kB / 453.4 MB, free: 22.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001092/0.3752, allocations: 1.024 MB / 454.4 MB, free: 21.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.095e-05/0.3753, allocations: 57.58 kB / 454.5 MB, free: 21.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003816/0.3757, allocations: 0.6265 MB / 455.1 MB, free: 20.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003077/0.376, allocations: 0.5591 MB / 455.7 MB, free: 20.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.901e-05/0.3761, allocations: 39.91 kB / 455.7 MB, free: 20.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.192e-05/0.3762, allocations: 381.9 kB / 456.1 MB, free: 20.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000801/0.377, allocations: 0.5977 MB / 456.7 MB, free: 19.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009433/0.3779, allocations: 0.945 MB / 457.6 MB, free: 19.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009912/0.3789, allocations: 0.788 MB / 458.4 MB, free: 18.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.3789, allocations: 3.969 kB / 458.4 MB, free: 18.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.003935/0.3829, allocations: 2.418 MB / 460.8 MB, free: 17.1 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.3829, allocations: 68.5 kB / 460.9 MB, free: 17.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.463e-05/0.383, allocations: 16 kB / 460.9 MB, free: 17.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005155/0.3881, allocations: 1.179 MB / 462.1 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001567/0.3897, allocations: 467.4 kB / 462.6 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009014/0.3987, allocations: 12.47 MB / 475 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.4005, allocations: 107.5 kB / 475.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.4006, allocations: 75.98 kB / 475.2 MB, free: 1.641 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): 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.0007141/0.4013, allocations: 421.7 kB / 475.6 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002127/0.4015, allocations: 163.2 kB / 475.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003065/0.4046, allocations: 1.85 MB / 477.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.4046, allocations: 16 kB / 477.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4047, allocations: 8 kB / 477.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.4047, allocations: 7.969 kB / 477.7 MB, free: 15.14 MB / 334.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.005478/0.4102, allocations: 3.572 MB / 481.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.4102, allocations: 0 / 481.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.4114, allocations: 283.6 kB / 481.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001098/0.4125, allocations: 292.5 kB / 481.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.6e-05/0.4126, allocations: 33.23 kB / 481.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006336/0.4189, allocations: 4.009 MB / 485.8 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.419, allocations: 4 kB / 485.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004143/0.4231, allocations: 2.557 MB / 488.4 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007356/0.4239, allocations: 343 kB / 488.7 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.4241, allocations: 35.94 kB / 488.8 MB, free: 3.742 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007451/0.4249, allocations: 59.73 kB / 488.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.4251, allocations: 114.6 kB / 488.9 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.845e-05/0.4252, allocations: 47.95 kB / 489 MB, free: 3.527 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0009814/0.4262, allocations: 0.6481 MB / 489.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4262, allocations: 0 / 489.6 MB, free: 2.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001839/0.428, allocations: 0.5351 MB / 490.2 MB, free: 2.34 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 {(38,7.8%) 0} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004733/0.4328, allocations: 3.244 MB / 493.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005324/0.4381, allocations: 2.994 MB / 496.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4381, allocations: 3.938 kB / 496.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002639/0.4408, allocations: 1.477 MB / 497.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.4419, allocations: 186.2 kB / 498.1 MB, free: 10.25 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.01626/0.4582, allocations: 9.658 MB / 0.4958 GB, free: 196 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008614/0.4591, allocations: 1.247 MB / 0.4971 GB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009076/0.46, allocations: 199.3 kB / 0.4972 GB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000737/0.4608, allocations: 0.5696 MB / 0.4978 GB, free: 14.15 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4608, allocations: 0 / 0.4978 GB, free: 14.15 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).