Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Electrical_Test_TestTransformerWithTapChangerMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax,fileNamePrefix="PowerGrids_symb_jac_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.001265/0.001265, allocations: 96.27 kB / 15.7 MB, free: 472 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.001905/0.001904, allocations: 180.4 kB / 16.58 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.446/1.446, allocations: 205.4 MB / 222.7 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.0595/0.0595, allocations: 14.16 MB / 285.2 MB, free: 7.145 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.0005547/0.0005548, allocations: 12 kB / 349.5 MB, free: 17.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09543, allocations: 51.12 MB / 400.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax): time 0.006449/0.1019, allocations: 6.299 MB / 407 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00914/0.1111, allocations: 7.45 MB / 414.4 MB, free: 188 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009708/0.1121, allocations: 15.94 kB / 414.4 MB, free: 172 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001154/0.1133, allocations: 318.3 kB / 414.7 MB, free: 15.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003747/0.1171, allocations: 1.358 MB / 416.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001267/0.1183, allocations: 0.5548 MB / 416.6 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003252/0.1216, allocations: 1.467 MB / 418.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005074/0.1221, allocations: 122.7 kB / 418.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00173/0.1239, allocations: 0.5995 MB / 418.8 MB, free: 11.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001324/0.1252, allocations: 0.5682 MB / 419.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002291/0.1255, allocations: 40 kB / 419.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001185/0.1267, allocations: 351.6 kB / 419.8 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002908/0.127, allocations: 159.3 kB / 419.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000623/0.1276, allocations: 249.1 kB / 420.2 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002028/0.1297, allocations: 1.138 MB / 421.3 MB, free: 9.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1297, allocations: 0 / 421.3 MB, free: 9.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.1297, allocations: 0 / 421.3 MB, free: 9.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.319e-05/0.1297, allocations: 0 / 421.3 MB, free: 9.242 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.005835/0.1356, allocations: 1.729 MB / 423.1 MB, free: 7.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1356, allocations: 16.02 kB / 423.1 MB, free: 7.445 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003188/0.136, allocations: 142.8 kB / 423.2 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007706/0.1367, allocations: 178.6 kB / 423.4 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.1382, allocations: 0.7066 MB / 424.1 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/0.1383, allocations: 69.98 kB / 424.2 MB, free: 6.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.1384, allocations: 99.92 kB / 424.3 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001794/0.1403, allocations: 1.163 MB / 425.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.1403, allocations: 3.938 kB / 425.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.1404, allocations: 43.98 kB / 425.5 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.457e-05/0.1404, allocations: 20 kB / 425.5 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001373/0.1418, allocations: 0.7767 MB / 426.3 MB, free: 4.152 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.174/0.3158, allocations: 5.325 MB / 431.6 MB, free: 34.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001697/0.3175, allocations: 1.078 MB / 432.7 MB, free: 34.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.718e-05/0.3176, allocations: 9.25 kB / 432.7 MB, free: 34.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001386/0.319, allocations: 0.8507 MB / 433.5 MB, free: 34.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=107): time 2.946e-06/0.319, allocations: 0 / 433.5 MB, free: 34.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=107): time 0.003869/0.3229, allocations: 1.838 MB / 435.4 MB, free: 34.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.293e-05/0.3229, allocations: 68.16 kB / 435.4 MB, free: 34.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006222/0.3235, allocations: 0.5642 MB / 436 MB, free: 34.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.471e-05/0.3236, allocations: 66.36 kB / 436.1 MB, free: 34.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002488/0.3239, allocations: 399 kB / 436.4 MB, free: 33.83 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.3241, allocations: 338.8 kB / 436.8 MB, free: 33.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.3242, allocations: 19.72 kB / 436.8 MB, free: 33.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3243, allocations: 396 kB / 437.2 MB, free: 33.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004845/0.3248, allocations: 305.7 kB / 437.5 MB, free: 33.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.3254, allocations: 0.5115 MB / 438 MB, free: 32.75 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004753/0.3259, allocations: 327.8 kB / 438.3 MB, free: 32.6 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3259, allocations: 1.031 kB / 438.3 MB, free: 32.6 MB / 318.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001591/0.3275, allocations: 1.059 MB / 439.4 MB, free: 32.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.3275, allocations: 7 kB / 439.4 MB, free: 32.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.3275, allocations: 9.812 kB / 439.4 MB, free: 32.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005017/0.328, allocations: 163.3 kB / 439.5 MB, free: 32.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008769/0.3289, allocations: 217.2 kB / 439.8 MB, free: 32.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.3313, allocations: 2.329 MB / 442.1 MB, free: 30.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000758/0.332, allocations: 101.7 kB / 442.2 MB, free: 30.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.583e-05/0.3321, allocations: 41.02 kB / 442.2 MB, free: 30.23 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.0004604/0.3326, allocations: 275.8 kB / 442.5 MB, free: 30.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001834/0.3328, allocations: 107.4 kB / 442.6 MB, free: 29.98 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001978/0.3348, allocations: 1.325 MB / 443.9 MB, free: 29.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3348, allocations: 10.75 kB / 443.9 MB, free: 29.38 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.722e-06/0.3348, allocations: 9.766 kB / 443.9 MB, free: 29.38 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3348, allocations: 6.625 kB / 444 MB, free: 29.38 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003051/0.3379, allocations: 2.399 MB / 446.4 MB, free: 28.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.3379, allocations: 0 / 446.4 MB, free: 28.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006897/0.3386, allocations: 173.3 kB / 446.5 MB, free: 28.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003869/0.339, allocations: 153.4 kB / 446.7 MB, free: 28.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.213e-05/0.3391, allocations: 42.17 kB / 446.7 MB, free: 28.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002074/0.3411, allocations: 2.301 MB / 449 MB, free: 26.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3411, allocations: 0 / 449 MB, free: 26.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002501/0.3437, allocations: 2.49 MB / 451.5 MB, free: 24.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000337/0.344, allocations: 261.8 kB / 451.8 MB, free: 24.57 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.3442, allocations: 43.36 kB / 451.8 MB, free: 24.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000608/0.3448, allocations: 84.69 kB / 451.9 MB, free: 24.52 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002778/0.3451, allocations: 160.4 kB / 452 MB, free: 24.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-05/0.3452, allocations: 67 kB / 452.1 MB, free: 24.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004181/0.3456, allocations: 390.2 kB / 452.5 MB, free: 24.3 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3456, allocations: 0 / 452.5 MB, free: 24.3 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001098/0.3467, allocations: 356.6 kB / 452.8 MB, free: 24.25 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.001871/0.3486, allocations: 2.02 MB / 454.9 MB, free: 23.04 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.3503, allocations: 1.107 MB / 456 MB, free: 22.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3504, allocations: 0 / 456 MB, free: 22.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.3514, allocations: 1.244 MB / 457.2 MB, free: 21.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005102/0.3519, allocations: 104.9 kB / 457.3 MB, free: 21.61 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.006984/0.3589, allocations: 8.459 MB / 465.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000379/0.3593, allocations: 1.044 MB / 466.8 MB, free: 12.51 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.3598, allocations: 123.9 kB / 466.9 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003802/0.3602, allocations: 343.3 kB / 467.3 MB, free: 12.05 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3602, allocations: 0 / 467.3 MB, free: 12.05 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).