Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine.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.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",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.0009154/0.0009155, allocations: 91.77 kB / 15.71 MB, free: 460 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.001324/0.001324, allocations: 179.9 kB / 16.59 MB, free: 6.852 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.721/1.721, allocations: 205.4 MB / 222.8 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.07949/0.07949, allocations: 14.16 MB / 285.2 MB, free: 7.363 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.000579/0.000579, allocations: 16 kB / 346.9 MB, free: 19.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1202, allocations: 51.12 MB / 398 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.006347/0.1265, allocations: 6.55 MB / 404.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005479/0.1321, allocations: 3.26 MB / 407.8 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007336/0.1328, allocations: 19.94 kB / 407.9 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009604/0.1338, allocations: 306.4 kB / 408.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00318/0.137, allocations: 1.259 MB / 409.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009102/0.1379, allocations: 481.6 kB / 409.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002468/0.1404, allocations: 1.758 MB / 411.6 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.1407, allocations: 122.4 kB / 411.8 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007258/0.1414, allocations: 477.6 kB / 412.2 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005934/0.142, allocations: 0.4978 MB / 412.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.723e-05/0.1421, allocations: 24 kB / 412.8 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009538/0.143, allocations: 351.6 kB / 413.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.1432, allocations: 111.3 kB / 413.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002346/0.1434, allocations: 213.2 kB / 413.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001184/0.1446, allocations: 1.009 MB / 414.4 MB, free: 200 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1446, allocations: 0 / 414.4 MB, free: 200 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.1446, allocations: 0 / 414.4 MB, free: 200 kB / 302.1 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.1447, allocations: 0 / 414.4 MB, free: 200 kB / 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.004514/0.1492, allocations: 1.52 MB / 415.9 MB, free: 14.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.1492, allocations: 12.02 kB / 416 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001793/0.1494, allocations: 122.5 kB / 416.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005694/0.15, allocations: 150.7 kB / 416.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.1511, allocations: 0.6287 MB / 416.9 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.562e-05/0.1511, allocations: 54 kB / 416.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.319e-05/0.1512, allocations: 72 kB / 417 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.1525, allocations: 0.7615 MB / 417.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.1525, allocations: 0 / 417.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.381e-05/0.1526, allocations: 32 kB / 417.8 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.248e-05/0.1526, allocations: 20 kB / 417.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.1537, allocations: 0.6948 MB / 418.5 MB, free: 12 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.004694/0.1584, allocations: 4.689 MB / 423.2 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.16, allocations: 0.9481 MB / 424.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004642/0.1605, allocations: 311.7 kB / 424.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.805e-05/0.1606, allocations: 8.656 kB / 424.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.1606, allocations: 43.22 kB / 424.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.344e-06/0.1606, allocations: 0 / 424.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002756/0.1634, allocations: 1.233 MB / 425.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.1635, allocations: 64.06 kB / 425.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.164, allocations: 499 kB / 426.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.1641, allocations: 37.7 kB / 426.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.1643, allocations: 363.8 kB / 426.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/0.1646, allocations: 268.1 kB / 426.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.1646, allocations: 16 kB / 426.9 MB, free: 2.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.1648, allocations: 374.7 kB / 427.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/0.1651, allocations: 221.9 kB / 427.5 MB, free: 2.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004182/0.1656, allocations: 324.3 kB / 427.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.166, allocations: 278.9 kB / 428.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.166, allocations: 0 / 428.1 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001367/0.1674, allocations: 0.8486 MB / 428.9 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.53e-05/0.1674, allocations: 4 kB / 429 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.1675, allocations: 15.86 kB / 429 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005363/0.168, allocations: 181 kB / 429.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007137/0.1687, allocations: 195.8 kB / 429.3 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2675/0.4363, allocations: 2.321 MB / 431.7 MB, free: 35.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008703/0.4372, allocations: 54.25 kB / 431.7 MB, free: 35.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.936e-05/0.4373, allocations: 26.75 kB / 431.7 MB, free: 35.14 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.000505/0.4378, allocations: 225.8 kB / 432 MB, free: 35.03 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.4379, allocations: 74.48 kB / 432 MB, free: 35.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.4397, allocations: 0.8003 MB / 432.8 MB, free: 34.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.4397, allocations: 7.766 kB / 432.8 MB, free: 34.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.4397, allocations: 3.438 kB / 432.8 MB, free: 34.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.4397, allocations: 4.031 kB / 432.8 MB, free: 34.95 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.002874/0.4426, allocations: 1.726 MB / 434.6 MB, free: 34.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.4426, allocations: 1.094 kB / 434.6 MB, free: 34.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006737/0.4433, allocations: 161.7 kB / 434.7 MB, free: 34.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006046/0.4439, allocations: 168.8 kB / 434.9 MB, free: 34.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.8e-05/0.444, allocations: 14.69 kB / 434.9 MB, free: 34.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003379/0.4474, allocations: 2.317 MB / 437.2 MB, free: 32.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.4474, allocations: 1.062 kB / 437.2 MB, free: 32.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.4501, allocations: 1.797 MB / 439 MB, free: 31.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004547/0.4506, allocations: 203.1 kB / 439.2 MB, free: 30.93 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.588e-05/0.4507, allocations: 14.66 kB / 439.2 MB, free: 30.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.4512, allocations: 40.48 kB / 439.3 MB, free: 30.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.4513, allocations: 45.64 kB / 439.3 MB, free: 30.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.149e-05/0.4514, allocations: 18.06 kB / 439.3 MB, free: 30.9 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006874/0.4521, allocations: 340.2 kB / 439.7 MB, free: 30.74 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4521, allocations: 0 / 439.7 MB, free: 30.74 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001677/0.4538, allocations: 275.4 kB / 439.9 MB, free: 30.7 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.002319/0.4561, allocations: 1.473 MB / 441.4 MB, free: 29.7 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001764/0.4579, allocations: 0.8084 MB / 442.2 MB, free: 29.33 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4579, allocations: 0 / 442.2 MB, free: 29.33 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008828/0.4588, allocations: 0.514 MB / 442.7 MB, free: 29.06 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006725/0.4595, allocations: 91.97 kB / 442.8 MB, free: 29.01 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.008637/0.4681, allocations: 4.346 MB / 447.2 MB, free: 26.57 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006902/0.4688, allocations: 0.9539 MB / 448.1 MB, free: 25.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005307/0.4694, allocations: 92.11 kB / 448.2 MB, free: 25.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004111/0.4698, allocations: 271 kB / 448.5 MB, free: 25.63 MB / 318.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4698, allocations: 0 / 448.5 MB, free: 25.63 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.3502691896258, 0.0). [CodegenUtil.tpl:198:14-198:14:writable] Error: Template error: initial value of unknown type: Modelica.Math.atan3(-0.0, 641.5002990995843, 0.0).