Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad.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.OneBusTransmissionLineOneLoad,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_OneBusTransmissionLineOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_OneBusTransmissionLineOneLoad",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.001/0.001, allocations: 92.7 kB / 15.71 MB, free: 464 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.002126/0.002126, allocations: 174.9 kB / 16.58 MB, free: 6.402 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.888/1.888, allocations: 205.4 MB / 222.8 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05912/0.05912, allocations: 14.17 MB / 285.2 MB, free: 7.129 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.0005793/0.0005796, allocations: 15.94 kB / 346.9 MB, free: 19.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1288, allocations: 51.12 MB / 398 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.OneBusTransmissionLineOneLoad): time 0.006406/0.1353, allocations: 6.441 MB / 404.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005772/0.1411, allocations: 3.248 MB / 407.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007125/0.1418, allocations: 19.94 kB / 407.7 MB, free: 6.867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008963/0.1428, allocations: 302.4 kB / 408 MB, free: 6.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003333/0.1461, allocations: 1.249 MB / 409.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009161/0.147, allocations: 486.5 kB / 409.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002473/0.1495, allocations: 1.742 MB / 411.5 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002575/0.1498, allocations: 106.4 kB / 411.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007249/0.1505, allocations: 469.7 kB / 412.1 MB, free: 2.531 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000589/0.1511, allocations: 0.4939 MB / 412.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.1512, allocations: 28 kB / 412.6 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.1522, allocations: 339.7 kB / 412.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.956e-05/0.1523, allocations: 107.3 kB / 413 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002198/0.1525, allocations: 217.2 kB / 413.2 MB, free: 1.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00107/0.1536, allocations: 0.9859 MB / 414.2 MB, free: 372 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1536, allocations: 0 / 414.2 MB, free: 372 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1537, allocations: 4 kB / 414.2 MB, free: 368 kB / 302.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1537, allocations: 0 / 414.2 MB, free: 368 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.004029/0.1577, allocations: 1.469 MB / 415.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.1578, allocations: 20.02 kB / 415.7 MB, free: 14.82 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001578/0.1579, allocations: 122.4 kB / 415.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005211/0.1585, allocations: 142.8 kB / 416 MB, free: 14.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009969/0.1595, allocations: 0.617 MB / 416.6 MB, free: 13.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/0.1595, allocations: 58 kB / 416.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.562e-05/0.1596, allocations: 68 kB / 416.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001191/0.1608, allocations: 0.7553 MB / 417.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.1608, allocations: 4 kB / 417.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.979e-05/0.1609, allocations: 28 kB / 417.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.753e-05/0.1609, allocations: 20 kB / 417.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.162, allocations: 0.6636 MB / 418.2 MB, free: 12.26 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.004683/0.1667, allocations: 4.809 MB / 423 MB, free: 6.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.1683, allocations: 0.9438 MB / 423.9 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004108/0.1687, allocations: 291.1 kB / 424.2 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.043e-05/0.1688, allocations: 8.656 kB / 424.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1688, allocations: 43.16 kB / 424.3 MB, free: 5.594 MB / 318.1 MB Notification: Performance of pre-optimization done (n=77): time 3.156e-06/0.1689, allocations: 4 kB / 424.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=77): time 0.004505/0.1734, allocations: 1.639 MB / 425.9 MB, free: 3.918 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.075e-05/0.1734, allocations: 60.06 kB / 426 MB, free: 3.848 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005731/0.174, allocations: 499 kB / 426.5 MB, free: 3.352 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.1741, allocations: 45.64 kB / 426.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.1743, allocations: 355.9 kB / 426.8 MB, free: 2.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.1746, allocations: 268.1 kB / 427.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.392e-05/0.1746, allocations: 16 kB / 427.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1748, allocations: 382.7 kB / 427.5 MB, free: 2.281 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003326/0.1751, allocations: 205.9 kB / 427.7 MB, free: 2.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004151/0.1755, allocations: 326 kB / 428 MB, free: 1.719 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004144/0.176, allocations: 262.9 kB / 428.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.176, allocations: 4 kB / 428.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.001656/0.1776, allocations: 0.9272 MB / 429.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.1777, allocations: 4 kB / 429.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.1777, allocations: 4.312 kB / 429.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009822/0.1787, allocations: 303.2 kB / 429.5 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/0.1793, allocations: 163.8 kB / 429.7 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2772/0.4565, allocations: 3.026 MB / 432.7 MB, free: 34.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/0.4572, allocations: 57.53 kB / 432.8 MB, free: 34.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/0.4573, allocations: 26.94 kB / 432.8 MB, free: 34.88 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (71): * Single equations (assignments): 70 * 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: 0 * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003871/0.4577, allocations: 221.5 kB / 433 MB, free: 34.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.4578, allocations: 81.02 kB / 433.1 MB, free: 34.74 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.4597, allocations: 0.8731 MB / 433.9 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.4598, allocations: 8.156 kB / 434 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.4598, allocations: 0 / 434 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.4598, allocations: 4.969 kB / 434 MB, free: 34.53 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002985/0.4628, allocations: 1.786 MB / 435.7 MB, free: 33.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.4628, allocations: 0 / 435.7 MB, free: 33.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005361/0.4633, allocations: 133 kB / 435.9 MB, free: 33.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009468/0.4643, allocations: 290.9 kB / 436.2 MB, free: 33.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.4643, allocations: 15.34 kB / 436.2 MB, free: 33.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004154/0.4685, allocations: 2.954 MB / 439.1 MB, free: 31.36 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4685, allocations: 0 / 439.1 MB, free: 31.36 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002638/0.4712, allocations: 1.861 MB / 441 MB, free: 30.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003144/0.4715, allocations: 204.3 kB / 441.2 MB, free: 29.96 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.582e-05/0.4716, allocations: 11.62 kB / 441.2 MB, free: 29.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003719/0.472, allocations: 31.91 kB / 441.2 MB, free: 29.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.4721, allocations: 49.94 kB / 441.3 MB, free: 29.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.889e-05/0.4721, allocations: 24.45 kB / 441.3 MB, free: 29.93 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005512/0.4727, allocations: 341.7 kB / 441.6 MB, free: 29.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4727, allocations: 0 / 441.6 MB, free: 29.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00152/0.4742, allocations: 304.1 kB / 441.9 MB, free: 29.72 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 (51): * Single equations (assignments): 50 * 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: 0 * Non-linear torn systems: 1 {4 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002254/0.4765, allocations: 1.544 MB / 443.5 MB, free: 28.73 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 initialization part: time 0.002058/0.4786, allocations: 0.8534 MB / 444.3 MB, free: 28.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4786, allocations: 0 / 444.3 MB, free: 28.32 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 simulation system equations: time 0.001076/0.4797, allocations: 0.5667 MB / 444.9 MB, free: 28.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006456/0.4803, allocations: 94.06 kB / 445 MB, free: 27.96 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.008054/0.4884, allocations: 4.39 MB / 449.4 MB, free: 25.51 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006859/0.4891, allocations: 0.9633 MB / 450.3 MB, free: 24.8 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000452/0.4896, allocations: 82.16 kB / 450.4 MB, free: 24.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.4899, allocations: 253.1 kB / 450.7 MB, free: 24.58 MB / 318.1 MB Notification: Performance of SimCode: time 1.523e-06/0.4899, allocations: 1.312 kB / 450.7 MB, free: 24.58 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, -577.3502691896258, 0.0).