Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLineFault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault,fileNamePrefix="PowerGrids_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.0008119/0.000812, 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.0008593/0.0008595, 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.427/1.427, allocations: 205.4 MB / 222.1 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.06395/0.06395, 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.000755/0.0007551, allocations: 16 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1116, allocations: 51.12 MB / 397.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01134/0.123, allocations: 12.61 MB / 410 MB, free: 3.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009988/0.133, allocations: 5.53 MB / 415.5 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.1355, allocations: 39.81 kB / 415.6 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.138, allocations: 0.5479 MB / 416.1 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007519/0.1456, allocations: 2.034 MB / 418.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.1473, allocations: 0.5411 MB / 418.7 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006464/0.1537, allocations: 4.006 MB / 422.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009307/0.1547, allocations: 274.2 kB / 423 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002224/0.1569, allocations: 0.991 MB / 424 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002398/0.1593, allocations: 1.077 MB / 425 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005095/0.1599, allocations: 60 kB / 425.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002275/0.1622, allocations: 455.6 kB / 425.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005036/0.1627, allocations: 230.6 kB / 425.8 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001343/0.164, allocations: 448.7 kB / 426.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003995/0.168, allocations: 2.295 MB / 428.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1681, allocations: 0 / 428.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1681, allocations: 0 / 428.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.834e-05/0.1682, allocations: 4 kB / 428.5 MB, free: 1.398 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.1959/0.3641, allocations: 2.837 MB / 431.3 MB, free: 35.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.3641, allocations: 14.45 kB / 431.4 MB, free: 35.54 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004376/0.3646, allocations: 226.8 kB / 431.6 MB, free: 35.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001482/0.3661, allocations: 342.4 kB / 431.9 MB, free: 35.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.3686, allocations: 1.287 MB / 433.2 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.3687, allocations: 116 kB / 433.3 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002148/0.3689, allocations: 159.3 kB / 433.5 MB, free: 34.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/0.3716, allocations: 1.781 MB / 435.2 MB, free: 33.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.3717, allocations: 7.969 kB / 435.3 MB, free: 33.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.3718, allocations: 66.19 kB / 435.3 MB, free: 33.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.641e-05/0.3719, allocations: 44.12 kB / 435.4 MB, free: 33.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002393/0.3743, allocations: 1.489 MB / 436.9 MB, free: 33.23 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.009745/0.384, allocations: 12.06 MB / 448.9 MB, free: 22.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002518/0.3865, allocations: 1.867 MB / 450.8 MB, free: 21.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008887/0.3874, allocations: 0.6215 MB / 451.4 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.542e-05/0.3876, allocations: 15.28 kB / 451.4 MB, free: 21.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/0.3887, allocations: 0.7302 MB / 452.1 MB, free: 20.8 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 4.368e-06/0.3887, allocations: 1.281 kB / 452.1 MB, free: 20.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.006406/0.3951, allocations: 2.627 MB / 454.8 MB, free: 19.38 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.773e-05/0.3952, allocations: 233.1 kB / 455 MB, free: 19.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00151/0.3967, allocations: 1.118 MB / 456.1 MB, free: 18.47 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.567e-05/0.3968, allocations: 56.14 kB / 456.2 MB, free: 18.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005787/0.3974, allocations: 0.7968 MB / 457 MB, free: 17.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004355/0.3978, allocations: 0.5137 MB / 457.5 MB, free: 17.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.085e-05/0.3979, allocations: 37.53 kB / 457.5 MB, free: 17.24 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.398, allocations: 367.5 kB / 457.9 MB, free: 16.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007583/0.3988, allocations: 490.5 kB / 458.4 MB, free: 16.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000871/0.3997, allocations: 0.9626 MB / 459.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008547/0.4005, allocations: 0.693 MB / 460 MB, free: 15.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.4005, allocations: 7.938 kB / 460 MB, free: 15.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.002958/0.4035, allocations: 2.047 MB / 462.1 MB, free: 14.26 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.454e-05/0.4036, allocations: 75.28 kB / 462.1 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/0.4036, allocations: 11.81 kB / 462.2 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009445/0.4045, allocations: 401.8 kB / 462.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001405/0.406, allocations: 419.5 kB / 463 MB, free: 13.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003943/0.4099, allocations: 3.663 MB / 466.6 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/0.4115, allocations: 158.8 kB / 466.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.4116, allocations: 76 kB / 466.8 MB, free: 10.42 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.0007034/0.4123, allocations: 486.5 kB / 467.3 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002422/0.4126, allocations: 166 kB / 467.5 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.4152, allocations: 1.687 MB / 469.2 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.4152, allocations: 12 kB / 469.2 MB, free: 8.035 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4152, allocations: 8 kB / 469.2 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.4152, allocations: 8.016 kB / 469.2 MB, free: 8.02 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.005247/0.4205, allocations: 3.595 MB / 472.8 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4205, allocations: 0 / 472.8 MB, free: 4.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.4215, allocations: 267.7 kB / 473.1 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000802/0.4224, allocations: 352.6 kB / 473.4 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.711e-05/0.4224, allocations: 32.69 kB / 473.4 MB, free: 3.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003984/0.4264, allocations: 3.635 MB / 477.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4264, allocations: 4 kB / 477.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003169/0.4296, allocations: 1.722 MB / 478.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007637/0.4304, allocations: 374.8 kB / 479.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000206/0.4306, allocations: 32.25 kB / 479.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007822/0.4314, allocations: 59.67 kB / 479.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.4316, allocations: 97.17 kB / 479.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.207e-05/0.4317, allocations: 37.36 kB / 479.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001093/0.4328, allocations: 0.7318 MB / 480.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4328, allocations: 7.938 kB / 480.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001801/0.4346, allocations: 0.5796 MB / 480.7 MB, free: 12.24 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.003265/0.4379, allocations: 2.417 MB / 483.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003044/0.4409, allocations: 1.78 MB / 484.9 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.4409, allocations: 0 / 484.9 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001543/0.4425, allocations: 1.057 MB / 486 MB, free: 6.883 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.4437, allocations: 169.5 kB / 486.1 MB, free: 6.719 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.01712/0.4608, allocations: 9.16 MB / 495.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009615/0.4618, allocations: 1.247 MB / 496.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001085/0.4629, allocations: 210.7 kB / 496.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008528/0.4637, allocations: 0.6008 MB / 497.3 MB, free: 11 MB / 350.1 MB Notification: Performance of SimCode: time 1.162e-06/0.4638, allocations: 0 / 497.3 MB, free: 11 MB / 350.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 641.5002990995843, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896258, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -230.9401076758503, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896258, 0.0).