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.001201/0.001201, allocations: 96.5 kB / 15.69 MB, free: 480 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.001041/0.001041, allocations: 177.3 kB / 16.57 MB, free: 6.391 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.826/1.826, allocations: 205.4 MB / 222.7 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06023/0.06023, allocations: 14.16 MB / 285.2 MB, free: 7.152 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.0008873/0.0008874, allocations: 12.22 kB / 346.9 MB, free: 19.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1282, allocations: 51.12 MB / 398 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.01042/0.1386, allocations: 9.651 MB / 407.6 MB, free: 6.945 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009309/0.148, allocations: 4.586 MB / 412.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002389/0.1504, allocations: 31.88 kB / 412.3 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002325/0.1528, allocations: 465.5 kB / 412.7 MB, free: 1.859 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007253/0.1601, allocations: 2.03 MB / 414.7 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001553/0.1616, allocations: 454.1 kB / 415.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005635/0.1673, allocations: 2.402 MB / 417.6 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006044/0.1679, allocations: 213 kB / 417.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002268/0.1702, allocations: 0.8952 MB / 418.7 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002062/0.1723, allocations: 0.8522 MB / 419.5 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003934/0.1727, allocations: 47.94 kB / 419.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001943/0.1746, allocations: 403.6 kB / 420 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003734/0.175, allocations: 186.9 kB / 420.2 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.1761, allocations: 352.9 kB / 420.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003382/0.1795, allocations: 1.633 MB / 422.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1795, allocations: 0 / 422.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.1795, allocations: 0 / 422.1 MB, free: 8.402 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.932e-05/0.1796, allocations: 0 / 422.1 MB, free: 8.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: 336 * Number of variables: 336 Notification: Performance of Generate backend data structure: time 0.008979/0.1886, allocations: 2.436 MB / 424.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.41e-05/0.1887, allocations: 16.02 kB / 424.6 MB, free: 5.883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004528/0.1891, allocations: 190.4 kB / 424.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001222/0.1903, allocations: 269.8 kB / 425 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002048/0.1924, allocations: 0.976 MB / 426 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.1925, allocations: 136.3 kB / 426.2 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001573/0.1927, allocations: 128 kB / 426.3 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002088/0.1948, allocations: 1.328 MB / 427.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.1948, allocations: 0 / 427.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001039/0.1949, allocations: 60 kB / 427.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.766e-05/0.195, allocations: 36 kB / 427.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.197, allocations: 1.235 MB / 428.9 MB, free: 1.383 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.2128/0.4099, allocations: 8.584 MB / 437.5 MB, free: 28.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002545/0.4124, allocations: 1.537 MB / 439.1 MB, free: 28.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.244e-05/0.4125, allocations: 21.44 kB / 439.1 MB, free: 28.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001042/0.4136, allocations: 0.6212 MB / 439.7 MB, free: 27.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 3.888e-06/0.4136, allocations: 1 kB / 439.7 MB, free: 27.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.009359/0.423, allocations: 3.157 MB / 442.9 MB, free: 26.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.788e-05/0.4231, allocations: 152.4 kB / 443 MB, free: 26.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/0.4242, allocations: 0.7761 MB / 443.8 MB, free: 26.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.4242, allocations: 52.2 kB / 443.8 MB, free: 26.38 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004025/0.4247, allocations: 0.5793 MB / 444.4 MB, free: 25.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003825/0.425, allocations: 0.5027 MB / 444.9 MB, free: 25.57 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.746e-05/0.4251, allocations: 30.88 kB / 444.9 MB, free: 25.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.539e-05/0.4252, allocations: 360 kB / 445.3 MB, free: 25.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006232/0.4258, allocations: 402.4 kB / 445.7 MB, free: 25.06 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007337/0.4266, allocations: 0.6046 MB / 446.3 MB, free: 24.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008466/0.4274, allocations: 0.5459 MB / 446.8 MB, free: 24.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.4275, allocations: 1.156 kB / 446.8 MB, free: 24.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003001/0.4305, allocations: 1.744 MB / 448.6 MB, free: 23.58 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.338e-05/0.4305, allocations: 65.31 kB / 448.6 MB, free: 23.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.4305, allocations: 5.688 kB / 448.7 MB, free: 23.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.4321, allocations: 0.4902 MB / 449.1 MB, free: 23.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.4333, allocations: 315.7 kB / 449.5 MB, free: 23.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006856/0.4402, allocations: 4.524 MB / 454 MB, free: 20.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.4417, allocations: 104.1 kB / 454.1 MB, free: 20.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.225e-05/0.4418, allocations: 52.81 kB / 454.1 MB, free: 20.43 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.0007491/0.4426, allocations: 346.3 kB / 454.5 MB, free: 20.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002307/0.4428, allocations: 135.4 kB / 454.6 MB, free: 20.08 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/0.4457, allocations: 1.637 MB / 456.2 MB, free: 19.19 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.4457, allocations: 15.81 kB / 456.3 MB, free: 19.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.4457, allocations: 0 / 456.3 MB, free: 19.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.4457, allocations: 7.672 kB / 456.3 MB, free: 19.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004408/0.4501, allocations: 3.086 MB / 459.3 MB, free: 17.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4501, allocations: 0 / 459.3 MB, free: 17.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009784/0.4511, allocations: 249.5 kB / 459.6 MB, free: 17.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.4524, allocations: 479.3 kB / 460.1 MB, free: 16.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.447e-05/0.4525, allocations: 31 kB / 460.1 MB, free: 16.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005593/0.4581, allocations: 4.406 MB / 464.5 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4581, allocations: 0 / 464.5 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003338/0.4615, allocations: 2.958 MB / 467.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004201/0.4619, allocations: 303.3 kB / 467.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.462, allocations: 24 kB / 467.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006696/0.4627, allocations: 67.58 kB / 467.8 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.4629, allocations: 98.02 kB / 467.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.21e-05/0.463, allocations: 43.98 kB / 468 MB, free: 10.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005103/0.4635, allocations: 0.5161 MB / 468.5 MB, free: 9.484 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4635, allocations: 0 / 468.5 MB, free: 9.484 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001319/0.4648, allocations: 0.5192 MB / 469 MB, free: 8.965 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.002597/0.4674, allocations: 2.34 MB / 471.4 MB, free: 6.598 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.00222/0.4696, allocations: 1.654 MB / 473 MB, free: 4.902 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4697, allocations: 3.938 kB / 473 MB, free: 4.898 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.001168/0.4708, allocations: 1.014 MB / 474 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.4713, allocations: 119.4 kB / 474.1 MB, free: 3.746 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.01187/0.4832, allocations: 11.14 MB / 485.3 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008075/0.4841, allocations: 1.23 MB / 486.5 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007313/0.4848, allocations: 161.8 kB / 486.7 MB, free: 6.84 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005935/0.4854, allocations: 495.3 kB / 487.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4854, allocations: 4 kB / 487.2 MB, free: 6.352 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).