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.0009976/0.0009977, allocations: 88.17 kB / 15.71 MB, free: 452 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.00147/0.00147, allocations: 178.6 kB / 16.59 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.79/1.79, allocations: 205.4 MB / 222.8 MB, free: 5.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05899/0.05899, allocations: 14.17 MB / 285.2 MB, free: 7.082 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.0005295/0.0005297, allocations: 12 kB / 346.9 MB, free: 19.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1221, allocations: 51.13 MB / 398 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLineFault): time 0.01231/0.1345, allocations: 12.61 MB / 410.6 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.1454, allocations: 5.541 MB / 416.2 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002205/0.1477, allocations: 35.88 kB / 416.2 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002224/0.1499, allocations: 0.5556 MB / 416.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00721/0.1571, allocations: 2.028 MB / 418.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001631/0.1588, allocations: 0.5299 MB / 419.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007335/0.1661, allocations: 4.007 MB / 423.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008738/0.1671, allocations: 278.2 kB / 423.6 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003248/0.1703, allocations: 1.003 MB / 424.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002823/0.1732, allocations: 1.066 MB / 425.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004506/0.1736, allocations: 60 kB / 425.7 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002261/0.1759, allocations: 447.7 kB / 426.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002493/0.1762, allocations: 238.6 kB / 426.4 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009351/0.1771, allocations: 452.6 kB / 426.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003152/0.1803, allocations: 2.291 MB / 429.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.1803, allocations: 0 / 429.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.1803, allocations: 0 / 429.1 MB, free: 1.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.868e-05/0.1803, allocations: 0 / 429.1 MB, free: 1.402 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.308/0.4883, allocations: 2.846 MB / 432 MB, free: 35.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.152e-05/0.4884, allocations: 13.61 kB / 432 MB, free: 35.53 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007405/0.4892, allocations: 223.4 kB / 432.2 MB, free: 35.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001998/0.4912, allocations: 343.2 kB / 432.6 MB, free: 35.38 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003614/0.4948, allocations: 1.284 MB / 433.8 MB, free: 34.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001731/0.495, allocations: 121.4 kB / 434 MB, free: 34.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002599/0.4953, allocations: 154.7 kB / 434.1 MB, free: 34.9 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003315/0.4986, allocations: 1.78 MB / 435.9 MB, free: 33.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.167e-05/0.4986, allocations: 8.844 kB / 435.9 MB, free: 33.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000135/0.4988, allocations: 69.62 kB / 436 MB, free: 33.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.776e-05/0.4988, allocations: 45.91 kB / 436 MB, free: 33.78 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002947/0.5018, allocations: 1.487 MB / 437.5 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.01635/0.5182, allocations: 12.06 MB / 449.6 MB, free: 22.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003723/0.5219, allocations: 1.866 MB / 451.4 MB, free: 21.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.5231, allocations: 0.6248 MB / 452 MB, free: 21.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.5233, allocations: 15.73 kB / 452.1 MB, free: 21.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001269/0.5245, allocations: 0.734 MB / 452.8 MB, free: 20.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=151): time 5.55e-06/0.5246, allocations: 3.656 kB / 452.8 MB, free: 20.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=151): time 0.00707/0.5316, allocations: 2.628 MB / 455.4 MB, free: 19.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.5318, allocations: 232.8 kB / 455.7 MB, free: 19.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001914/0.5337, allocations: 1.114 MB / 456.8 MB, free: 18.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.51e-05/0.5338, allocations: 52.27 kB / 456.8 MB, free: 18.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008151/0.5346, allocations: 0.7975 MB / 457.6 MB, free: 17.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007972/0.5354, allocations: 0.5112 MB / 458.1 MB, free: 17.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.524e-05/0.5355, allocations: 39.66 kB / 458.2 MB, free: 17.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.5357, allocations: 373 kB / 458.5 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.537, allocations: 490.6 kB / 459 MB, free: 16.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001371/0.5384, allocations: 0.9531 MB / 460 MB, free: 15.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.5395, allocations: 0.705 MB / 460.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/0.5395, allocations: 7.953 kB / 460.7 MB, free: 15.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.003842/0.5434, allocations: 2.042 MB / 462.7 MB, free: 14.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.229e-05/0.5435, allocations: 67.14 kB / 462.8 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.072e-05/0.5435, allocations: 15.78 kB / 462.8 MB, free: 14.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.5446, allocations: 402.6 kB / 463.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.5462, allocations: 427.5 kB / 463.6 MB, free: 13.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004681/0.5509, allocations: 3.66 MB / 467.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/0.553, allocations: 154.8 kB / 467.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/0.5532, allocations: 72 kB / 467.5 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.001255/0.5545, allocations: 487.6 kB / 468 MB, free: 9.926 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006103/0.5551, allocations: 170 kB / 468.1 MB, free: 9.758 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.5583, allocations: 1.687 MB / 469.8 MB, free: 8.043 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.5583, allocations: 12 kB / 469.8 MB, free: 8.031 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.5584, allocations: 8 kB / 469.8 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/0.5584, allocations: 8.016 kB / 469.8 MB, free: 8.016 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.006035/0.5644, allocations: 3.593 MB / 473.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/0.5644, allocations: 0 / 473.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.5655, allocations: 275.6 kB / 473.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008643/0.5664, allocations: 356.6 kB / 474.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-05/0.5665, allocations: 23.98 kB / 474.1 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005178/0.5717, allocations: 3.639 MB / 477.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.5717, allocations: 0 / 477.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00652/0.5782, allocations: 3.126 MB / 480.8 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001441/0.5797, allocations: 374.8 kB / 481.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006157/0.5804, allocations: 31.95 kB / 481.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.5819, allocations: 59.67 kB / 481.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003489/0.5823, allocations: 97.17 kB / 481.4 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.484e-05/0.5824, allocations: 39.94 kB / 481.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001611/0.584, allocations: 0.724 MB / 482.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.584, allocations: 0 / 482.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003169/0.5872, allocations: 0.5913 MB / 482.7 MB, free: 10.79 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.005034/0.5923, allocations: 2.42 MB / 485.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0041/0.5964, allocations: 1.781 MB / 487 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.5964, allocations: 0 / 487 MB, free: 6.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001861/0.5983, allocations: 1.063 MB / 488 MB, free: 5.418 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.6004, allocations: 169 kB / 488.2 MB, free: 5.254 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.02749/0.6279, allocations: 9.925 MB / 498.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001627/0.6296, allocations: 1.291 MB / 499.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.6309, allocations: 200.1 kB / 499.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/0.6321, allocations: 0.6047 MB / 0.4885 GB, free: 8.715 MB / 350.1 MB Notification: Performance of SimCode: time 1.853e-06/0.6321, allocations: 0 / 0.4885 GB, free: 8.715 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).