Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA",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.0008923/0.0008923, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001003/0.001003, allocations: 168.7 kB / 15.95 MB, free: 204 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.499/1.499, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05769/0.05769, allocations: 14.18 MB / 284.6 MB, free: 7.117 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.0004909/0.000491, allocations: 16 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09038/0.09088, allocations: 51.11 MB / 397.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortA): time 0.00996/0.1009, allocations: 10.86 MB / 408.2 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007956/0.1089, allocations: 4.725 MB / 413 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.1105, allocations: 35.88 kB / 413 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.1119, allocations: 489.4 kB / 413.5 MB, free: 472 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005231/0.1171, allocations: 1.916 MB / 415.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001209/0.1183, allocations: 494.6 kB / 415.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004589/0.1229, allocations: 3.424 MB / 419.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000504/0.1234, allocations: 213.2 kB / 419.5 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001751/0.1252, allocations: 0.9372 MB / 420.5 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001001/0.1262, allocations: 0.953 MB / 421.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.1263, allocations: 52 kB / 421.5 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.1274, allocations: 395.7 kB / 421.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001879/0.1276, allocations: 206.8 kB / 422 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004158/0.128, allocations: 368.8 kB / 422.4 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001701/0.1297, allocations: 1.73 MB / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1298, allocations: 0 / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1298, allocations: 0 / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.683e-05/0.1298, allocations: 4 kB / 424.1 MB, free: 5.773 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.006959/0.1368, allocations: 2.525 MB / 426.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.1368, allocations: 12.03 kB / 426.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003634/0.1372, allocations: 206.7 kB / 426.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009815/0.1382, allocations: 277.8 kB / 427.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001785/0.14, allocations: 1.038 MB / 428.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.1402, allocations: 178.1 kB / 428.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001656/0.1403, allocations: 140 kB / 428.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2011/0.3414, allocations: 1.428 MB / 429.9 MB, free: 35.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.3416, allocations: 1.5 kB / 429.9 MB, free: 35.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004309/0.342, allocations: 59.66 kB / 430 MB, free: 35.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.856e-05/0.3421, allocations: 33.94 kB / 430 MB, free: 35.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003109/0.3452, allocations: 1.379 MB / 431.4 MB, free: 35.2 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.009419/0.3547, allocations: 8.87 MB / 440.3 MB, free: 28.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002883/0.3576, allocations: 1.528 MB / 441.8 MB, free: 27.36 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00098/0.3586, allocations: 0.5992 MB / 442.4 MB, free: 27.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001037/0.3587, allocations: 16.58 kB / 442.4 MB, free: 27.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001617/0.3603, allocations: 1.198 MB / 443.6 MB, free: 26.3 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 3.417e-06/0.3603, allocations: 0 / 443.6 MB, free: 26.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.009236/0.3696, allocations: 3.287 MB / 446.9 MB, free: 25.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001587/0.3698, allocations: 0.5406 MB / 447.4 MB, free: 24.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001264/0.371, allocations: 0.7893 MB / 448.2 MB, free: 24.24 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.3712, allocations: 57.58 kB / 448.3 MB, free: 24.19 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004464/0.3716, allocations: 0.5838 MB / 448.9 MB, free: 23.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000459/0.3721, allocations: 0.5407 MB / 449.4 MB, free: 23.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.197e-05/0.3722, allocations: 33.31 kB / 449.4 MB, free: 23.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3723, allocations: 371 kB / 449.8 MB, free: 22.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000806/0.3731, allocations: 438.4 kB / 450.2 MB, free: 22.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000982/0.3741, allocations: 0.6931 MB / 450.9 MB, free: 22.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009593/0.3751, allocations: 0.6292 MB / 451.6 MB, free: 21.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.3751, allocations: 1.125 kB / 451.6 MB, free: 21.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003391/0.3785, allocations: 1.934 MB / 453.5 MB, free: 20.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.658e-05/0.3786, allocations: 130.2 kB / 453.6 MB, free: 20.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.3786, allocations: 10.28 kB / 453.6 MB, free: 20.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/0.38, allocations: 461.6 kB / 454.1 MB, free: 20.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.3813, allocations: 317.5 kB / 454.4 MB, free: 20.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005405/0.3867, allocations: 4.029 MB / 458.4 MB, free: 17.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/0.388, allocations: 106.9 kB / 458.5 MB, free: 17.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/0.3881, allocations: 55.53 kB / 458.6 MB, free: 17.42 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 28 (transmissionLine2.breakerStatusInternalA,transmissionLine2.breakerStatusInternalB,transmissionLine1.breakerStatusInternalB,transmissionLine1.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$PRE.transmissionLine2.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatusInternalB) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 4 * 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 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.000799/0.3889, allocations: 422 kB / 459 MB, free: 17.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003864/0.3893, allocations: 153.4 kB / 459.1 MB, free: 17.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003068/0.3924, allocations: 1.886 MB / 461 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.071e-05/0.3924, allocations: 17.5 kB / 461 MB, free: 15.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3925, allocations: 3.953 kB / 461 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.3925, allocations: 7.969 kB / 461.1 MB, free: 15.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00506/0.3975, allocations: 3.425 MB / 464.5 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.3976, allocations: 0 / 464.5 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00093/0.3985, allocations: 267.7 kB / 464.7 MB, free: 13.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.3996, allocations: 432.3 kB / 465.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.3997, allocations: 35.98 kB / 465.2 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005013/0.4048, allocations: 3.938 MB / 469.1 MB, free: 8.602 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.4048, allocations: 7.984 kB / 469.1 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003147/0.408, allocations: 1.927 MB / 471.1 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000835/0.4088, allocations: 335.1 kB / 471.4 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003236/0.4091, allocations: 32 kB / 471.4 MB, free: 6.262 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009217/0.4101, allocations: 71.58 kB / 471.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.4103, allocations: 134.6 kB / 471.6 MB, free: 6.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.965e-05/0.4104, allocations: 43.94 kB / 471.7 MB, free: 6.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000614/0.411, allocations: 0.5246 MB / 472.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4111, allocations: 0 / 472.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00154/0.4126, allocations: 0.5514 MB / 472.7 MB, free: 4.93 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: 19 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine2.breakerStatus,transmissionLine2.breakerStatusInternalA) * Number of discrete states: 19 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 2 * 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 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.003368/0.416, allocations: 2.614 MB / 475.4 MB, free: 2.281 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.002959/0.419, allocations: 2 MB / 477.4 MB, free: 232 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.419, allocations: 0 / 477.4 MB, free: 232 kB / 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.00205/0.421, allocations: 1.389 MB / 478.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/0.4222, allocations: 158.2 kB / 478.9 MB, free: 14.66 MB / 334.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.01529/0.4375, allocations: 7.78 MB / 486.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009885/0.4386, allocations: 1.195 MB / 487.9 MB, free: 5.316 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009647/0.4395, allocations: 177.9 kB / 488.1 MB, free: 5.141 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007433/0.4403, allocations: 0.5227 MB / 488.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of SimCode: time 1.573e-06/0.4403, allocations: 0 / 488.6 MB, free: 4.617 MB / 334.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). [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).