Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker.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.TestTransformerFixedRatioWithBreaker,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker",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.0009021/0.0009023, allocations: 92.7 kB / 15.71 MB, free: 464 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.001082/0.001082, allocations: 176.6 kB / 16.59 MB, free: 6.402 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.82/1.82, allocations: 205.4 MB / 222.8 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06635/0.06635, allocations: 14.17 MB / 285.2 MB, free: 7.125 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.0005083/0.0005084, allocations: 16 kB / 346.9 MB, free: 19.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1266, allocations: 51.11 MB / 398 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.01078/0.1374, allocations: 10.65 MB / 408.7 MB, free: 5.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009277/0.1468, allocations: 4.619 MB / 413.3 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002703/0.1496, allocations: 35.88 kB / 413.3 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00184/0.1514, allocations: 473.5 kB / 413.8 MB, free: 0.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006619/0.1581, allocations: 1.88 MB / 415.7 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.1594, allocations: 462.2 kB / 416.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005846/0.1653, allocations: 3.205 MB / 419.3 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000579/0.1659, allocations: 201 kB / 419.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.1679, allocations: 0.8436 MB / 420.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001239/0.1691, allocations: 0.8789 MB / 421.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001121/0.1692, allocations: 44 kB / 421.3 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1707, allocations: 407.7 kB / 421.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.1709, allocations: 190.8 kB / 421.9 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005926/0.1715, allocations: 352.8 kB / 422.2 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002291/0.1738, allocations: 1.66 MB / 423.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.1738, allocations: 0 / 423.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1738, allocations: 0 / 423.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.671e-05/0.1739, allocations: 0 / 423.9 MB, free: 6.672 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.007869/0.1817, allocations: 2.428 MB / 426.3 MB, free: 4.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.1818, allocations: 16.02 kB / 426.3 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003683/0.1822, allocations: 194.4 kB / 426.5 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001071/0.1833, allocations: 265.8 kB / 426.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002001/0.1853, allocations: 0.9838 MB / 427.8 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.1854, allocations: 132.3 kB / 427.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.1856, allocations: 132 kB / 428 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002255/0.1879, allocations: 1.34 MB / 429.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.1879, allocations: 3.938 kB / 429.4 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/0.188, allocations: 56 kB / 429.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.999e-05/0.1881, allocations: 36 kB / 429.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2865/0.4746, allocations: 1.232 MB / 430.7 MB, free: 35.33 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.01014/0.4847, allocations: 8.59 MB / 439.3 MB, free: 28.81 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002806/0.4876, allocations: 1.533 MB / 440.8 MB, free: 28.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009879/0.4886, allocations: 0.5604 MB / 441.4 MB, free: 27.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001148/0.4887, allocations: 15.22 kB / 441.4 MB, free: 27.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001233/0.4899, allocations: 0.6258 MB / 442 MB, free: 27.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 4.739e-06/0.49, allocations: 1.406 kB / 442 MB, free: 27.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.01086/0.5008, allocations: 3.195 MB / 445.2 MB, free: 26.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.5009, allocations: 150.1 kB / 445.4 MB, free: 26.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.5023, allocations: 0.7796 MB / 446.1 MB, free: 26.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.877e-05/0.5024, allocations: 52.17 kB / 446.2 MB, free: 26 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004456/0.5028, allocations: 0.5696 MB / 446.8 MB, free: 25.57 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004245/0.5033, allocations: 0.5071 MB / 447.3 MB, free: 25.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.36e-05/0.5033, allocations: 30.53 kB / 447.3 MB, free: 25.14 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.5035, allocations: 365 kB / 447.6 MB, free: 24.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007127/0.5042, allocations: 406.6 kB / 448 MB, free: 24.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009048/0.5051, allocations: 0.6155 MB / 448.7 MB, free: 24.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009324/0.506, allocations: 0.5363 MB / 449.2 MB, free: 23.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.5061, allocations: 2.656 kB / 449.2 MB, free: 23.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003709/0.5098, allocations: 1.748 MB / 450.9 MB, free: 23.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.897e-05/0.5099, allocations: 62.62 kB / 451 MB, free: 23.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.269e-05/0.5099, allocations: 5 kB / 451 MB, free: 23.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/0.5115, allocations: 0.4951 MB / 451.5 MB, free: 22.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001234/0.5127, allocations: 309.8 kB / 451.8 MB, free: 22.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006674/0.5194, allocations: 4.364 MB / 456.2 MB, free: 19.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.5207, allocations: 98.8 kB / 456.3 MB, free: 19.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.5209, allocations: 50.09 kB / 456.3 MB, free: 19.66 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (transformer.breakerStatusInInternal,$whenCondition1,$whenCondition2,$PRE.transformer.breakerStatus,transformer.breakerStatus,$PRE.transformer.breakerStatusInInternal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 137 * 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: 0 * Non-linear torn systems: 1 {8 37} Notification: Performance of prepare postOptimizeDAE: time 0.0008083/0.5217, allocations: 352.5 kB / 456.7 MB, free: 19.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001927/0.5219, allocations: 137.7 kB / 456.8 MB, free: 19.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002743/0.5246, allocations: 1.637 MB / 458.4 MB, free: 18.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.5247, allocations: 19.84 kB / 458.5 MB, free: 18.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.5247, allocations: 0 / 458.5 MB, free: 18.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.5247, allocations: 7.969 kB / 458.5 MB, free: 18.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004816/0.5295, allocations: 3.076 MB / 461.5 MB, free: 16.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.5295, allocations: 0 / 461.5 MB, free: 16.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009613/0.5305, allocations: 247.8 kB / 461.8 MB, free: 16.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001518/0.532, allocations: 484.7 kB / 462.3 MB, free: 15.97 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.5322, allocations: 19.88 kB / 462.3 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005741/0.5379, allocations: 4.258 MB / 466.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5379, allocations: 0 / 466.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004233/0.5422, allocations: 2.952 MB / 469.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007409/0.5429, allocations: 307.2 kB / 469.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.5432, allocations: 31.95 kB / 469.8 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008762/0.5441, allocations: 59.61 kB / 469.9 MB, free: 8.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.5444, allocations: 101.2 kB / 470 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.547e-05/0.5444, allocations: 39.98 kB / 470 MB, free: 8.363 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007773/0.5452, allocations: 0.5246 MB / 470.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5452, allocations: 0 / 470.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001964/0.5472, allocations: 0.5241 MB / 471.1 MB, free: 7.305 MB / 318.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: 4 ($whenCondition1,$whenCondition2,transformer.breakerStatus,transformer.breakerStatusInInternal) * Number of discrete states: 4 (transformer.breakerStatus,$whenCondition2,$whenCondition1,transformer.breakerStatusInInternal) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {6 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.0032/0.5504, allocations: 2.335 MB / 473.4 MB, free: 4.941 MB / 318.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 initialization part: time 0.003049/0.5535, allocations: 1.646 MB / 475 MB, free: 3.262 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.5535, allocations: 4.062 kB / 475 MB, free: 3.258 MB / 318.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 simulation system equations: time 0.001472/0.555, allocations: 1.011 MB / 476.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.5563, allocations: 143.4 kB / 476.2 MB, free: 2.078 MB / 318.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.0165/0.5728, allocations: 7.998 MB / 484.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.5742, allocations: 1.202 MB / 485.4 MB, free: 8.543 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009154/0.5751, allocations: 155.1 kB / 485.5 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008058/0.5759, allocations: 495.3 kB / 486 MB, free: 7.906 MB / 334.1 MB Notification: Performance of SimCode: time 2.795e-06/0.576, allocations: 0 / 486 MB, free: 7.906 MB / 334.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 1154.700538379252, 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, -577.3502691896258, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 1154.700538379252, 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).