Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_BreakerTests_DistrictWithOppositeBreakers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_BreakerTests_DistrictWithOppositeBreakers",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.001116/0.001116, allocations: 104.7 kB / 16.31 MB, free: 5.879 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.001097/0.001097, allocations: 191.2 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04339/0.04339, allocations: 8.103 MB / 299.2 MB, free: 6.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 71.89 kB / 361.8 MB, free: 8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1731/0.1744, allocations: 51.5 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers): time 0.004867/0.1793, allocations: 6.472 MB / 419.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.1815, allocations: 1.49 MB / 421.3 MB, free: 17.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003065/0.1819, allocations: 16 kB / 421.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005051/0.1824, allocations: 306 kB / 421.6 MB, free: 17.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009507/0.1833, allocations: 0.5471 MB / 422.2 MB, free: 16.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.1853, allocations: 1.419 MB / 423.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007744/0.1861, allocations: 1.155 MB / 424.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003848/0.1865, allocations: 404.8 kB / 425.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002987/0.1868, allocations: 490.1 kB / 425.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005085/0.1873, allocations: 0.6458 MB / 426.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.1875, allocations: 96 kB / 426.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005329/0.188, allocations: 331.7 kB / 426.7 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001207/0.1881, allocations: 243 kB / 426.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003253/0.1885, allocations: 0.5635 MB / 427.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008786/0.1894, allocations: 1.308 MB / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1894, allocations: 0 / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1894, allocations: 0 / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1894, allocations: 0 / 428.8 MB, free: 10.05 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.01062/0.2, allocations: 2.956 MB / 431.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.2001, allocations: 11.89 kB / 431.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/0.2002, allocations: 131.2 kB / 431.9 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.2005, allocations: 131.5 kB / 432 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.2011, allocations: 0.6164 MB / 432.6 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.34e-05/0.2012, allocations: 130.3 kB / 432.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.2013, allocations: 92.38 kB / 432.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.2029, allocations: 1.291 MB / 434.1 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2029, allocations: 4 kB / 434.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-05/0.203, allocations: 36 kB / 434.2 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.203, allocations: 20 kB / 434.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/0.2045, allocations: 1.218 MB / 435.4 MB, free: 3.285 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.2102, allocations: 5.039 MB / 440.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002562/0.2127, allocations: 2.23 MB / 442.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.214, allocations: 0.9484 MB / 443.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.2142, allocations: 37.27 kB / 443.7 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.478e-05/0.2142, allocations: 51.88 kB / 443.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=148): time 3.126e-06/0.2142, allocations: 0 / 443.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=148): time 0.03261/0.2468, allocations: 7.942 MB / 451.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.247, allocations: 145.8 kB / 451.8 MB, free: 2.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000741/0.2477, allocations: 0.5546 MB / 452.4 MB, free: 1.688 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001864/0.2479, allocations: 65.64 kB / 452.4 MB, free: 1.617 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.2481, allocations: 306.3 kB / 452.7 MB, free: 1.312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004906/0.2486, allocations: 496.7 kB / 453.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00047/0.2491, allocations: 287.4 kB / 453.5 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.2493, allocations: 341.9 kB / 453.8 MB, free: 196 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00135/0.2506, allocations: 0.8318 MB / 454.7 MB, free: 15.36 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.252, allocations: 0.962 MB / 455.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002741/0.2548, allocations: 1.873 MB / 457.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.2548, allocations: 0 / 457.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.00958/0.2644, allocations: 3.643 MB / 461.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.2645, allocations: 14.17 kB / 461.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.2645, allocations: 0 / 461.2 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009596/0.2741, allocations: 2.358 MB / 463.5 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008532/0.275, allocations: 211.7 kB / 463.7 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01976/0.2948, allocations: 10.82 MB / 474.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00115/0.296, allocations: 142.5 kB / 474.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.2961, allocations: 51.98 kB / 474.7 MB, free: 11.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,48)} Notification: Performance of prepare postOptimizeDAE: time 0.0004671/0.2966, allocations: 253.7 kB / 475 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002155/0.2968, allocations: 98.78 kB / 475.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009444/0.3062, allocations: 3.624 MB / 478.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.991e-05/0.3063, allocations: 16 kB / 478.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3063, allocations: 0 / 478.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.3063, allocations: 7.969 kB / 478.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.3174, allocations: 5.135 MB / 483.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.3174, allocations: 0 / 483.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005531/0.318, allocations: 167.7 kB / 484 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009507/0.3275, allocations: 2.24 MB / 486.3 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/0.3278, allocations: 31.98 kB / 486.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/0.3472, allocations: 10.67 MB / 497 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.3473, allocations: 7.922 kB / 497 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009255/0.3565, allocations: 3.526 MB / 0.4888 GB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002355/0.3568, allocations: 199.4 kB / 0.489 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/0.357, allocations: 27.94 kB / 0.489 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008892/0.3579, allocations: 83.27 kB / 0.4891 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004034/0.3583, allocations: 126.4 kB / 0.4892 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.3584, allocations: 47.98 kB / 0.4892 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004521/0.3589, allocations: 375.1 kB / 0.4896 GB, free: 252 kB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3589, allocations: 0 / 0.4896 GB, free: 252 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001284/0.3602, allocations: 0.531 MB / 0.4901 GB, free: 15.71 MB / 382.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: 1 (n.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(20,48)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009481/0.3697, allocations: 4.125 MB / 0.4941 GB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007184/0.3769, allocations: 2.936 MB / 0.497 GB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.3769, allocations: 0 / 0.497 GB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004415/0.3813, allocations: 1.862 MB / 0.4988 GB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008786/0.3822, allocations: 137.4 kB / 0.4989 GB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1684/0.5506, allocations: 13.57 MB / 0.5122 GB, free: 90.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004851/0.5511, allocations: 1.057 MB / 0.5132 GB, free: 89.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004778/0.5516, allocations: 133.3 kB / 0.5134 GB, free: 89.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004176/0.552, allocations: 366.3 kB / 0.5137 GB, free: 89.21 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.552, allocations: 1.375 kB / 0.5137 GB, free: 89.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05756/0.6096, allocations: 43.57 MB / 0.5563 GB, free: 52.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.13, allocations: 10.06 kB / 0.5563 GB, free: 52.38 MB / 382.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_BreakerTests_DistrictWithOppositeBreakers.fmu > PowerSysPro_PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers.pipe 2>&1)