Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_symb_jac_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.0009688/0.0009688, allocations: 95.88 kB / 15.69 MB, free: 480 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.001127/0.001126, allocations: 177.8 kB / 16.57 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.577/1.577, allocations: 205.4 MB / 222.7 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.05758/0.05758, allocations: 14.18 MB / 285.2 MB, free: 7.148 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.000488/0.0004881, allocations: 16 kB / 346.9 MB, free: 19.83 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.09703, allocations: 51.11 MB / 398 MB, free: 0.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.005537/0.1026, allocations: 5.978 MB / 404 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004195/0.1069, allocations: 3.214 MB / 407.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003625/0.1072, allocations: 19.94 kB / 407.2 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006889/0.1079, allocations: 310.4 kB / 407.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002865/0.1108, allocations: 1.35 MB / 408.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008088/0.1116, allocations: 485 kB / 409.3 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00179/0.1134, allocations: 1.317 MB / 410.6 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002122/0.1137, allocations: 110.4 kB / 410.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005913/0.1143, allocations: 0.5021 MB / 411.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005399/0.1148, allocations: 498.1 kB / 411.7 MB, free: 2.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.304e-05/0.1149, allocations: 28 kB / 411.8 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006849/0.1156, allocations: 331.6 kB / 412.1 MB, free: 2.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1157, allocations: 103.5 kB / 412.2 MB, free: 2.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.1159, allocations: 213.2 kB / 412.4 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009847/0.1169, allocations: 0.9937 MB / 413.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1169, allocations: 4 kB / 413.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1169, allocations: 0 / 413.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.1169, allocations: 0 / 413.4 MB, free: 1.207 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.004343/0.1213, allocations: 1.516 MB / 414.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.1213, allocations: 16 kB / 414.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000134/0.1214, allocations: 122.6 kB / 415 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005442/0.122, allocations: 146.7 kB / 415.2 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009798/0.123, allocations: 0.6287 MB / 415.8 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.176e-05/0.123, allocations: 54 kB / 415.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-05/0.1231, allocations: 75.98 kB / 415.9 MB, free: 14.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.1242, allocations: 0.7575 MB / 416.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1242, allocations: 0 / 416.7 MB, free: 13.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.818e-05/0.1243, allocations: 32 kB / 416.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.1243, allocations: 24 kB / 416.8 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001045/0.1254, allocations: 0.7065 MB / 417.5 MB, free: 13 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.004641/0.13, allocations: 4.674 MB / 422.1 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/0.1316, allocations: 0.9715 MB / 423.1 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.092e-05/0.1317, allocations: 8.656 kB / 423.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.1317, allocations: 35.22 kB / 423.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.645e-06/0.1317, allocations: 0 / 423.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002763/0.1345, allocations: 1.226 MB / 424.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.104e-05/0.1346, allocations: 60.06 kB / 424.4 MB, free: 5.426 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/0.1351, allocations: 0.4912 MB / 424.9 MB, free: 4.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.885e-05/0.1352, allocations: 37.64 kB / 425 MB, free: 4.883 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.1354, allocations: 367.8 kB / 425.3 MB, free: 4.516 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002152/0.1356, allocations: 268.1 kB / 425.6 MB, free: 4.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.1357, allocations: 16 kB / 425.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.1359, allocations: 378.7 kB / 426 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003566/0.1362, allocations: 213.9 kB / 426.2 MB, free: 3.645 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004183/0.1367, allocations: 328.3 kB / 426.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004222/0.1371, allocations: 271 kB / 426.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1371, allocations: 0 / 426.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001381/0.1385, allocations: 0.8564 MB / 427.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.376e-05/0.1385, allocations: 8 kB / 427.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1385, allocations: 0 / 427.6 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005498/0.1391, allocations: 176.9 kB / 427.8 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007813/0.1399, allocations: 199.8 kB / 428 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1766/0.3166, allocations: 2.377 MB / 430.4 MB, free: 25.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007267/0.3173, allocations: 51.75 kB / 430.4 MB, free: 25.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.696e-05/0.3174, allocations: 26.75 kB / 430.4 MB, free: 25.08 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.0003585/0.3177, allocations: 226.6 kB / 430.7 MB, free: 24.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3179, allocations: 78.19 kB / 430.7 MB, free: 24.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/0.3193, allocations: 0.798 MB / 431.5 MB, free: 24.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/0.3193, allocations: 8.25 kB / 431.6 MB, free: 24.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3193, allocations: 3.547 kB / 431.6 MB, free: 24.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.3193, allocations: 3.797 kB / 431.6 MB, free: 24.9 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.002606/0.3219, allocations: 1.731 MB / 433.3 MB, free: 24.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.322, allocations: 0.7969 kB / 433.3 MB, free: 24.44 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007531/0.3227, allocations: 158.2 kB / 433.4 MB, free: 24.44 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005454/0.3233, allocations: 173.8 kB / 433.6 MB, free: 24.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.3233, allocations: 11.77 kB / 433.6 MB, free: 24.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002919/0.3263, allocations: 2.385 MB / 436 MB, free: 23.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3263, allocations: 1.469 kB / 436 MB, free: 23.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.3286, allocations: 1.783 MB / 437.8 MB, free: 22.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003144/0.3289, allocations: 199.2 kB / 438 MB, free: 22.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.266e-05/0.329, allocations: 20.02 kB / 438 MB, free: 22.22 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004157/0.3294, allocations: 36.8 kB / 438 MB, free: 22.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.814e-05/0.3295, allocations: 48.72 kB / 438.1 MB, free: 22.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.248e-05/0.3296, allocations: 22.53 kB / 438.1 MB, free: 22.21 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004702/0.33, allocations: 340 kB / 438.4 MB, free: 22.13 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.33, allocations: 0 / 438.4 MB, free: 22.13 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001189/0.3312, allocations: 280 kB / 438.7 MB, free: 22.12 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.001609/0.3328, allocations: 1.467 MB / 440.2 MB, free: 21.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.3344, allocations: 0.8074 MB / 441 MB, free: 21.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3344, allocations: 0 / 441 MB, free: 21.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007789/0.3352, allocations: 0.5193 MB / 441.5 MB, free: 21.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.3357, allocations: 70.8 kB / 441.6 MB, free: 21.11 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.006789/0.3425, allocations: 5.772 MB / 447.4 MB, free: 18.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006176/0.3431, allocations: 0.9731 MB / 448.3 MB, free: 17.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004914/0.3436, allocations: 88.47 kB / 448.4 MB, free: 17.31 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003291/0.3439, allocations: 264.2 kB / 448.7 MB, free: 17.3 MB / 318.1 MB Notification: Performance of SimCode: time 1.353e-06/0.3439, allocations: 5.469 kB / 448.7 MB, free: 17.3 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).