Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax.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) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTransformerWithTapChangerMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTransformerWithTapChangerMax",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.001017/0.001017, allocations: 99.23 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.0009394/0.0009392, allocations: 177.3 kB / 15.94 MB, free: 228 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.661/1.661, allocations: 205.4 MB / 222.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05781/0.05781, allocations: 14.16 MB / 284.5 MB, free: 7.008 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.0005665/0.0005667, allocations: 16 kB / 348.9 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.0926, allocations: 51.12 MB / 400 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax): time 0.006831/0.09947, allocations: 6.295 MB / 406.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009027/0.1085, allocations: 7.446 MB / 413.8 MB, free: 180 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007733/0.1093, allocations: 19.88 kB / 413.8 MB, free: 160 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008719/0.1102, allocations: 322.3 kB / 414.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00294/0.1132, allocations: 1.352 MB / 415.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1142, allocations: 0.5525 MB / 416 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00201/0.1163, allocations: 1.467 MB / 417.5 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002211/0.1165, allocations: 118.7 kB / 417.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006896/0.1172, allocations: 0.5995 MB / 418.2 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005828/0.1178, allocations: 0.5721 MB / 418.8 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.443e-05/0.1179, allocations: 36 kB / 418.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008353/0.1187, allocations: 351.6 kB / 419.1 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.1189, allocations: 163.2 kB / 419.3 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002376/0.1191, allocations: 249.2 kB / 419.5 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001148/0.1203, allocations: 1.142 MB / 420.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1203, allocations: 0 / 420.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1203, allocations: 0 / 420.7 MB, free: 9.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.1203, allocations: 4 kB / 420.7 MB, free: 9.23 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: 202 * Number of variables: 202 Notification: Performance of Generate backend data structure: time 0.005038/0.1254, allocations: 1.725 MB / 422.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.1254, allocations: 12.02 kB / 422.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000233/0.1257, allocations: 138.9 kB / 422.6 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006276/0.1263, allocations: 178.6 kB / 422.7 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.1276, allocations: 0.7066 MB / 423.4 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.896e-05/0.1277, allocations: 69.98 kB / 423.5 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.1278, allocations: 103.9 kB / 423.6 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001857/0.1297, allocations: 1.159 MB / 424.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1297, allocations: 3.938 kB / 424.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.1299, allocations: 47.97 kB / 424.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.281e-05/0.1299, allocations: 24 kB / 424.8 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.1312, allocations: 0.7767 MB / 425.6 MB, free: 4.145 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.1754/0.3066, allocations: 5.317 MB / 430.9 MB, free: 34.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.3088, allocations: 1.076 MB / 432 MB, free: 34.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.458e-05/0.3088, allocations: 11.44 kB / 432 MB, free: 34.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001606/0.3105, allocations: 0.8518 MB / 432.9 MB, free: 34.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=107): time 3.596e-06/0.3105, allocations: 0 / 432.9 MB, free: 34.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=107): time 0.004027/0.3145, allocations: 1.845 MB / 434.7 MB, free: 34.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.3146, allocations: 68.45 kB / 434.8 MB, free: 34.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007067/0.3153, allocations: 0.5645 MB / 435.3 MB, free: 33.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-05/0.3154, allocations: 62.7 kB / 435.4 MB, free: 33.93 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002869/0.3157, allocations: 395.2 kB / 435.8 MB, free: 33.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002634/0.316, allocations: 341 kB / 436.1 MB, free: 33.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.316, allocations: 24.66 kB / 436.2 MB, free: 33.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3162, allocations: 392 kB / 436.5 MB, free: 33.04 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.3166, allocations: 306.2 kB / 436.8 MB, free: 32.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006457/0.3173, allocations: 0.5052 MB / 437.3 MB, free: 32.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005209/0.3178, allocations: 327.9 kB / 437.7 MB, free: 32.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.681e-06/0.3178, allocations: 1.375 kB / 437.7 MB, free: 32.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001829/0.3197, allocations: 1.064 MB / 438.7 MB, free: 31.96 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.3197, allocations: 7.047 kB / 438.7 MB, free: 31.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.3197, allocations: 4.781 kB / 438.7 MB, free: 31.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005761/0.3203, allocations: 166.9 kB / 438.9 MB, free: 31.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009259/0.3212, allocations: 217.6 kB / 439.1 MB, free: 31.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/0.3237, allocations: 2.324 MB / 441.4 MB, free: 30.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008608/0.3246, allocations: 104.6 kB / 441.5 MB, free: 30.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.442e-05/0.3247, allocations: 36.64 kB / 441.6 MB, free: 30.05 MB / 318.1 MB Warning: Assuming fixed start value for the following 4 variables: trafo.valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean trafo.valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean trafo.locked:DISCRETE(start = trafo.lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean trafo.running:DISCRETE(start = trafo.runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.trafo.state,trafo.state,$PRE.trafo.tap,trafo.tap,trafo.lookingToIncreaseTap,trafo.lookingToDecreaseTap,$PRE.trafo.tTapMoved,trafo.tTapMoved,$PRE.trafo.valueUnderStop,trafo.valueUnderStop,$PRE.trafo.valueAboveMax,trafo.valueAboveMax,$PRE.trafo.tValueAboveMaxWhileRunning,trafo.tValueAboveMaxWhileRunning,$PRE.trafo.locked,$PRE.trafo.running,trafo.running,trafo.locked) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * 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 {(4,93.8%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005713/0.3253, allocations: 284.3 kB / 441.9 MB, free: 29.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.3255, allocations: 106.3 kB / 442 MB, free: 29.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.3276, allocations: 1.317 MB / 443.3 MB, free: 29.2 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.3276, allocations: 15.19 kB / 443.3 MB, free: 29.19 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3276, allocations: 6.391 kB / 443.3 MB, free: 29.19 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.3276, allocations: 5.438 kB / 443.3 MB, free: 29.19 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003312/0.3309, allocations: 2.396 MB / 445.7 MB, free: 27.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.331, allocations: 4 kB / 445.7 MB, free: 27.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007026/0.3317, allocations: 170.2 kB / 445.9 MB, free: 27.95 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004227/0.3321, allocations: 156.1 kB / 446 MB, free: 27.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.589e-05/0.3322, allocations: 38.81 kB / 446.1 MB, free: 27.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002256/0.3344, allocations: 2.306 MB / 448.4 MB, free: 26.09 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3345, allocations: 2.656 kB / 448.4 MB, free: 26.09 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.3364, allocations: 1.356 MB / 449.7 MB, free: 25.45 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003966/0.3368, allocations: 252.3 kB / 450 MB, free: 25.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.337, allocations: 47.53 kB / 450 MB, free: 25.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.3376, allocations: 90.27 kB / 450.1 MB, free: 25.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.3379, allocations: 160.4 kB / 450.3 MB, free: 25.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.3381, allocations: 63.09 kB / 450.3 MB, free: 25.17 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004673/0.3385, allocations: 396.5 kB / 450.7 MB, free: 24.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3385, allocations: 0 / 450.7 MB, free: 24.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3396, allocations: 357.3 kB / 451.1 MB, free: 24.93 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: 29 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,trafo.state,trafo.tap,trafo.lookingToIncreaseTap,trafo.lookingToDecreaseTap,trafo.tTapMoved,trafo.valueUnderStop,trafo.valueAboveMax,trafo.tValueAboveMaxWhileRunning) * Number of discrete states: 5 (trafo.valueUnderStop,trafo.valueAboveMax,trafo.state,trafo.tTapMoved,trafo.tap) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 {(3,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001924/0.3415, allocations: 2.012 MB / 453.1 MB, free: 23.72 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.3432, allocations: 1.109 MB / 454.2 MB, free: 23.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3433, allocations: 1.438 kB / 454.2 MB, free: 23.2 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3443, allocations: 1.235 MB / 455.4 MB, free: 22.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005189/0.3448, allocations: 111.7 kB / 455.5 MB, free: 22.32 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.006922/0.3517, allocations: 7.948 MB / 463.5 MB, free: 15.12 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.3522, allocations: 1.024 MB / 464.5 MB, free: 14.07 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005795/0.3528, allocations: 119 kB / 464.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004458/0.3532, allocations: 343.3 kB / 464.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of SimCode: time 1.503e-06/0.3532, allocations: 4 kB / 465 MB, free: 13.61 MB / 318.1 MB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896257, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896257, 0.0).