Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Electrical_Test_TwoBusesResistiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine,fileNamePrefix="PowerGrids_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.0009742/0.0009744, allocations: 100.2 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.00095/0.00095, allocations: 177.3 kB / 15.95 MB, free: 216 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.657/1.657, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05744/0.05744, allocations: 14.15 MB / 284.5 MB, free: 7.137 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.0005627/0.0005628, allocations: 16 kB / 346.2 MB, free: 19.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1131, allocations: 51.12 MB / 397.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.007272/0.1204, allocations: 5.977 MB / 403.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00582/0.1263, allocations: 3.218 MB / 406.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007319/0.1271, allocations: 19.94 kB / 406.6 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.1281, allocations: 306.4 kB / 406.9 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003618/0.1318, allocations: 1.345 MB / 408.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009021/0.1327, allocations: 478.5 kB / 408.7 MB, free: 5.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002435/0.1351, allocations: 1.333 MB / 410 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.1354, allocations: 110.4 kB / 410.1 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008997/0.1363, allocations: 0.506 MB / 410.6 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006109/0.1369, allocations: 494.1 kB / 411.1 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.137, allocations: 28 kB / 411.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009767/0.138, allocations: 335.6 kB / 411.5 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.1381, allocations: 107.5 kB / 411.6 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.1383, allocations: 205.2 kB / 411.8 MB, free: 2.188 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.1395, allocations: 1.002 MB / 412.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1395, allocations: 0 / 412.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1395, allocations: 0 / 412.8 MB, free: 1.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1395, allocations: 4 kB / 412.8 MB, free: 1.18 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.004551/0.144, allocations: 1.512 MB / 414.3 MB, free: 15.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.322e-05/0.1441, allocations: 12.02 kB / 414.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001859/0.1443, allocations: 122.6 kB / 414.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.1449, allocations: 146.7 kB / 414.6 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.146, allocations: 0.6287 MB / 415.2 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.232e-05/0.146, allocations: 54 kB / 415.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.402e-05/0.1461, allocations: 72 kB / 415.3 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.1473, allocations: 0.7614 MB / 416.1 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.1473, allocations: 7.938 kB / 416.1 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.655e-05/0.1474, allocations: 24 kB / 416.1 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.1474, allocations: 20 kB / 416.1 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.1485, allocations: 0.7027 MB / 416.8 MB, free: 12.99 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.005161/0.1536, allocations: 4.685 MB / 421.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.1554, allocations: 0.951 MB / 422.5 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.108e-05/0.1554, allocations: 12.64 kB / 422.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.1555, allocations: 39.22 kB / 422.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.575e-06/0.1555, allocations: 0 / 422.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002882/0.1584, allocations: 1.222 MB / 423.7 MB, free: 5.488 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.821e-05/0.1584, allocations: 64.06 kB / 423.8 MB, free: 5.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005994/0.1591, allocations: 499 kB / 424.3 MB, free: 4.918 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.285e-05/0.1591, allocations: 45.64 kB / 424.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/0.1594, allocations: 355.8 kB / 424.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002295/0.1596, allocations: 272.1 kB / 424.9 MB, free: 4.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.1597, allocations: 16 kB / 425 MB, free: 4.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.1599, allocations: 378.7 kB / 425.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.1602, allocations: 217.9 kB / 425.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.1606, allocations: 328.3 kB / 425.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004557/0.1611, allocations: 270.9 kB / 426.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1611, allocations: 0 / 426.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001504/0.1626, allocations: 0.8564 MB / 427 MB, free: 2.148 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.1627, allocations: 8 kB / 427 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1627, allocations: 0 / 427 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000615/0.1633, allocations: 181 kB / 427.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008017/0.1641, allocations: 199.8 kB / 427.4 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2196/0.3837, allocations: 2.376 MB / 429.7 MB, free: 24.92 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007924/0.3845, allocations: 57.3 kB / 429.8 MB, free: 24.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.859e-05/0.3846, allocations: 22.95 kB / 429.8 MB, free: 24.92 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.0004342/0.385, allocations: 227.2 kB / 430 MB, free: 24.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001275/0.3852, allocations: 75.34 kB / 430.1 MB, free: 24.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.3866, allocations: 0.8033 MB / 430.9 MB, free: 24.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.677e-06/0.3866, allocations: 6.875 kB / 430.9 MB, free: 24.74 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.3867, allocations: 3.453 kB / 430.9 MB, free: 24.74 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.3867, allocations: 4.844 kB / 430.9 MB, free: 24.74 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.002723/0.3894, allocations: 1.723 MB / 432.6 MB, free: 24.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.3894, allocations: 1.219 kB / 432.6 MB, free: 24.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007007/0.3901, allocations: 160.2 kB / 432.8 MB, free: 24.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005038/0.3906, allocations: 172.5 kB / 433 MB, free: 24.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.3907, allocations: 13.05 kB / 433 MB, free: 24.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002784/0.3935, allocations: 2.385 MB / 435.4 MB, free: 23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.3935, allocations: 1.703 kB / 435.4 MB, free: 23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.3951, allocations: 0.8553 MB / 436.2 MB, free: 22.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.3955, allocations: 199.8 kB / 436.4 MB, free: 22.67 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.151e-05/0.3956, allocations: 14.73 kB / 436.4 MB, free: 22.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004601/0.396, allocations: 34.61 kB / 436.5 MB, free: 22.66 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.3962, allocations: 48.41 kB / 436.5 MB, free: 22.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.3962, allocations: 19.62 kB / 436.5 MB, free: 22.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005766/0.3968, allocations: 343.2 kB / 436.9 MB, free: 22.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3968, allocations: 1.344 kB / 436.9 MB, free: 22.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001487/0.3983, allocations: 274.5 kB / 437.1 MB, free: 22.57 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.001884/0.4002, allocations: 1.467 MB / 438.6 MB, free: 21.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.4019, allocations: 0.8074 MB / 439.4 MB, free: 21.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4019, allocations: 0 / 439.4 MB, free: 21.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008425/0.4028, allocations: 0.5167 MB / 439.9 MB, free: 21.56 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.4032, allocations: 74.56 kB / 440 MB, free: 21.55 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.006457/0.4097, allocations: 5.348 MB / 445.4 MB, free: 18.69 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005437/0.4103, allocations: 0.958 MB / 446.3 MB, free: 17.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004678/0.4107, allocations: 87.52 kB / 446.4 MB, free: 17.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003331/0.4111, allocations: 266.8 kB / 446.7 MB, free: 17.94 MB / 318.1 MB Notification: Performance of SimCode: time 1.242e-06/0.4111, allocations: 0 / 446.7 MB, free: 17.94 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).