Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine.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.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",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.001091/0.001091, 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.001193/0.001193, 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.642/1.642, allocations: 205.4 MB / 222.1 MB, free: 5.746 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06166/0.06166, allocations: 14.17 MB / 284.5 MB, free: 7.254 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.0005121/0.0005121, allocations: 16.22 kB / 346.2 MB, free: 19.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1132, allocations: 51.11 MB / 397.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.00626/0.1195, allocations: 5.981 MB / 403.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004823/0.1244, allocations: 3.214 MB / 406.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003565/0.1248, allocations: 15.94 kB / 406.6 MB, free: 7.426 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006829/0.1255, allocations: 310.4 kB / 406.9 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002963/0.1284, allocations: 1.337 MB / 408.2 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009201/0.1294, allocations: 493.8 kB / 408.7 MB, free: 5.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001947/0.1313, allocations: 1.322 MB / 410 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002315/0.1316, allocations: 114.4 kB / 410.1 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005923/0.1322, allocations: 0.4982 MB / 410.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005813/0.1327, allocations: 494.1 kB / 411.1 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.581e-05/0.1328, allocations: 28 kB / 411.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007338/0.1336, allocations: 335.6 kB / 411.4 MB, free: 2.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.407e-05/0.1337, allocations: 103.5 kB / 411.5 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001811/0.1338, allocations: 213.2 kB / 411.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1349, allocations: 0.9977 MB / 412.8 MB, free: 1.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.1349, allocations: 0 / 412.8 MB, free: 1.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1349, allocations: 0 / 412.8 MB, free: 1.211 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1349, allocations: 0 / 412.8 MB, free: 1.211 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004645/0.1395, allocations: 1.516 MB / 414.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.478e-05/0.1396, allocations: 16.02 kB / 414.3 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001698/0.1398, allocations: 118.6 kB / 414.4 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005682/0.1404, allocations: 146.7 kB / 414.5 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.1415, allocations: 0.6287 MB / 415.2 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.682e-05/0.1415, allocations: 58 kB / 415.2 MB, free: 14.64 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.212e-05/0.1416, allocations: 72 kB / 415.3 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.1428, allocations: 0.7576 MB / 416.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.1428, allocations: 3.938 kB / 416.1 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.016e-05/0.1429, allocations: 28 kB / 416.1 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.1429, allocations: 20 kB / 416.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.1441, allocations: 0.7026 MB / 416.8 MB, free: 13.02 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.005118/0.1492, allocations: 4.689 MB / 421.5 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.1509, allocations: 0.9549 MB / 422.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.117e-05/0.151, allocations: 8.656 kB / 422.5 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.374e-05/0.1511, allocations: 39.22 kB / 422.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.885e-06/0.1511, allocations: 4 kB / 422.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002854/0.1539, allocations: 1.226 MB / 423.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.154, allocations: 56.06 kB / 423.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005731/0.1546, allocations: 499 kB / 424.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.1546, allocations: 41.7 kB / 424.3 MB, free: 4.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002724/0.1549, allocations: 367.8 kB / 424.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002488/0.1552, allocations: 272.1 kB / 424.9 MB, free: 4.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.1552, allocations: 12 kB / 425 MB, free: 4.246 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.1554, allocations: 382.7 kB / 425.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.1557, allocations: 213.9 kB / 425.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/0.1561, allocations: 332.3 kB / 425.9 MB, free: 3.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004067/0.1565, allocations: 263 kB / 426.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1566, allocations: 0 / 426.1 MB, free: 3.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00137/0.1579, allocations: 0.8564 MB / 427 MB, free: 2.172 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.158, allocations: 4 kB / 427 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.158, allocations: 4.312 kB / 427 MB, free: 2.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005447/0.1585, allocations: 184.7 kB / 427.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/0.1594, allocations: 195.7 kB / 427.4 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2104/0.3698, allocations: 2.375 MB / 429.7 MB, free: 34.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007427/0.3706, allocations: 53.7 kB / 429.8 MB, free: 34.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.3707, allocations: 26.8 kB / 429.8 MB, free: 34.84 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000381/0.371, allocations: 225 kB / 430 MB, free: 34.72 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.3712, allocations: 74.03 kB / 430.1 MB, free: 34.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.3726, allocations: 0.8025 MB / 430.9 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.3726, allocations: 9.047 kB / 430.9 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.3726, allocations: 2.75 kB / 430.9 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.3726, allocations: 3.281 kB / 430.9 MB, free: 34.66 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 postOpt removeSimpleEquations (simulation): time 0.002623/0.3753, allocations: 1.727 MB / 432.6 MB, free: 34.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3753, allocations: 2.031 kB / 432.6 MB, free: 34.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006922/0.376, allocations: 160 kB / 432.8 MB, free: 34.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004964/0.3765, allocations: 168.6 kB / 433 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.484e-05/0.3765, allocations: 15.78 kB / 433 MB, free: 34.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002662/0.3792, allocations: 2.386 MB / 435.4 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3792, allocations: 0.7969 kB / 435.4 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.3806, allocations: 0.8531 MB / 436.2 MB, free: 31.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002788/0.3809, allocations: 202.1 kB / 436.4 MB, free: 31.77 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.762e-05/0.3809, allocations: 10.78 kB / 436.4 MB, free: 31.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003909/0.3813, allocations: 34.62 kB / 436.5 MB, free: 31.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001007/0.3815, allocations: 54.84 kB / 436.5 MB, free: 31.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.3815, allocations: 21.19 kB / 436.5 MB, free: 31.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004287/0.3819, allocations: 341.5 kB / 436.9 MB, free: 31.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3819, allocations: 0 / 436.9 MB, free: 31.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009312/0.3829, allocations: 273.7 kB / 437.1 MB, free: 31.54 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001554/0.3844, allocations: 1.468 MB / 438.6 MB, free: 30.54 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.3858, allocations: 0.8005 MB / 439.4 MB, free: 30.18 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3859, allocations: 0 / 439.4 MB, free: 30.18 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007824/0.3866, allocations: 0.5273 MB / 439.9 MB, free: 29.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.3871, allocations: 73.98 kB / 440 MB, free: 29.86 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.006448/0.3936, allocations: 5.346 MB / 445.4 MB, free: 26.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005185/0.3941, allocations: 0.9581 MB / 446.3 MB, free: 25.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004979/0.3947, allocations: 90.64 kB / 446.4 MB, free: 25.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003398/0.395, allocations: 267 kB / 446.7 MB, free: 25.34 MB / 318.1 MB Notification: Performance of SimCode: time 1.212e-06/0.395, allocations: 0 / 446.7 MB, free: 25.34 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.3502691896258, 0.0). [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 641.5002990995843, 0.0).