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.001199/0.001199, allocations: 102.6 kB / 16.45 MB, free: 6.438 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.001174/0.001174, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.336/1.336, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05248/0.05248, allocations: 8.1 MB / 299.3 MB, free: 6.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 59.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08681/0.08858, allocations: 51.52 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers): time 0.007669/0.09629, allocations: 6.481 MB / 472 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002953/0.09927, allocations: 1.483 MB / 473.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.09963, allocations: 16 kB / 473.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.1003, allocations: 302 kB / 473.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001124/0.1014, allocations: 0.555 MB / 474.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002724/0.1042, allocations: 1.424 MB / 475.8 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.1056, allocations: 1.178 MB / 476.9 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005394/0.1062, allocations: 392.8 kB / 477.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005264/0.1067, allocations: 498.1 kB / 477.8 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007882/0.1075, allocations: 0.638 MB / 478.5 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.1077, allocations: 96 kB / 478.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006356/0.1083, allocations: 335.8 kB / 478.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002187/0.1086, allocations: 247 kB / 479.1 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.1091, allocations: 0.5596 MB / 479.7 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001512/0.1106, allocations: 1.331 MB / 481 MB, free: 3.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1106, allocations: 0 / 481 MB, free: 3.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1106, allocations: 0 / 481 MB, free: 3.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1107, allocations: 0 / 481 MB, free: 3.086 MB / 350.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.01119/0.1219, allocations: 2.974 MB / 484 MB, free: 56 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1219, allocations: 19.83 kB / 484 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001923/0.1221, allocations: 131.1 kB / 484.1 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002568/0.1224, allocations: 128.2 kB / 484.3 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000937/0.1233, allocations: 0.6208 MB / 484.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.1235, allocations: 134.3 kB / 485 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.1236, allocations: 96.38 kB / 485.1 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.1257, allocations: 1.291 MB / 486.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.1258, allocations: 0 / 486.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.693e-05/0.1259, allocations: 32 kB / 486.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.109e-05/0.1259, allocations: 20 kB / 486.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001976/0.1279, allocations: 1.218 MB / 487.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00671/0.1346, allocations: 5.028 MB / 492.7 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002846/0.1375, allocations: 2.226 MB / 494.9 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001445/0.1389, allocations: 0.9562 MB / 495.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001454/0.1391, allocations: 41.27 kB / 495.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.124e-05/0.1391, allocations: 51.88 kB / 496 MB, free: 3.434 MB / 366.1 MB Notification: Performance of pre-optimization done (n=148): time 3.046e-06/0.1392, allocations: 0 / 496 MB, free: 3.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=148): time 0.03292/0.1721, allocations: 7.942 MB / 0.4921 GB, free: 11.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.1722, allocations: 145.8 kB / 0.4922 GB, free: 11.28 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008282/0.1731, allocations: 0.5663 MB / 0.4928 GB, free: 10.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.1733, allocations: 57.7 kB / 0.4928 GB, free: 10.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.1735, allocations: 302.8 kB / 0.4931 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004995/0.174, allocations: 0.5189 MB / 0.4936 GB, free: 9.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004809/0.1745, allocations: 275.5 kB / 0.4939 GB, free: 9.543 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1747, allocations: 341.9 kB / 0.4942 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/0.1761, allocations: 0.8356 MB / 0.495 GB, free: 8.367 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.1776, allocations: 0.962 MB / 0.496 GB, free: 7.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00298/0.1806, allocations: 1.869 MB / 0.4978 GB, free: 5.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1806, allocations: 4 kB / 0.4978 GB, free: 5.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.009631/0.1902, allocations: 3.652 MB / 0.5014 GB, free: 1.863 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.1903, allocations: 8 kB / 0.5014 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1903, allocations: 0 / 0.5014 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1823/0.3726, allocations: 2.337 MB / 0.5037 GB, free: 43.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009123/0.3735, allocations: 214 kB / 0.5039 GB, free: 43.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/0.392, allocations: 10.84 MB / 0.5145 GB, free: 38.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.3931, allocations: 145 kB / 0.5146 GB, free: 38.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.3932, allocations: 51.58 kB / 0.5146 GB, free: 38.5 MB / 382.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.000384/0.3936, allocations: 257.5 kB / 0.5149 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.3938, allocations: 103.6 kB / 0.515 GB, free: 38.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00902/0.4028, allocations: 3.613 MB / 0.5185 GB, free: 36.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/0.4029, allocations: 16.94 kB / 0.5185 GB, free: 36.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4029, allocations: 0 / 0.5185 GB, free: 36.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.4029, allocations: 12.19 kB / 0.5185 GB, free: 36.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0101/0.413, allocations: 5.124 MB / 0.5236 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/0.4131, allocations: 3 kB / 0.5236 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.4136, allocations: 168.3 kB / 0.5237 GB, free: 34.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00848/0.4221, allocations: 2.214 MB / 0.5259 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001475/0.4223, allocations: 39.8 kB / 0.5259 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01574/0.438, allocations: 10.68 MB / 0.5363 GB, free: 26.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.438, allocations: 0 / 0.5363 GB, free: 26.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007956/0.446, allocations: 3.537 MB / 0.5398 GB, free: 23.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.4463, allocations: 199.8 kB / 0.54 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/0.4464, allocations: 28 kB / 0.54 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008787/0.4473, allocations: 77.47 kB / 0.5401 GB, free: 22.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004353/0.4478, allocations: 126.4 kB / 0.5402 GB, free: 22.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.4479, allocations: 47.06 kB / 0.5403 GB, free: 22.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004188/0.4483, allocations: 383.1 kB / 0.5406 GB, free: 22.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4483, allocations: 0 / 0.5406 GB, free: 22.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001337/0.4497, allocations: 0.5307 MB / 0.5411 GB, free: 21.92 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.008237/0.4579, allocations: 4.136 MB / 0.5452 GB, free: 17.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005897/0.4638, allocations: 2.908 MB / 0.548 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4639, allocations: 0 / 0.548 GB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00406/0.4679, allocations: 1.869 MB / 0.5498 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000992/0.469, allocations: 110.5 kB / 0.5499 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02491/0.4939, allocations: 13.24 MB / 0.5629 GB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009069/0.4948, allocations: 1.054 MB / 0.5639 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005294/0.4954, allocations: 135.2 kB / 0.564 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005545/0.496, allocations: 371.3 kB / 0.5644 GB, free: 13.95 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.496, allocations: 3.609 kB / 0.5644 GB, free: 13.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08994/0.5859, allocations: 44.06 MB / 0.6074 GB, free: 2.094 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.91, allocations: 14.45 kB / 0.6074 GB, free: 2.082 MB / 430.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)