Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Examples_Tutorial_GridOperation_LoadChange_LoadChangeByInputSignals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals,fileNamePrefix="PowerGrids_symb_jac_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.001142/0.001142, allocations: 96.27 kB / 15.7 MB, free: 472 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.001299/0.001299, allocations: 180.4 kB / 16.58 MB, free: 6.391 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.535/1.535, allocations: 205.4 MB / 222.7 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0582/0.05819, allocations: 14.17 MB / 285.2 MB, free: 7.141 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.0005441/0.0005442, allocations: 12 kB / 349.6 MB, free: 17.14 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1125, allocations: 51.12 MB / 400.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Examples.Tutorial.GridOperation.LoadChange.LoadChangeByInputSignals): time 0.01068/0.1232, allocations: 10.43 MB / 411.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009352/0.1326, allocations: 5.106 MB / 416.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001895/0.1346, allocations: 27.88 kB / 416.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001727/0.1363, allocations: 485.3 kB / 416.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007192/0.1435, allocations: 2.01 MB / 418.7 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002016/0.1456, allocations: 0.743 MB / 419.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005656/0.1512, allocations: 2.642 MB / 422.1 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005251/0.1518, allocations: 238.1 kB / 422.3 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001973/0.1538, allocations: 1.004 MB / 423.3 MB, free: 7.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001323/0.1551, allocations: 1.051 MB / 424.4 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001451/0.1553, allocations: 68 kB / 424.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00151/0.1568, allocations: 431.6 kB / 424.9 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.157, allocations: 262.7 kB / 425.1 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005266/0.1576, allocations: 388.8 kB / 425.5 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002297/0.1599, allocations: 1.886 MB / 427.4 MB, free: 3.152 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.1599, allocations: 0 / 427.4 MB, free: 3.152 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.1599, allocations: 3.938 kB / 427.4 MB, free: 3.148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.747e-05/0.1599, allocations: 0 / 427.4 MB, free: 3.148 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.009357/0.1693, allocations: 2.768 MB / 430.2 MB, free: 320 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.1693, allocations: 8.031 kB / 430.2 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003895/0.1697, allocations: 194.4 kB / 430.4 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2115/0.3812, allocations: 299.6 kB / 430.7 MB, free: 35.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002739/0.384, allocations: 1.099 MB / 431.8 MB, free: 35.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.284e-05/0.3842, allocations: 108.6 kB / 431.9 MB, free: 35.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002121/0.3844, allocations: 152.2 kB / 432 MB, free: 35.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002345/0.3867, allocations: 1.319 MB / 433.3 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.3868, allocations: 1.984 kB / 433.3 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001327/0.3869, allocations: 53.47 kB / 433.4 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.504e-05/0.387, allocations: 36.52 kB / 433.4 MB, free: 35.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002518/0.3895, allocations: 1.363 MB / 434.8 MB, free: 34.99 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.01068/0.4002, allocations: 8.587 MB / 443.4 MB, free: 27.99 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00296/0.4031, allocations: 2.228 MB / 445.6 MB, free: 26.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.757e-05/0.4033, allocations: 24.98 kB / 445.6 MB, free: 26.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001366/0.4046, allocations: 0.7646 MB / 446.4 MB, free: 25.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=162): time 4.348e-06/0.4047, allocations: 0 / 446.4 MB, free: 25.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=163): time 0.01282/0.4175, allocations: 5.047 MB / 451.4 MB, free: 23.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001624/0.4177, allocations: 236 kB / 451.7 MB, free: 23.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001803/0.4195, allocations: 1.014 MB / 452.7 MB, free: 22.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/0.4197, allocations: 61.55 kB / 452.7 MB, free: 22.53 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005193/0.4202, allocations: 0.6411 MB / 453.4 MB, free: 21.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005481/0.4208, allocations: 0.5595 MB / 453.9 MB, free: 21.48 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.615e-05/0.4209, allocations: 42.16 kB / 454 MB, free: 21.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.421, allocations: 382.1 kB / 454.4 MB, free: 21.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00114/0.4222, allocations: 0.5948 MB / 455 MB, free: 20.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.4235, allocations: 0.9325 MB / 455.9 MB, free: 20.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.4247, allocations: 0.7894 MB / 456.7 MB, free: 19.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.4247, allocations: 0 / 456.7 MB, free: 19.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.004448/0.4291, allocations: 2.414 MB / 459.1 MB, free: 18.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.4292, allocations: 72.36 kB / 459.2 MB, free: 18.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.4292, allocations: 11.8 kB / 459.2 MB, free: 18.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002736/0.432, allocations: 0.7445 MB / 459.9 MB, free: 17.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/0.4339, allocations: 497.2 kB / 460.4 MB, free: 17.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009325/0.4432, allocations: 11.49 MB / 471.9 MB, free: 5.887 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.4452, allocations: 103.5 kB / 472 MB, free: 5.785 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/0.4453, allocations: 79.98 kB / 472.1 MB, free: 5.707 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.0007824/0.4461, allocations: 424.7 kB / 472.5 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.4464, allocations: 166 kB / 472.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002957/0.4493, allocations: 1.844 MB / 474.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.4494, allocations: 16 kB / 474.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.4494, allocations: 7.953 kB / 474.5 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.4494, allocations: 7.969 kB / 474.5 MB, free: 3.203 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.004939/0.4543, allocations: 3.578 MB / 478.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.4544, allocations: 0.875 kB / 478.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001382/0.4558, allocations: 319.6 kB / 478.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/0.4573, allocations: 479.9 kB / 478.9 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.112e-05/0.4574, allocations: 31.98 kB / 478.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006273/0.4636, allocations: 3.894 MB / 482.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4637, allocations: 0 / 482.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03582/0.4995, allocations: 16.74 MB / 499.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006663/0.5002, allocations: 335 kB / 499.9 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.5004, allocations: 40 kB / 499.9 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008533/0.5013, allocations: 67.62 kB / 500 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002688/0.5015, allocations: 105.1 kB / 0.4884 GB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.481e-05/0.5016, allocations: 40 kB / 0.4884 GB, free: 8.977 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009382/0.5026, allocations: 0.6559 MB / 0.489 GB, free: 8.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5026, allocations: 0 / 0.489 GB, free: 8.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002871/0.5055, allocations: 0.7608 MB / 0.4898 GB, free: 7.559 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: 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.004984/0.5104, allocations: 3.247 MB / 0.493 GB, free: 4.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005115/0.5156, allocations: 2.736 MB / 0.4956 GB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.5156, allocations: 8.125 kB / 0.4956 GB, free: 1.391 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.5178, allocations: 1.178 MB / 0.4968 GB, free: 180 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.519, allocations: 161.6 kB / 0.4969 GB, free: 20 kB / 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.0108/0.5298, allocations: 11.18 MB / 0.5079 GB, free: 4.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000945/0.5308, allocations: 1.319 MB / 0.5091 GB, free: 3.223 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009561/0.5318, allocations: 199.7 kB / 0.5093 GB, free: 3.023 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008016/0.5326, allocations: 0.5813 MB / 0.5099 GB, free: 2.441 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5326, allocations: 0 / 0.5099 GB, free: 2.441 MB / 366.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).