Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_PowerGrids_Electrical_Test_TwoBusesInductiveTransmissionLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine,fileNamePrefix="PowerGrids_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.001149/0.001149, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001373/0.001373, allocations: 172.7 kB / 15.95 MB, free: 208 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.384/1.384, allocations: 205.4 MB / 222.1 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.06012/0.06011, allocations: 14.17 MB / 284.6 MB, free: 7.141 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.0004793/0.0004793, allocations: 16 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08356/0.08405, allocations: 51.12 MB / 397.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TwoBusesInductiveTransmissionLine): time 0.005538/0.08962, allocations: 6.549 MB / 403.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004088/0.09374, allocations: 3.26 MB / 407.2 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003374/0.09411, allocations: 15.94 kB / 407.2 MB, free: 6.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006895/0.0948, allocations: 314.4 kB / 407.5 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002728/0.09754, allocations: 1.254 MB / 408.8 MB, free: 5.188 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008549/0.09841, allocations: 493.7 kB / 409.3 MB, free: 4.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002065/0.1005, allocations: 1.762 MB / 411 MB, free: 2.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.1007, allocations: 102.4 kB / 411.1 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006191/0.1014, allocations: 477.6 kB / 411.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005518/0.1019, allocations: 0.4978 MB / 412.1 MB, free: 1.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.102, allocations: 28 kB / 412.1 MB, free: 1.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008104/0.1028, allocations: 351.7 kB / 412.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.1029, allocations: 107.4 kB / 412.6 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002163/0.1031, allocations: 209.2 kB / 412.8 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.1042, allocations: 1.009 MB / 413.8 MB, free: 168 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.1042, allocations: 4 kB / 413.8 MB, free: 164 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1042, allocations: 3.938 kB / 413.8 MB, free: 160 kB / 302.1 MB Notification: Performance of Transformations before backend: time 9.718e-06/0.1042, allocations: 0 / 413.8 MB, free: 160 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.004243/0.1085, allocations: 1.512 MB / 415.3 MB, free: 14.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.1085, allocations: 16.02 kB / 415.3 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001515/0.1087, allocations: 122.6 kB / 415.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005227/0.1092, allocations: 150.7 kB / 415.6 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.1103, allocations: 0.6248 MB / 416.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.398e-05/0.1104, allocations: 58 kB / 416.3 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.51e-05/0.1105, allocations: 75.98 kB / 416.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.1117, allocations: 0.7693 MB / 417.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.1117, allocations: 4 kB / 417.1 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-05/0.1118, allocations: 24 kB / 417.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.1118, allocations: 20 kB / 417.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.1129, allocations: 0.7026 MB / 417.8 MB, free: 11.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 preOpt removeSimpleEquations (simulation): time 0.004519/0.1174, allocations: 4.678 MB / 422.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00152/0.119, allocations: 0.9628 MB / 423.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000419/0.1194, allocations: 307.8 kB / 423.8 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.915e-05/0.1195, allocations: 8.656 kB / 423.8 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.1195, allocations: 43.22 kB / 423.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of pre-optimization done (n=78): time 2.505e-06/0.1195, allocations: 0 / 423.8 MB, free: 5.395 MB / 318.1 MB Notification: Performance of matching and sorting (n=78): time 0.002587/0.1221, allocations: 1.229 MB / 425.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1222, allocations: 64.06 kB / 425.1 MB, free: 4.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005054/0.1227, allocations: 499 kB / 425.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.712e-05/0.1227, allocations: 37.7 kB / 425.7 MB, free: 3.523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.123, allocations: 363.8 kB / 426 MB, free: 3.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.1232, allocations: 264.1 kB / 426.3 MB, free: 2.898 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.247e-05/0.1232, allocations: 16 kB / 426.3 MB, free: 2.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.1234, allocations: 382.7 kB / 426.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/0.1237, allocations: 209.9 kB / 426.9 MB, free: 2.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004294/0.1241, allocations: 328.3 kB / 427.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004155/0.1246, allocations: 274.9 kB / 427.5 MB, free: 1.672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.1246, allocations: 0 / 427.5 MB, free: 1.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001327/0.1259, allocations: 0.8564 MB / 428.3 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1259, allocations: 8 kB / 428.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1259, allocations: 0 / 428.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005333/0.1265, allocations: 180.9 kB / 428.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007045/0.1272, allocations: 203.8 kB / 428.7 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1738/0.301, allocations: 2.319 MB / 431 MB, free: 34.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006064/0.3017, allocations: 52.73 kB / 431.1 MB, free: 34.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.3017, allocations: 23.22 kB / 431.1 MB, free: 34.84 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.0003286/0.3021, allocations: 230.4 kB / 431.3 MB, free: 34.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.927e-05/0.3022, allocations: 76.03 kB / 431.4 MB, free: 34.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0014/0.3036, allocations: 0.7966 MB / 432.2 MB, free: 34.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.3036, allocations: 7.641 kB / 432.2 MB, free: 34.65 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.3036, allocations: 4.031 kB / 432.2 MB, free: 34.65 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.3036, allocations: 3.797 kB / 432.2 MB, free: 34.65 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.00222/0.3058, allocations: 1.727 MB / 433.9 MB, free: 33.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3059, allocations: 0 / 433.9 MB, free: 33.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006199/0.3065, allocations: 160 kB / 434.1 MB, free: 33.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004642/0.307, allocations: 174.7 kB / 434.3 MB, free: 33.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.384e-05/0.307, allocations: 18.03 kB / 434.3 MB, free: 33.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002383/0.3094, allocations: 2.322 MB / 436.6 MB, free: 31.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3094, allocations: 0.5469 kB / 436.6 MB, free: 31.98 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3106, allocations: 0.8466 MB / 437.4 MB, free: 31.55 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/0.3108, allocations: 206.4 kB / 437.6 MB, free: 31.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.46e-05/0.3109, allocations: 16.31 kB / 437.7 MB, free: 31.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.3112, allocations: 29.41 kB / 437.7 MB, free: 31.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.207e-05/0.3113, allocations: 55.61 kB / 437.7 MB, free: 31.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.025e-05/0.3113, allocations: 22.88 kB / 437.8 MB, free: 31.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003495/0.3117, allocations: 335.7 kB / 438.1 MB, free: 31.17 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3117, allocations: 0 / 438.1 MB, free: 31.17 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007528/0.3125, allocations: 280 kB / 438.4 MB, free: 31.13 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.001453/0.3139, allocations: 1.475 MB / 439.8 MB, free: 30.13 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001281/0.3152, allocations: 0.8012 MB / 440.6 MB, free: 29.77 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3152, allocations: 1.25 kB / 440.6 MB, free: 29.77 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007204/0.316, allocations: 0.5235 MB / 441.2 MB, free: 29.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.3165, allocations: 89.61 kB / 441.3 MB, free: 29.44 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.005966/0.3225, allocations: 3.921 MB / 445.2 MB, free: 27.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.323, allocations: 0.9402 MB / 446.1 MB, free: 26.63 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004362/0.3234, allocations: 87.17 kB / 446.2 MB, free: 26.6 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/0.3238, allocations: 266.8 kB / 446.5 MB, free: 26.41 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3238, allocations: 0.9688 kB / 446.5 MB, free: 26.41 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).