Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad.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.TestTwoBusesTwoTransmLinesWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoTransmLinesWithBreakersOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_TestTwoBusesTwoTransmLinesWithBreakersOneLoad",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.0008015/0.0008016, allocations: 86.25 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.00095/0.00095, 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.493/1.493, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05942/0.05942, allocations: 14.18 MB / 284.6 MB, free: 7.129 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.0004666/0.0004667, allocations: 24 kB / 346.3 MB, free: 19.77 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.0904, allocations: 51.12 MB / 397.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTwoBusesTwoTransmLinesWithBreakersOneLoad): time 0.01018/0.1006, allocations: 10.81 MB / 408.2 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00726/0.1079, allocations: 4.721 MB / 412.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001505/0.1095, allocations: 39.81 kB / 413 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.111, allocations: 481.4 kB / 413.4 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005585/0.1166, allocations: 1.913 MB / 415.3 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.1177, allocations: 482.8 kB / 415.8 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004589/0.1223, allocations: 3.416 MB / 419.2 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004591/0.1227, allocations: 213.7 kB / 419.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001724/0.1245, allocations: 0.9411 MB / 420.4 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001143/0.1256, allocations: 0.9569 MB / 421.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000115/0.1258, allocations: 52 kB / 421.4 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0011/0.1269, allocations: 387.7 kB / 421.8 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.1271, allocations: 206.8 kB / 422 MB, free: 7.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004309/0.1275, allocations: 368.8 kB / 422.3 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001728/0.1292, allocations: 1.734 MB / 424.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1292, allocations: 0 / 424.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1293, allocations: 0 / 424.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1293, allocations: 0 / 424.1 MB, free: 5.852 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.006766/0.136, allocations: 2.525 MB / 426.6 MB, free: 3.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.827e-05/0.1361, allocations: 12.02 kB / 426.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002908/0.1364, allocations: 206.6 kB / 426.8 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009683/0.1374, allocations: 285.7 kB / 427.1 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.1391, allocations: 1.023 MB / 428.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.1393, allocations: 182.1 kB / 428.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/0.1395, allocations: 136 kB / 428.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.176/0.3155, allocations: 1.421 MB / 429.8 MB, free: 35.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.948e-05/0.3156, allocations: 6.438 kB / 429.8 MB, free: 35.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.3157, allocations: 58.34 kB / 429.9 MB, free: 35.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.685e-05/0.3158, allocations: 33.95 kB / 429.9 MB, free: 35.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002469/0.3183, allocations: 1.376 MB / 431.3 MB, free: 35.27 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.009217/0.3275, allocations: 8.857 MB / 440.2 MB, free: 28.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/0.33, allocations: 1.524 MB / 441.7 MB, free: 27.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008983/0.3309, allocations: 0.5951 MB / 442.3 MB, free: 27.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.752e-05/0.331, allocations: 21.28 kB / 442.3 MB, free: 27.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001547/0.3325, allocations: 1.188 MB / 443.5 MB, free: 26.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 2.916e-06/0.3326, allocations: 1.125 kB / 443.5 MB, free: 26.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=167): time 0.009355/0.3419, allocations: 3.242 MB / 446.7 MB, free: 25.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/0.3421, allocations: 0.5442 MB / 447.3 MB, free: 24.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.3432, allocations: 0.7899 MB / 448.1 MB, free: 24.36 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.417e-05/0.3433, allocations: 59.98 kB / 448.1 MB, free: 24.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004636/0.3437, allocations: 0.585 MB / 448.7 MB, free: 23.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/0.3442, allocations: 0.5397 MB / 449.3 MB, free: 23.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.034e-05/0.3442, allocations: 32.88 kB / 449.3 MB, free: 23.42 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3444, allocations: 371 kB / 449.7 MB, free: 23.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007402/0.3451, allocations: 442 kB / 450.1 MB, free: 22.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008507/0.346, allocations: 0.6885 MB / 450.8 MB, free: 22.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008267/0.3468, allocations: 0.6305 MB / 451.4 MB, free: 22.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.3468, allocations: 2.969 kB / 451.4 MB, free: 22.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.003129/0.3499, allocations: 1.933 MB / 453.3 MB, free: 21.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.162e-05/0.35, allocations: 129.9 kB / 453.5 MB, free: 20.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.35, allocations: 6.875 kB / 453.5 MB, free: 20.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001277/0.3513, allocations: 460.4 kB / 453.9 MB, free: 20.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.3525, allocations: 317.7 kB / 454.2 MB, free: 20.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00488/0.3574, allocations: 4.03 MB / 458.3 MB, free: 17.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009254/0.3583, allocations: 98.89 kB / 458.4 MB, free: 17.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.868e-05/0.3584, allocations: 59.64 kB / 458.4 MB, free: 17.63 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.breakerStatusInternalB,transmissionLine2.breakerStatusInternalA,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.transmissionLine1.breakerStatusInternalA,$PRE.transmissionLine1.breakerStatusInternalB,$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.0005812/0.359, allocations: 420.8 kB / 458.8 MB, free: 17.29 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.3592, allocations: 149.5 kB / 459 MB, free: 17.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00296/0.3622, allocations: 1.879 MB / 460.9 MB, free: 16.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/0.3622, allocations: 19.19 kB / 460.9 MB, free: 16.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.3622, allocations: 3.953 kB / 460.9 MB, free: 16.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.345e-05/0.3622, allocations: 3.984 kB / 460.9 MB, free: 16.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00452/0.3667, allocations: 3.421 MB / 464.3 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.3668, allocations: 3.953 kB / 464.3 MB, free: 13.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009098/0.3677, allocations: 263.7 kB / 464.6 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.3687, allocations: 432.3 kB / 465 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-05/0.3688, allocations: 43.98 kB / 465 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004445/0.3733, allocations: 3.928 MB / 469 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3733, allocations: 128 / 469 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.3761, allocations: 1.934 MB / 470.9 MB, free: 6.848 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005246/0.3767, allocations: 343 kB / 471.2 MB, free: 6.492 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002385/0.3769, allocations: 32 kB / 471.3 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007152/0.3777, allocations: 67.67 kB / 471.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.3779, allocations: 131.2 kB / 471.4 MB, free: 6.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.12e-05/0.3779, allocations: 40 kB / 471.5 MB, free: 6.227 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006372/0.3786, allocations: 0.5209 MB / 472 MB, free: 5.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3786, allocations: 0 / 472 MB, free: 5.695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001564/0.3802, allocations: 0.5542 MB / 472.6 MB, free: 5.141 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: 18 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,transmissionLine1.breakerStatus,transmissionLine2.breakerStatus) * Number of discrete states: 18 (transmissionLine2.breakerStatus,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,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 (111): * Single equations (assignments): 108 * 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.003101/0.3833, allocations: 2.612 MB / 475.2 MB, free: 2.492 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.002672/0.386, allocations: 1.995 MB / 477.2 MB, free: 456 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.386, allocations: 0 / 477.2 MB, free: 456 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.001775/0.3878, allocations: 1.385 MB / 478.6 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009778/0.3888, allocations: 168.2 kB / 478.7 MB, free: 14.86 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.01466/0.4034, allocations: 7.762 MB / 486.5 MB, free: 6.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/0.4046, allocations: 1.203 MB / 487.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009139/0.4055, allocations: 173.9 kB / 487.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007854/0.4063, allocations: 0.5227 MB / 488.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4064, allocations: 0 / 488.4 MB, free: 4.84 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).