Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB",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.0007927/0.0007926, allocations: 91.77 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.0008117/0.0008117, 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.509/1.509, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.06226/0.06226, allocations: 14.16 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.000541/0.0005411, allocations: 20 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09573, allocations: 51.11 MB / 397.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortB): time 0.01076/0.1065, allocations: 10.86 MB / 408.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.1166, allocations: 4.717 MB / 413 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002189/0.1189, allocations: 39.81 kB / 413 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.1211, allocations: 481.5 kB / 413.5 MB, free: 480 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006368/0.1275, allocations: 1.92 MB / 415.4 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.1289, allocations: 494.4 kB / 415.9 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005401/0.1343, allocations: 3.421 MB / 419.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007473/0.135, allocations: 217.2 kB / 419.5 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001996/0.137, allocations: 0.9371 MB / 420.4 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001953/0.139, allocations: 0.9569 MB / 421.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003891/0.1394, allocations: 48 kB / 421.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.1412, allocations: 391.7 kB / 421.8 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004098/0.1416, allocations: 210.8 kB / 422 MB, free: 7.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009452/0.1425, allocations: 372.8 kB / 422.4 MB, free: 7.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002746/0.1453, allocations: 1.73 MB / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1453, allocations: 0 / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1453, allocations: 0 / 424.1 MB, free: 5.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.585e-05/0.1454, allocations: 0 / 424.1 MB, free: 5.777 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.007635/0.153, allocations: 2.525 MB / 426.7 MB, free: 3.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1531, allocations: 12.03 kB / 426.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003993/0.1535, allocations: 202.7 kB / 426.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/0.1548, allocations: 281.8 kB / 427.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/0.1573, allocations: 1.038 MB / 428.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002333/0.1576, allocations: 182.1 kB / 428.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002524/0.1578, allocations: 140 kB / 428.5 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1738/0.3317, allocations: 1.427 MB / 429.9 MB, free: 19.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.3317, allocations: 2.328 kB / 429.9 MB, free: 19.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.3319, allocations: 59.22 kB / 430 MB, free: 19.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.579e-05/0.3319, allocations: 34.16 kB / 430 MB, free: 19.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002439/0.3344, allocations: 1.378 MB / 431.4 MB, free: 19.04 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.008548/0.3429, allocations: 8.864 MB / 440.3 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.3455, allocations: 1.537 MB / 441.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008956/0.3464, allocations: 0.5926 MB / 442.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.3466, allocations: 17.05 kB / 442.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001449/0.348, allocations: 1.203 MB / 443.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=168): time 3.626e-06/0.348, allocations: 0 / 443.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=168): time 0.009017/0.3571, allocations: 3.287 MB / 446.9 MB, free: 11.72 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.3573, allocations: 0.5405 MB / 447.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.3586, allocations: 0.7863 MB / 448.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.3587, allocations: 56.58 kB / 448.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005193/0.3592, allocations: 0.5864 MB / 448.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004646/0.3597, allocations: 0.5453 MB / 449.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.3598, allocations: 36.03 kB / 449.4 MB, free: 10.32 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.3599, allocations: 362.4 kB / 449.8 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008449/0.3608, allocations: 446.3 kB / 450.2 MB, free: 10 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009592/0.3617, allocations: 0.6886 MB / 450.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009221/0.3627, allocations: 0.6258 MB / 451.5 MB, free: 9.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.148e-05/0.3627, allocations: 1.062 kB / 451.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003324/0.366, allocations: 1.937 MB / 453.5 MB, free: 9.301 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.331e-05/0.3661, allocations: 129 kB / 453.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.3661, allocations: 10.3 kB / 453.6 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001387/0.3675, allocations: 453.4 kB / 454.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.3687, allocations: 326.5 kB / 454.4 MB, free: 9.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005883/0.3746, allocations: 4.028 MB / 458.4 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.3758, allocations: 105.4 kB / 458.5 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/0.376, allocations: 56.72 kB / 458.6 MB, free: 7.113 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 (transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatusInternalA,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine2.breakerStatusInternalA,$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.0008639/0.3769, allocations: 425 kB / 459 MB, free: 6.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004341/0.3773, allocations: 149.8 kB / 459.1 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003298/0.3806, allocations: 1.891 MB / 461 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.3806, allocations: 14.3 kB / 461 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-05/0.3807, allocations: 2.656 kB / 461 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.219e-05/0.3807, allocations: 8.625 kB / 461 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005232/0.3859, allocations: 3.425 MB / 464.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.386, allocations: 0 / 464.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009456/0.3869, allocations: 266.3 kB / 464.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.388, allocations: 429.9 kB / 465.2 MB, free: 3.391 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001126/0.3881, allocations: 38.39 kB / 465.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005013/0.3932, allocations: 3.942 MB / 469.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.3932, allocations: 0 / 469.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003835/0.397, allocations: 1.931 MB / 471.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007342/0.3978, allocations: 327.2 kB / 471.4 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/0.3981, allocations: 40 kB / 471.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009163/0.3991, allocations: 71.56 kB / 471.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003319/0.3994, allocations: 130 kB / 471.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.922e-05/0.3995, allocations: 44 kB / 471.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008958/0.4004, allocations: 0.5207 MB / 472.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4004, allocations: 0 / 472.2 MB, free: 12.51 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002042/0.4025, allocations: 0.5631 MB / 472.7 MB, free: 11.95 MB / 334.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,transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatus) * Number of discrete states: 19 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine1.breakerStatusInternalB) * 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.003843/0.4063, allocations: 2.606 MB / 475.4 MB, free: 9.348 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 initialization part: time 0.003379/0.4097, allocations: 1.991 MB / 477.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.4098, allocations: 0 / 477.3 MB, free: 7.332 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 simulation system equations: time 0.001955/0.4117, allocations: 1.391 MB / 478.7 MB, free: 5.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.4129, allocations: 172.9 kB / 478.9 MB, free: 5.762 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.01385/0.4267, allocations: 7.764 MB / 486.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008241/0.4276, allocations: 1.191 MB / 487.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0009/0.4285, allocations: 182.4 kB / 488 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006872/0.4292, allocations: 0.5227 MB / 488.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.4292, allocations: 0 / 488.6 MB, free: 11.8 MB / 350.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).