Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB.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.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB",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.0008482/0.0008483, allocations: 84.38 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.0009435/0.0009435, 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.422/1.422, 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.05986/0.05986, 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.0005075/0.0005076, allocations: 20 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09694, allocations: 51.11 MB / 397.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoLinesOneLoadOneBreakerOpenClosePortsAB): time 0.009681/0.1067, allocations: 10.88 MB / 408.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00823/0.1149, allocations: 4.725 MB / 413 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001696/0.1167, allocations: 43.81 kB / 413 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.1184, allocations: 485.4 kB / 413.5 MB, free: 444 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005503/0.1239, allocations: 1.913 MB / 415.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.1252, allocations: 496.4 kB / 415.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004649/0.1298, allocations: 3.424 MB / 419.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005793/0.1304, allocations: 233.5 kB / 419.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.1321, allocations: 0.9371 MB / 420.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.1337, allocations: 0.9608 MB / 421.5 MB, free: 8.465 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002798/0.134, allocations: 48 kB / 421.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.1353, allocations: 387.7 kB / 421.9 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003082/0.1356, allocations: 210.8 kB / 422.1 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006937/0.1363, allocations: 376.8 kB / 422.5 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002377/0.1387, allocations: 1.742 MB / 424.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1387, allocations: 0 / 424.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1387, allocations: 0 / 424.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.373e-05/0.1388, allocations: 0 / 424.2 MB, free: 5.711 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: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.007712/0.1465, allocations: 2.541 MB / 426.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.1466, allocations: 8.031 kB / 426.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004159/0.147, allocations: 206.8 kB / 427 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.1482, allocations: 281.7 kB / 427.2 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/0.1507, allocations: 1.042 MB / 428.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.1509, allocations: 182.2 kB / 428.4 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002754/0.1512, allocations: 148 kB / 428.6 MB, free: 1.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.174/0.3252, allocations: 1.443 MB / 430 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.045e-05/0.3253, allocations: 1.438 kB / 430 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/0.3255, allocations: 58.47 kB / 430.1 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.039e-05/0.3255, allocations: 34.75 kB / 430.1 MB, free: 35.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.3282, allocations: 1.391 MB / 431.5 MB, free: 35.15 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.008277/0.3365, allocations: 9 MB / 440.5 MB, free: 27.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002409/0.3389, allocations: 1.536 MB / 442.1 MB, free: 27.24 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008647/0.3398, allocations: 0.6016 MB / 442.7 MB, free: 26.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.3399, allocations: 24.48 kB / 442.7 MB, free: 26.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001418/0.3413, allocations: 1.202 MB / 443.9 MB, free: 26.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=171): time 3.276e-06/0.3414, allocations: 3.688 kB / 443.9 MB, free: 26.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=171): time 0.008439/0.3498, allocations: 3.28 MB / 447.2 MB, free: 25.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.35, allocations: 0.5416 MB / 447.7 MB, free: 24.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009837/0.351, allocations: 0.7764 MB / 448.5 MB, free: 24.1 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.48e-05/0.351, allocations: 62.83 kB / 448.5 MB, free: 24.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004117/0.3515, allocations: 0.5889 MB / 449.1 MB, free: 23.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003838/0.3519, allocations: 0.5512 MB / 449.7 MB, free: 23.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.095e-05/0.3519, allocations: 32.97 kB / 449.7 MB, free: 23.15 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.352, allocations: 368.4 kB / 450.1 MB, free: 22.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007667/0.3528, allocations: 439.6 kB / 450.5 MB, free: 22.63 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008679/0.3537, allocations: 0.6858 MB / 451.2 MB, free: 22.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008452/0.3545, allocations: 0.6297 MB / 451.8 MB, free: 21.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.3545, allocations: 1.781 kB / 451.8 MB, free: 21.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003087/0.3576, allocations: 1.936 MB / 453.8 MB, free: 20.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.316e-05/0.3577, allocations: 129.9 kB / 453.9 MB, free: 20.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.3577, allocations: 6.875 kB / 453.9 MB, free: 20.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.3591, allocations: 456.8 kB / 454.3 MB, free: 20.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/0.3602, allocations: 317.7 kB / 454.7 MB, free: 20.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004887/0.3651, allocations: 4.027 MB / 458.7 MB, free: 17.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009701/0.3661, allocations: 110.8 kB / 458.8 MB, free: 17.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.453e-05/0.3662, allocations: 60.19 kB / 458.8 MB, free: 17.22 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 28 (transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatusInternalA,transmissionLine1.breakerStatusInternalB,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$PRE.transmissionLine1.breakerStatus,transmissionLine1.breakerStatus,$PRE.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$PRE.transmissionLine2.breakerStatus,transmissionLine2.breakerStatus,$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.0005599/0.3668, allocations: 425.9 kB / 459.3 MB, free: 16.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.367, allocations: 157.4 kB / 459.4 MB, free: 16.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002885/0.3699, allocations: 1.893 MB / 461.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.3699, allocations: 16.84 kB / 461.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3699, allocations: 7.953 kB / 461.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.3699, allocations: 11.25 kB / 461.3 MB, free: 15.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004873/0.3748, allocations: 3.422 MB / 464.8 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.3748, allocations: 11.95 kB / 464.8 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009276/0.3758, allocations: 263.7 kB / 465 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.3768, allocations: 424.4 kB / 465.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.552e-05/0.3769, allocations: 47.98 kB / 465.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004587/0.3815, allocations: 3.936 MB / 469.4 MB, free: 8.328 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3815, allocations: 4 kB / 469.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.3842, allocations: 1.938 MB / 471.4 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004584/0.3847, allocations: 331.1 kB / 471.7 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002025/0.3849, allocations: 43.98 kB / 471.7 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006617/0.3855, allocations: 67.58 kB / 471.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.3858, allocations: 138.3 kB / 471.9 MB, free: 5.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.899e-05/0.3858, allocations: 51.98 kB / 472 MB, free: 5.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005127/0.3864, allocations: 0.5166 MB / 472.5 MB, free: 5.188 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3864, allocations: 0 / 472.5 MB, free: 5.188 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001248/0.3876, allocations: 0.5542 MB / 473.1 MB, free: 4.633 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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine1.breakerStatusInternalA,transmissionLine1.breakerStatusInternalB,transmissionLine2.breakerStatus,transmissionLine2.breakerStatusInternalA,transmissionLine2.breakerStatusInternalB) * Number of discrete states: 22 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,transmissionLine2.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,transmissionLine1.breakerStatus,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,transmissionLine1.breakerStatusInternalB,transmissionLine1.breakerStatusInternalA) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.003003/0.3906, allocations: 2.64 MB / 475.7 MB, free: 1.957 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.002594/0.3932, allocations: 1.989 MB / 477.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.3933, allocations: 4.062 kB / 477.7 MB, free: 15.9 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.001868/0.3951, allocations: 1.392 MB / 479.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008242/0.396, allocations: 171.5 kB / 479.3 MB, free: 14.32 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.01368/0.4097, allocations: 7.78 MB / 487 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008243/0.4105, allocations: 1.203 MB / 488.2 MB, free: 4.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008857/0.4114, allocations: 187.1 kB / 488.4 MB, free: 4.785 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006923/0.4121, allocations: 0.5266 MB / 488.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4121, allocations: 0 / 488.9 MB, free: 4.258 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).