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.0008625/0.0008625, allocations: 91.84 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.0009977/0.0009975, 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.345/1.345, allocations: 205.4 MB / 222.1 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05832/0.05832, allocations: 14.17 MB / 284.6 MB, free: 6.996 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.0004456/0.0004458, allocations: 20 kB / 346.3 MB, free: 19.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08902/0.08947, allocations: 51.11 MB / 397.4 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerFixedRatioWithBreaker): time 0.00959/0.0991, allocations: 10.65 MB / 408 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007015/0.1061, allocations: 4.619 MB / 412.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.1076, allocations: 31.88 kB / 412.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001571/0.1092, allocations: 481.5 kB / 413.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005065/0.1143, allocations: 1.87 MB / 415 MB, free: 14.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1154, allocations: 469.8 kB / 415.5 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004472/0.1199, allocations: 3.19 MB / 418.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005664/0.1205, allocations: 205 kB / 418.9 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001604/0.1221, allocations: 0.8514 MB / 419.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001702/0.1238, allocations: 0.8711 MB / 420.6 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003086/0.1241, allocations: 44 kB / 420.6 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001506/0.1256, allocations: 411.7 kB / 421 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003031/0.126, allocations: 194.8 kB / 421.2 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007109/0.1267, allocations: 352.8 kB / 421.6 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.1291, allocations: 1.656 MB / 423.2 MB, free: 6.656 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/0.1291, allocations: 4 kB / 423.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1291, allocations: 0 / 423.2 MB, free: 6.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.565e-05/0.1292, allocations: 0 / 423.2 MB, free: 6.652 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.007285/0.1365, allocations: 2.424 MB / 425.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1366, allocations: 12.02 kB / 425.7 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003681/0.1369, allocations: 198.4 kB / 425.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001061/0.138, allocations: 261.8 kB / 426.1 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001974/0.14, allocations: 0.9955 MB / 427.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001512/0.1402, allocations: 128.3 kB / 427.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/0.1404, allocations: 128 kB / 427.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.1425, allocations: 1.34 MB / 428.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.1425, allocations: 7.938 kB / 428.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.582e-05/0.1426, allocations: 52 kB / 428.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.568e-05/0.1427, allocations: 32 kB / 428.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1987/0.3414, allocations: 1.231 MB / 430 MB, free: 19.87 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.008503/0.3499, allocations: 8.591 MB / 438.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.3524, allocations: 1.535 MB / 440.2 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007985/0.3533, allocations: 0.562 MB / 440.7 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.353e-05/0.3534, allocations: 17.05 kB / 440.7 MB, free: 13.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001015/0.3544, allocations: 0.6294 MB / 441.4 MB, free: 13.47 MB / 318.1 MB Notification: Performance of pre-optimization done (n=150): time 4.439e-06/0.3544, allocations: 1.188 kB / 441.4 MB, free: 13.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=150): time 0.01003/0.3644, allocations: 3.189 MB / 444.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.3645, allocations: 156.4 kB / 444.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.3657, allocations: 0.7807 MB / 445.5 MB, free: 12.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.854e-05/0.3658, allocations: 49.08 kB / 445.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004972/0.3663, allocations: 0.5731 MB / 446.1 MB, free: 12.54 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005217/0.3668, allocations: 0.5036 MB / 446.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.656e-05/0.3669, allocations: 30.69 kB / 446.6 MB, free: 12.2 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.367, allocations: 365.5 kB / 447 MB, free: 11.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006916/0.3677, allocations: 399.2 kB / 447.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008066/0.3685, allocations: 0.6187 MB / 448 MB, free: 11.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008276/0.3693, allocations: 0.5364 MB / 448.5 MB, free: 11.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.3694, allocations: 1.812 kB / 448.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003293/0.3727, allocations: 1.746 MB / 450.3 MB, free: 11.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.037e-05/0.3727, allocations: 59.34 kB / 450.4 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.3728, allocations: 6.562 kB / 450.4 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001541/0.3743, allocations: 0.4977 MB / 450.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.3756, allocations: 309.8 kB / 451.2 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006503/0.3821, allocations: 4.369 MB / 455.5 MB, free: 9.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001194/0.3833, allocations: 99.06 kB / 455.6 MB, free: 9.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.425e-05/0.3834, allocations: 56.72 kB / 455.7 MB, free: 9.762 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.000668/0.3841, allocations: 352.7 kB / 456 MB, free: 9.492 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001605/0.3842, allocations: 137.1 kB / 456.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002643/0.3869, allocations: 1.634 MB / 457.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.3869, allocations: 12.78 kB / 457.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3869, allocations: 7.438 kB / 457.8 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.668e-05/0.3869, allocations: 9.328 kB / 457.8 MB, free: 8.688 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004128/0.3911, allocations: 3.069 MB / 460.9 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.3911, allocations: 3.953 kB / 460.9 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009214/0.392, allocations: 257.7 kB / 461.1 MB, free: 6.879 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.3933, allocations: 478.6 kB / 461.6 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.31e-05/0.3934, allocations: 27.31 kB / 461.6 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005323/0.3987, allocations: 4.246 MB / 465.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3987, allocations: 3.938 kB / 465.9 MB, free: 3.543 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002396/0.4011, allocations: 1.682 MB / 467.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003588/0.4015, allocations: 307.3 kB / 467.9 MB, free: 1.539 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.4016, allocations: 24 kB / 467.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006172/0.4023, allocations: 63.55 kB / 468 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001691/0.4024, allocations: 103.5 kB / 468.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.413e-05/0.4025, allocations: 36 kB / 468.1 MB, free: 1.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000543/0.403, allocations: 0.52 MB / 468.6 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4031, allocations: 0 / 468.6 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001286/0.4043, allocations: 0.5203 MB / 469.1 MB, free: 276 kB / 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.003511/0.4079, allocations: 2.339 MB / 471.5 MB, free: 13.94 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 initialization part: time 0.003032/0.4109, allocations: 1.644 MB / 473.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4109, allocations: 0 / 473.1 MB, free: 12.28 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 simulation system equations: time 0.001628/0.4126, allocations: 1.016 MB / 474.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009429/0.4135, allocations: 146.2 kB / 474.3 MB, free: 11.12 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.01521/0.4287, allocations: 7.257 MB / 481.5 MB, free: 3.625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009626/0.4297, allocations: 1.171 MB / 482.7 MB, free: 2.422 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008003/0.4306, allocations: 150.3 kB / 482.9 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006652/0.4312, allocations: 0.4915 MB / 483.3 MB, free: 1.781 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4313, allocations: 0 / 483.3 MB, free: 1.781 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).