Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Electrical_Test_TestTransformerFixedRatioWithBreaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker,fileNamePrefix="PowerGrids_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.0009663/0.0009664, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.001422/0.001422, allocations: 177.3 kB / 15.95 MB, free: 216 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.665/1.665, allocations: 205.4 MB / 222.1 MB, free: 5.879 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05774/0.05774, allocations: 14.16 MB / 284.5 MB, free: 7.371 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.0005294/0.0005295, allocations: 16.22 kB / 346.2 MB, free: 19.85 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1118, allocations: 51.12 MB / 397.4 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.008915/0.1208, allocations: 9.643 MB / 407 MB, free: 7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007348/0.1282, allocations: 4.586 MB / 411.6 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001183/0.1294, allocations: 31.88 kB / 411.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.1307, allocations: 477.5 kB / 412.1 MB, free: 1.902 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005493/0.1362, allocations: 2.027 MB / 414.1 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.1374, allocations: 450.2 kB / 414.5 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005017/0.1424, allocations: 2.406 MB / 417 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004416/0.1429, allocations: 205 kB / 417.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001776/0.1446, allocations: 0.8952 MB / 418 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001084/0.1457, allocations: 0.86 MB / 418.9 MB, free: 11.06 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.1459, allocations: 47.94 kB / 419 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001552/0.1474, allocations: 391.6 kB / 419.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.1477, allocations: 190.9 kB / 419.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005588/0.1482, allocations: 352.9 kB / 419.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002284/0.1505, allocations: 1.633 MB / 421.5 MB, free: 8.457 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1505, allocations: 0 / 421.5 MB, free: 8.457 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1506, allocations: 4 kB / 421.5 MB, free: 8.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.251e-05/0.1506, allocations: 4 kB / 421.5 MB, free: 8.449 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.007753/0.1583, allocations: 2.428 MB / 423.9 MB, free: 5.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.1584, allocations: 12.02 kB / 423.9 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003177/0.1587, allocations: 194.4 kB / 424.1 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/0.1598, allocations: 265.8 kB / 424.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001949/0.1618, allocations: 0.9838 MB / 425.4 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.1619, allocations: 136.3 kB / 425.5 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.1621, allocations: 128 kB / 425.6 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002114/0.1642, allocations: 1.328 MB / 427 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.601e-05/0.1642, allocations: 4 kB / 427 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.1644, allocations: 52 kB / 427 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.056e-05/0.1644, allocations: 36 kB / 427.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00202/0.1664, allocations: 1.235 MB / 428.3 MB, free: 1.438 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.2632/0.4296, allocations: 8.586 MB / 436.9 MB, free: 28.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003736/0.4333, allocations: 1.535 MB / 438.4 MB, free: 28.45 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/0.4335, allocations: 20.88 kB / 438.4 MB, free: 28.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001428/0.4349, allocations: 0.6265 MB / 439.1 MB, free: 28.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 4.849e-06/0.4349, allocations: 0 / 439.1 MB, free: 28.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.01261/0.4475, allocations: 3.153 MB / 442.2 MB, free: 27.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/0.4477, allocations: 153.5 kB / 442.4 MB, free: 26.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.4495, allocations: 0.7767 MB / 443.1 MB, free: 26.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.4496, allocations: 52.14 kB / 443.2 MB, free: 26.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006764/0.4503, allocations: 0.5797 MB / 443.8 MB, free: 26.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006189/0.4509, allocations: 0.5035 MB / 444.3 MB, free: 25.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.662e-05/0.451, allocations: 30.5 kB / 444.3 MB, free: 25.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4512, allocations: 359.3 kB / 444.7 MB, free: 25.37 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.4522, allocations: 402.6 kB / 445 MB, free: 25.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001091/0.4533, allocations: 0.6047 MB / 445.7 MB, free: 24.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.4546, allocations: 0.5429 MB / 446.2 MB, free: 24.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.575e-06/0.4546, allocations: 1.219 kB / 446.2 MB, free: 24.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004943/0.4596, allocations: 1.743 MB / 447.9 MB, free: 23.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.776e-05/0.4597, allocations: 66.84 kB / 448 MB, free: 23.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.189e-05/0.4597, allocations: 5.469 kB / 448 MB, free: 23.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002371/0.4621, allocations: 0.4967 MB / 448.5 MB, free: 23.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001941/0.464, allocations: 315.6 kB / 448.8 MB, free: 23.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009181/0.4732, allocations: 4.529 MB / 453.3 MB, free: 20.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.4747, allocations: 103.5 kB / 453.4 MB, free: 20.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.214e-05/0.4748, allocations: 52.33 kB / 453.5 MB, free: 20.58 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.0006504/0.4755, allocations: 342.1 kB / 453.8 MB, free: 20.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.4757, allocations: 136.1 kB / 454 MB, free: 20.24 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002868/0.4786, allocations: 1.637 MB / 455.6 MB, free: 19.35 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.4786, allocations: 15.88 kB / 455.6 MB, free: 19.35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4786, allocations: 0 / 455.6 MB, free: 19.35 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.4786, allocations: 7.969 kB / 455.6 MB, free: 19.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.4834, allocations: 3.081 MB / 458.7 MB, free: 17.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.4834, allocations: 0 / 458.7 MB, free: 17.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009583/0.4843, allocations: 253.3 kB / 459 MB, free: 17.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.4856, allocations: 483.2 kB / 459.4 MB, free: 17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.141e-05/0.4857, allocations: 31.59 kB / 459.5 MB, free: 16.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005284/0.491, allocations: 4.41 MB / 463.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.491, allocations: 2.125 kB / 463.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002529/0.4936, allocations: 1.677 MB / 465.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004733/0.4941, allocations: 303.3 kB / 465.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/0.4942, allocations: 24 kB / 465.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006921/0.4949, allocations: 63.53 kB / 465.9 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.4951, allocations: 105.2 kB / 466 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.367e-05/0.4952, allocations: 36 kB / 466.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005528/0.4957, allocations: 0.5161 MB / 466.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4957, allocations: 0 / 466.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00141/0.4972, allocations: 0.523 MB / 467.1 MB, free: 10.38 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.002729/0.4999, allocations: 2.338 MB / 469.4 MB, free: 8.02 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.002477/0.5024, allocations: 1.649 MB / 471.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.5024, allocations: 4 kB / 471.1 MB, free: 6.328 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.001298/0.5037, allocations: 1.009 MB / 472.1 MB, free: 5.297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000774/0.5045, allocations: 122.2 kB / 472.2 MB, free: 5.18 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.01241/0.5169, allocations: 10.41 MB / 482.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009023/0.5179, allocations: 1.195 MB / 483.8 MB, free: 9.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008243/0.5187, allocations: 161.8 kB / 484 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006661/0.5194, allocations: 495.3 kB / 484.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of SimCode: time 4.488e-06/0.5194, allocations: 0 / 484.5 MB, free: 8.555 MB / 334.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 1154.700538379252, 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, -577.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 1154.700538379252, 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).