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.001229/0.001229, allocations: 97.36 kB / 15.7 MB, free: 472 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.00115/0.00115, allocations: 182.5 kB / 16.58 MB, free: 6.395 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.612/1.612, allocations: 205.4 MB / 222.7 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05885/0.05885, allocations: 14.17 MB / 285.2 MB, free: 7.145 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.0005165/0.0005166, allocations: 16.22 kB / 346.9 MB, free: 19.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.102, allocations: 51.12 MB / 398 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesResistiveTransmissionLine): time 0.00646/0.1085, allocations: 5.982 MB / 404 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005095/0.1136, allocations: 3.218 MB / 407.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000572/0.1142, allocations: 15.94 kB / 407.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008356/0.1151, allocations: 310.4 kB / 407.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003098/0.1182, allocations: 1.35 MB / 408.9 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008544/0.119, allocations: 486.2 kB / 409.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002101/0.1211, allocations: 1.322 MB / 410.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.1214, allocations: 114.4 kB / 410.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000809/0.1222, allocations: 0.4982 MB / 411.3 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005793/0.1228, allocations: 0.4903 MB / 411.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.262e-05/0.1229, allocations: 24 kB / 411.8 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009729/0.1239, allocations: 339.6 kB / 412.1 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.574e-05/0.124, allocations: 103.5 kB / 412.2 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.1242, allocations: 209.2 kB / 412.4 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001098/0.1253, allocations: 0.9977 MB / 413.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1253, allocations: 0 / 413.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1253, allocations: 0 / 413.4 MB, free: 1.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.1253, allocations: 0 / 413.4 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.004458/0.1298, allocations: 1.516 MB / 414.9 MB, free: 15.61 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.1299, allocations: 12.02 kB / 414.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001465/0.13, allocations: 126.6 kB / 415.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005543/0.1306, allocations: 146.7 kB / 415.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.1316, allocations: 0.6287 MB / 415.8 MB, free: 14.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.1317, allocations: 50 kB / 415.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.068e-05/0.1318, allocations: 72 kB / 415.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001133/0.1329, allocations: 0.7576 MB / 416.7 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.133, allocations: 7.938 kB / 416.7 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.565e-05/0.133, allocations: 28 kB / 416.7 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.1331, allocations: 20 kB / 416.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.1341, allocations: 0.6948 MB / 417.5 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.004759/0.1389, allocations: 4.685 MB / 422.1 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.1405, allocations: 0.9598 MB / 423.1 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.268e-05/0.1406, allocations: 12.64 kB / 423.1 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.1406, allocations: 43.22 kB / 423.2 MB, free: 6.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 1.964e-06/0.1406, allocations: 0 / 423.2 MB, free: 6.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002753/0.1434, allocations: 1.218 MB / 424.4 MB, free: 5.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.1434, allocations: 60.06 kB / 424.4 MB, free: 5.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.144, allocations: 0.4912 MB / 424.9 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.1441, allocations: 49.58 kB / 425 MB, free: 4.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.1443, allocations: 363.8 kB / 425.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.1445, allocations: 264.1 kB / 425.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.159e-05/0.1446, allocations: 16 kB / 425.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1448, allocations: 378.7 kB / 426 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003476/0.1451, allocations: 217.9 kB / 426.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004255/0.1456, allocations: 328.3 kB / 426.5 MB, free: 3.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.146, allocations: 270.9 kB / 426.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.146, allocations: 0 / 426.8 MB, free: 3.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001416/0.1474, allocations: 0.8564 MB / 427.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.1474, allocations: 8 kB / 427.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1475, allocations: 0 / 427.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000546/0.148, allocations: 173 kB / 427.8 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007936/0.1488, allocations: 199.8 kB / 428 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1968/0.3456, allocations: 2.382 MB / 430.4 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.3467, allocations: 52.11 kB / 430.4 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/0.3468, allocations: 31.56 kB / 430.5 MB, free: 34.66 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.0004081/0.3472, allocations: 221.8 kB / 430.7 MB, free: 34.54 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.3474, allocations: 74.5 kB / 430.7 MB, free: 34.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.3489, allocations: 0.8035 MB / 431.6 MB, free: 34.48 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.3489, allocations: 7.188 kB / 431.6 MB, free: 34.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3489, allocations: 6.562 kB / 431.6 MB, free: 34.48 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.349, allocations: 3.656 kB / 431.6 MB, free: 34.48 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.002737/0.3517, allocations: 1.722 MB / 433.3 MB, free: 34.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3517, allocations: 0 / 433.3 MB, free: 34.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006965/0.3524, allocations: 161.1 kB / 433.4 MB, free: 34.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004928/0.3529, allocations: 171.2 kB / 433.6 MB, free: 34.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/0.353, allocations: 15.56 kB / 433.6 MB, free: 34.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002772/0.3557, allocations: 2.385 MB / 436 MB, free: 32.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3558, allocations: 1.797 kB / 436 MB, free: 32.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.3577, allocations: 1.789 MB / 437.8 MB, free: 31.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002757/0.3579, allocations: 201.9 kB / 438 MB, free: 31.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.113e-05/0.358, allocations: 19.11 kB / 438 MB, free: 31.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003907/0.3584, allocations: 28.17 kB / 438.1 MB, free: 31.04 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.856e-05/0.3585, allocations: 55.86 kB / 438.1 MB, free: 31.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/0.3586, allocations: 16.38 kB / 438.1 MB, free: 31.02 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004444/0.359, allocations: 344.6 kB / 438.5 MB, free: 30.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.359, allocations: 0 / 438.5 MB, free: 30.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001339/0.3604, allocations: 276.6 kB / 438.7 MB, free: 30.83 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.001708/0.3621, allocations: 1.457 MB / 440.2 MB, free: 29.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001585/0.3637, allocations: 0.8111 MB / 441 MB, free: 29.46 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3637, allocations: 0 / 441 MB, free: 29.46 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007641/0.3645, allocations: 0.5262 MB / 441.5 MB, free: 29.19 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004927/0.365, allocations: 69.08 kB / 441.6 MB, free: 29.15 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.007304/0.3723, allocations: 5.765 MB / 447.4 MB, free: 25.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007156/0.373, allocations: 0.9749 MB / 448.3 MB, free: 24.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000522/0.3736, allocations: 91.83 kB / 448.4 MB, free: 24.5 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004038/0.374, allocations: 262.4 kB / 448.7 MB, free: 24.31 MB / 318.1 MB Notification: Performance of SimCode: time 2.054e-06/0.374, allocations: 0 / 448.7 MB, free: 24.31 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).