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.0008448/0.0008448, 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.0009044/0.0009044, 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.271/1.271, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.07808/0.07808, allocations: 14.17 MB / 284.6 MB, free: 7.133 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.0005674/0.0005676, allocations: 12 kB / 348.9 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09188, allocations: 51.12 MB / 400.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax): time 0.007269/0.0992, allocations: 6.861 MB / 406.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.1107, allocations: 7.787 MB / 414.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.1118, allocations: 19.94 kB / 414.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.1132, allocations: 318.3 kB / 415 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003922/0.1171, allocations: 1.29 MB / 416.3 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.1185, allocations: 0.5377 MB / 416.9 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003356/0.1219, allocations: 1.989 MB / 418.9 MB, free: 11.1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004213/0.1223, allocations: 126.6 kB / 419 MB, free: 10.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001262/0.1236, allocations: 0.5678 MB / 419.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00126/0.1249, allocations: 0.5796 MB / 420.1 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002341/0.1251, allocations: 40 kB / 420.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.1264, allocations: 367.6 kB / 420.5 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002733/0.1267, allocations: 167.2 kB / 420.7 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005044/0.1272, allocations: 245.1 kB / 420.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001709/0.129, allocations: 1.153 MB / 422.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.129, allocations: 0 / 422.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.129, allocations: 0 / 422.1 MB, free: 7.848 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.247e-05/0.129, allocations: 0 / 422.1 MB, free: 7.848 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.005949/0.135, allocations: 1.736 MB / 423.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.1351, allocations: 12.02 kB / 423.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004378/0.1355, allocations: 138.9 kB / 424 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009019/0.1364, allocations: 174.6 kB / 424.1 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.1382, allocations: 0.7105 MB / 424.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.52e-05/0.1383, allocations: 73.98 kB / 424.9 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.1385, allocations: 95.98 kB / 425 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.1409, allocations: 1.17 MB / 426.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.596e-05/0.1409, allocations: 4 kB / 426.2 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001157/0.1411, allocations: 43.98 kB / 426.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/0.1411, allocations: 20 kB / 426.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001477/0.1426, allocations: 0.7805 MB / 427 MB, free: 2.746 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.1847/0.3273, allocations: 5.323 MB / 432.4 MB, free: 34.58 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.3292, allocations: 1.029 MB / 433.4 MB, free: 34.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006913/0.3299, allocations: 466.5 kB / 433.8 MB, free: 34.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.33, allocations: 13.23 kB / 433.9 MB, free: 34.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00145/0.3314, allocations: 0.8564 MB / 434.7 MB, free: 34.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=107): time 3.096e-06/0.3315, allocations: 0 / 434.7 MB, free: 34.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=107): time 0.003854/0.3353, allocations: 1.836 MB / 436.5 MB, free: 33.48 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.3354, allocations: 65.89 kB / 436.6 MB, free: 33.42 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006931/0.3361, allocations: 0.5685 MB / 437.2 MB, free: 33.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.492e-05/0.3362, allocations: 65.25 kB / 437.2 MB, free: 33.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000252/0.3364, allocations: 393.7 kB / 437.6 MB, free: 32.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.3367, allocations: 346.6 kB / 438 MB, free: 32.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.3367, allocations: 23.38 kB / 438 MB, free: 32.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3368, allocations: 388.8 kB / 438.4 MB, free: 32.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.3373, allocations: 304.6 kB / 438.7 MB, free: 32.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006136/0.3379, allocations: 0.5108 MB / 439.2 MB, free: 31.76 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005039/0.3384, allocations: 321.9 kB / 439.5 MB, free: 31.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.3384, allocations: 0.9688 kB / 439.5 MB, free: 31.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001682/0.3401, allocations: 1.064 MB / 440.6 MB, free: 31.15 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3402, allocations: 10.17 kB / 440.6 MB, free: 31.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.3402, allocations: 5.375 kB / 440.6 MB, free: 31.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005128/0.3407, allocations: 173.2 kB / 440.7 MB, free: 31.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007196/0.3414, allocations: 201.9 kB / 440.9 MB, free: 31.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00248/0.3439, allocations: 2.265 MB / 443.2 MB, free: 29.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007146/0.3446, allocations: 95.61 kB / 443.3 MB, free: 29.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.22e-05/0.3447, allocations: 44.55 kB / 443.3 MB, free: 29.26 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.0004352/0.3452, allocations: 288.7 kB / 443.6 MB, free: 29.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.3453, allocations: 106 kB / 443.7 MB, free: 28.99 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002121/0.3474, allocations: 1.31 MB / 445 MB, free: 28.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.3474, allocations: 10.19 kB / 445 MB, free: 28.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3475, allocations: 2.25 kB / 445 MB, free: 28.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.3475, allocations: 6.312 kB / 445.1 MB, free: 28.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003325/0.3508, allocations: 2.408 MB / 447.5 MB, free: 27.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3508, allocations: 0 / 447.5 MB, free: 27.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.3514, allocations: 154 kB / 447.6 MB, free: 27.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003963/0.3518, allocations: 152.4 kB / 447.8 MB, free: 27.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.97e-05/0.3519, allocations: 43.16 kB / 447.8 MB, free: 27.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002104/0.354, allocations: 2.248 MB / 450.1 MB, free: 25.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3541, allocations: 0 / 450.1 MB, free: 25.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.356, allocations: 1.353 MB / 451.4 MB, free: 24.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003365/0.3564, allocations: 262.1 kB / 451.7 MB, free: 24.48 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.3565, allocations: 46.34 kB / 451.7 MB, free: 24.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005878/0.3571, allocations: 80.12 kB / 451.8 MB, free: 24.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002885/0.3574, allocations: 161.8 kB / 451.9 MB, free: 24.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/0.3576, allocations: 67.16 kB / 452 MB, free: 24.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004112/0.358, allocations: 400.3 kB / 452.4 MB, free: 24.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.358, allocations: 0 / 452.4 MB, free: 24.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009482/0.359, allocations: 347.6 kB / 452.7 MB, free: 24.16 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.002027/0.361, allocations: 2.012 MB / 454.8 MB, free: 22.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001824/0.3628, allocations: 1.114 MB / 455.9 MB, free: 22.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3629, allocations: 0 / 455.9 MB, free: 22.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.364, allocations: 1.236 MB / 457.1 MB, free: 21.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006784/0.3647, allocations: 131.5 kB / 457.2 MB, free: 21.34 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.007759/0.3725, allocations: 5.181 MB / 462.4 MB, free: 16.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004687/0.3729, allocations: 1.001 MB / 463.4 MB, free: 15.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005395/0.3735, allocations: 130 kB / 463.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004623/0.374, allocations: 347.2 kB / 463.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of SimCode: time 2.074e-06/0.374, allocations: 0 / 463.9 MB, free: 14.87 MB / 318.1 MB [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 577.3502691896257, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, -577.3502691896257, 0.0).