Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault.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) Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",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.0009764/0.0009761, 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.001208/0.001208, allocations: 179.7 kB / 16.58 MB, free: 6.855 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.553/1.553, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05993/0.05993, 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.0005646/0.0005648, allocations: 12.22 kB / 346.9 MB, free: 19.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1325, allocations: 51.11 MB / 398 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01225/0.1448, allocations: 11.38 MB / 409.4 MB, free: 5.215 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01143/0.1563, allocations: 5.489 MB / 414.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.1584, allocations: 39.81 kB / 414.9 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001795/0.1602, allocations: 0.5479 MB / 415.4 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007078/0.1673, allocations: 2.205 MB / 417.6 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001324/0.1686, allocations: 0.5487 MB / 418.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006196/0.1749, allocations: 2.959 MB / 421.2 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005703/0.1754, allocations: 274.2 kB / 421.4 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002429/0.1779, allocations: 1.094 MB / 422.5 MB, free: 8.051 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001433/0.1793, allocations: 1.043 MB / 423.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.1795, allocations: 56 kB / 423.6 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.1811, allocations: 451.5 kB / 424.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002435/0.1813, allocations: 230.8 kB / 424.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006536/0.182, allocations: 448.7 kB / 424.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002633/0.1846, allocations: 2.268 MB / 427 MB, free: 3.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1847, allocations: 0 / 427 MB, free: 3.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1847, allocations: 4 kB / 427 MB, free: 3.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.721e-05/0.1847, allocations: 0 / 427 MB, free: 3.559 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: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.009503/0.1942, allocations: 2.839 MB / 429.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.832e-05/0.1943, allocations: 12.02 kB / 429.8 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004086/0.1947, allocations: 228.1 kB / 430.1 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.1962, allocations: 349.1 kB / 430.4 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2493/0.4456, allocations: 1.277 MB / 431.7 MB, free: 34.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.4457, allocations: 118.5 kB / 431.8 MB, free: 34.46 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002322/0.446, allocations: 154.1 kB / 431.9 MB, free: 34.46 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003212/0.4492, allocations: 1.768 MB / 433.7 MB, free: 33.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.579e-05/0.4493, allocations: 7.031 kB / 433.7 MB, free: 33.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/0.4494, allocations: 71.09 kB / 433.8 MB, free: 33.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.211e-05/0.4495, allocations: 45.84 kB / 433.8 MB, free: 33.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002772/0.4522, allocations: 1.487 MB / 435.3 MB, free: 33.21 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.01261/0.4649, allocations: 12.06 MB / 447.4 MB, free: 22.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002904/0.4678, allocations: 1.865 MB / 449.2 MB, free: 21.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.139e-05/0.4679, allocations: 15.97 kB / 449.3 MB, free: 21.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.4692, allocations: 0.7257 MB / 450 MB, free: 21.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 5.51e-06/0.4692, allocations: 0 / 450 MB, free: 21.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.007009/0.4762, allocations: 2.78 MB / 452.8 MB, free: 19.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.4763, allocations: 234.2 kB / 453 MB, free: 19.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.4781, allocations: 1.118 MB / 454.1 MB, free: 19.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.726e-05/0.4782, allocations: 52.17 kB / 454.2 MB, free: 19.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006781/0.4789, allocations: 0.7839 MB / 455 MB, free: 18.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005016/0.4794, allocations: 0.5169 MB / 455.5 MB, free: 18.05 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.537e-05/0.4795, allocations: 39.06 kB / 455.5 MB, free: 18.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.4796, allocations: 376.6 kB / 455.9 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007989/0.4804, allocations: 490.1 kB / 456.4 MB, free: 17.42 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.4815, allocations: 0.9534 MB / 457.3 MB, free: 16.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001069/0.4826, allocations: 0.6951 MB / 458 MB, free: 16.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.46e-05/0.4826, allocations: 4.125 kB / 458 MB, free: 16.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003651/0.4863, allocations: 2.056 MB / 460.1 MB, free: 15.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.423e-05/0.4863, allocations: 67.2 kB / 460.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.4864, allocations: 15.81 kB / 460.1 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009682/0.4873, allocations: 397.9 kB / 460.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001471/0.4888, allocations: 423.7 kB / 460.9 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004479/0.4933, allocations: 3.789 MB / 464.7 MB, free: 11.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.4954, allocations: 166 kB / 464.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.4955, allocations: 75.44 kB / 465 MB, free: 11.72 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition3,$whenCondition4,$PRE.transmissionLine.busFault.fault,transmissionLine.busFault.fault,$whenCondition1,$whenCondition2,$PRE.transmissionLine.busFault.Y.re,transmissionLine.busFault.Y.re,$PRE.transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.im) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 197 * 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 {(5,92.0%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009607/0.4965, allocations: 480.1 kB / 465.4 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.4968, allocations: 166.6 kB / 465.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002825/0.4996, allocations: 1.689 MB / 467.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.4997, allocations: 11.88 kB / 467.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.4997, allocations: 11.83 kB / 467.3 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.607e-05/0.4997, allocations: 7.969 kB / 467.3 MB, free: 10.22 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.004876/0.5046, allocations: 3.591 MB / 470.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.5046, allocations: 0 / 470.9 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.5057, allocations: 271.7 kB / 471.2 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008708/0.5066, allocations: 360.5 kB / 471.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.454e-05/0.5067, allocations: 28 kB / 471.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004347/0.511, allocations: 3.747 MB / 475.3 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.511, allocations: 0 / 475.3 MB, free: 2.066 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004323/0.5154, allocations: 3.133 MB / 478.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008441/0.5162, allocations: 363 kB / 478.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.5164, allocations: 36 kB / 478.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008349/0.5173, allocations: 59.83 kB / 478.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.5175, allocations: 97.14 kB / 479 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.458e-05/0.5176, allocations: 39.98 kB / 479 MB, free: 14.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001185/0.5188, allocations: 0.7301 MB / 479.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5188, allocations: 0 / 479.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002316/0.5211, allocations: 0.5903 MB / 480.3 MB, free: 12.93 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,transmissionLine.busFault.Y.re,transmissionLine.busFault.Y.im,transmissionLine.busFault.fault) * Number of discrete states: 7 ($whenCondition4,transmissionLine.busFault.Y.im,transmissionLine.busFault.Y.re,$whenCondition3,transmissionLine.busFault.fault,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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 {(5,92.0%) 27} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003416/0.5245, allocations: 2.418 MB / 482.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003359/0.5279, allocations: 1.777 MB / 484.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5279, allocations: 0 / 484.5 MB, free: 8.676 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/0.5296, allocations: 1.063 MB / 485.6 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.5308, allocations: 141.9 kB / 485.7 MB, free: 7.441 MB / 334.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.02454/0.5553, allocations: 19.48 MB / 0.4934 GB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.5565, allocations: 1.326 MB / 0.4947 GB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001102/0.5577, allocations: 204.1 kB / 0.4949 GB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008355/0.5585, allocations: 0.6008 MB / 0.4954 GB, free: 1.191 MB / 350.1 MB Notification: Performance of SimCode: time 2.514e-06/0.5585, allocations: 3.938 kB / 0.4955 GB, free: 1.188 MB / 350.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 641.5002990995843, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -230.9401076758503, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896258, 0.0).