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.001048/0.001048, allocations: 88.17 kB / 15.71 MB, free: 452 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.001759/0.001759, allocations: 177.8 kB / 16.59 MB, free: 6.855 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.966/1.966, allocations: 205.4 MB / 222.8 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.073/0.073, allocations: 14.17 MB / 285.2 MB, free: 7.141 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.0004879/0.000488, allocations: 12 kB / 349.6 MB, free: 17.12 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1034, allocations: 51.12 MB / 400.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTransformerWithTapChangerMax): time 0.006763/0.1102, allocations: 6.865 MB / 407.6 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.1208, allocations: 7.783 MB / 415.4 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.1219, allocations: 15.94 kB / 415.4 MB, free: 15.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.123, allocations: 326.3 kB / 415.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00341/0.1264, allocations: 1.279 MB / 417 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.1275, allocations: 0.5435 MB / 417.5 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002513/0.13, allocations: 1.997 MB / 419.5 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.1303, allocations: 114.7 kB / 419.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006752/0.131, allocations: 0.5794 MB / 420.2 MB, free: 10.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006108/0.1316, allocations: 0.5835 MB / 420.8 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.865e-05/0.1317, allocations: 36 kB / 420.8 MB, free: 9.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000934/0.1326, allocations: 363.7 kB / 421.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001705/0.1328, allocations: 167.2 kB / 421.3 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002603/0.1331, allocations: 245.2 kB / 421.6 MB, free: 9.016 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.1343, allocations: 1.157 MB / 422.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1343, allocations: 0 / 422.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.1343, allocations: 0 / 422.7 MB, free: 7.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1343, allocations: 0 / 422.7 MB, free: 7.855 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.004705/0.139, allocations: 1.737 MB / 424.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.1391, allocations: 12.02 kB / 424.5 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001882/0.1393, allocations: 134.9 kB / 424.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005788/0.1398, allocations: 182.5 kB / 424.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001102/0.141, allocations: 0.7027 MB / 425.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.088e-05/0.141, allocations: 73.98 kB / 425.6 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.1412, allocations: 95.97 kB / 425.7 MB, free: 4.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/0.1429, allocations: 1.171 MB / 426.8 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.143, allocations: 0 / 426.8 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.996e-05/0.1431, allocations: 43.98 kB / 426.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.1431, allocations: 27.88 kB / 426.9 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.1444, allocations: 0.7806 MB / 427.7 MB, free: 2.754 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.2003/0.3447, allocations: 5.317 MB / 433 MB, free: 34.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002174/0.3469, allocations: 1.031 MB / 434 MB, free: 34.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008086/0.3477, allocations: 467.6 kB / 434.5 MB, free: 34.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.42e-05/0.3478, allocations: 9.781 kB / 434.5 MB, free: 34.56 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001994/0.3498, allocations: 0.8512 MB / 435.4 MB, free: 34.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=107): time 3.917e-06/0.3498, allocations: 0 / 435.4 MB, free: 34.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=107): time 0.004469/0.3543, allocations: 1.843 MB / 437.2 MB, free: 33.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.628e-05/0.3544, allocations: 69.09 kB / 437.3 MB, free: 33.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.3554, allocations: 0.5638 MB / 437.8 MB, free: 33.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.3555, allocations: 65.98 kB / 437.9 MB, free: 33.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.3559, allocations: 394.1 kB / 438.3 MB, free: 33.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003044/0.3562, allocations: 346.4 kB / 438.6 MB, free: 32.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.617e-05/0.3562, allocations: 19.56 kB / 438.6 MB, free: 32.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.3564, allocations: 393.8 kB / 439 MB, free: 32.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005414/0.357, allocations: 304.1 kB / 439.3 MB, free: 32.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007723/0.3577, allocations: 0.5117 MB / 439.8 MB, free: 31.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.3583, allocations: 322.9 kB / 440.1 MB, free: 31.83 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.3583, allocations: 1.969 kB / 440.1 MB, free: 31.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002193/0.3605, allocations: 1.062 MB / 441.2 MB, free: 31.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.3606, allocations: 12.92 kB / 441.2 MB, free: 31.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.3606, allocations: 3.844 kB / 441.2 MB, free: 31.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005546/0.3611, allocations: 168.1 kB / 441.4 MB, free: 31.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008247/0.362, allocations: 192.7 kB / 441.6 MB, free: 31.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002714/0.3647, allocations: 2.266 MB / 443.8 MB, free: 29.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009283/0.3657, allocations: 102.4 kB / 443.9 MB, free: 29.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.894e-05/0.3657, allocations: 36.09 kB / 444 MB, free: 29.48 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.000719/0.3665, allocations: 293.9 kB / 444.3 MB, free: 29.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002183/0.3667, allocations: 111.2 kB / 444.4 MB, free: 29.21 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002508/0.3692, allocations: 1.312 MB / 445.7 MB, free: 28.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.3692, allocations: 13.75 kB / 445.7 MB, free: 28.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.3693, allocations: 7.094 kB / 445.7 MB, free: 28.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/0.3693, allocations: 8.625 kB / 445.7 MB, free: 28.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003498/0.3728, allocations: 2.395 MB / 448.1 MB, free: 27.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3728, allocations: 0 / 448.1 MB, free: 27.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006318/0.3735, allocations: 155 kB / 448.3 MB, free: 27.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.3739, allocations: 151.3 kB / 448.4 MB, free: 27.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-05/0.374, allocations: 37.83 kB / 448.4 MB, free: 27.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/0.3762, allocations: 2.249 MB / 450.7 MB, free: 25.54 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3762, allocations: 2 kB / 450.7 MB, free: 25.54 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003092/0.3793, allocations: 2.489 MB / 453.2 MB, free: 24.03 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004134/0.3797, allocations: 258.1 kB / 453.4 MB, free: 23.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.3799, allocations: 51.45 kB / 453.5 MB, free: 23.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005692/0.3805, allocations: 79.95 kB / 453.6 MB, free: 23.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.3808, allocations: 174.6 kB / 453.7 MB, free: 23.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.865e-05/0.3809, allocations: 62.97 kB / 453.8 MB, free: 23.75 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004078/0.3813, allocations: 391.6 kB / 454.2 MB, free: 23.55 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3813, allocations: 0 / 454.2 MB, free: 23.55 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001162/0.3825, allocations: 359.2 kB / 454.5 MB, free: 23.49 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.00225/0.3847, allocations: 2.01 MB / 456.5 MB, free: 22.14 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.3866, allocations: 1.108 MB / 457.6 MB, free: 21.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3866, allocations: 0 / 457.6 MB, free: 21.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.3878, allocations: 1.24 MB / 458.9 MB, free: 20.74 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.3886, allocations: 141.5 kB / 459 MB, free: 20.65 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.007856/0.3964, allocations: 5.698 MB / 464.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.3969, allocations: 1.02 MB / 465.7 MB, free: 13.85 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005517/0.3974, allocations: 124.2 kB / 465.9 MB, free: 13.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004512/0.3979, allocations: 347.3 kB / 466.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3979, allocations: 4 kB / 466.2 MB, free: 13.38 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).