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.00106/0.00106, allocations: 106.3 kB / 16.45 MB, free: 6.398 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.001129/0.001129, allocations: 188 kB / 17.38 MB, free: 5.668 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.246/1.246, allocations: 222.9 MB / 241.1 MB, free: 14.96 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04435/0.04435, allocations: 8.094 MB / 299.3 MB, free: 6.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00111/0.00111, allocations: 59.91 kB / 414 MB, free: 22.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08716/0.08828, allocations: 51.52 MB / 465.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.BreakerTests.DistrictWithOppositeBreakers): time 0.007333/0.09565, allocations: 6.489 MB / 472 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003371/0.09906, allocations: 1.479 MB / 473.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000824/0.09994, allocations: 23.94 kB / 473.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009703/0.1009, allocations: 298 kB / 473.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001931/0.1029, allocations: 0.551 MB / 474.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002608/0.1055, allocations: 1.428 MB / 475.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.1071, allocations: 1.167 MB / 476.9 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005375/0.1076, allocations: 404.8 kB / 477.3 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005425/0.1082, allocations: 490.1 kB / 477.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006829/0.1089, allocations: 0.6497 MB / 478.5 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.109, allocations: 96 kB / 478.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005625/0.1095, allocations: 331.8 kB / 478.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001769/0.1097, allocations: 239 kB / 479.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004661/0.1102, allocations: 0.5635 MB / 479.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001301/0.1115, allocations: 1.327 MB / 481 MB, free: 3.055 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1115, allocations: 4 kB / 481 MB, free: 3.051 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1115, allocations: 0 / 481 MB, free: 3.051 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1116, allocations: 0 / 481 MB, free: 3.051 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.01149/0.1231, allocations: 2.974 MB / 484 MB, free: 20 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.1231, allocations: 15.89 kB / 484 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002735/0.1234, allocations: 139 kB / 484.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.1237, allocations: 136.2 kB / 484.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009458/0.1247, allocations: 0.6129 MB / 484.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.1248, allocations: 138.3 kB / 485 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.125, allocations: 88.38 kB / 485.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.127, allocations: 1.287 MB / 486.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.1271, allocations: 4 kB / 486.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-05/0.1272, allocations: 36 kB / 486.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.1272, allocations: 16 kB / 486.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001847/0.1291, allocations: 1.226 MB / 487.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006335/0.1354, allocations: 5.012 MB / 492.7 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002534/0.138, allocations: 2.234 MB / 494.9 MB, free: 4.453 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.1393, allocations: 0.9601 MB / 495.9 MB, free: 3.492 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.1394, allocations: 33.27 kB / 495.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.1395, allocations: 55.81 kB / 496 MB, free: 3.398 MB / 366.1 MB Notification: Performance of pre-optimization done (n=148): time 2.644e-06/0.1395, allocations: 0 / 496 MB, free: 3.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=148): time 0.03139/0.1709, allocations: 7.939 MB / 0.4921 GB, free: 11.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.171, allocations: 149.8 kB / 0.4922 GB, free: 11.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008241/0.1719, allocations: 0.5663 MB / 0.4928 GB, free: 10.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.1721, allocations: 61.69 kB / 0.4928 GB, free: 10.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002207/0.1723, allocations: 302.8 kB / 0.4931 GB, free: 10.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004273/0.1727, allocations: 0.5111 MB / 0.4936 GB, free: 9.785 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004666/0.1732, allocations: 275.6 kB / 0.4939 GB, free: 9.512 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.1733, allocations: 341.9 kB / 0.4942 GB, free: 9.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.1747, allocations: 0.8318 MB / 0.495 GB, free: 8.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.1761, allocations: 0.962 MB / 0.496 GB, free: 7.371 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002657/0.1788, allocations: 1.877 MB / 0.4978 GB, free: 5.496 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1788, allocations: 0 / 0.4978 GB, free: 5.496 MB / 382.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.008981/0.1878, allocations: 3.659 MB / 0.5014 GB, free: 1.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.1879, allocations: 4 kB / 0.5014 GB, free: 1.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.1879, allocations: 4 kB / 0.5014 GB, free: 1.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2199/0.4078, allocations: 2.328 MB / 0.5037 GB, free: 43.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000946/0.4088, allocations: 217.9 kB / 0.5039 GB, free: 43.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01796/0.4268, allocations: 10.84 MB / 0.5145 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.4278, allocations: 141.7 kB / 0.5146 GB, free: 38.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.428, allocations: 50.55 kB / 0.5146 GB, free: 38.44 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.0004181/0.4284, allocations: 258.2 kB / 0.5149 GB, free: 38.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002091/0.4286, allocations: 103.5 kB / 0.515 GB, free: 38.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008626/0.4372, allocations: 3.616 MB / 0.5185 GB, free: 36.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.4373, allocations: 17.61 kB / 0.5185 GB, free: 36.78 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.247e-06/0.4373, allocations: 1.031 kB / 0.5185 GB, free: 36.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/0.4373, allocations: 12.06 kB / 0.5185 GB, free: 36.78 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009633/0.4469, allocations: 5.121 MB / 0.5235 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.447, allocations: 0 / 0.5235 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.4475, allocations: 169.5 kB / 0.5237 GB, free: 34.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008304/0.4558, allocations: 2.228 MB / 0.5259 GB, free: 34.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.912e-05/0.4559, allocations: 31.88 kB / 0.5259 GB, free: 34.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0155/0.4714, allocations: 10.68 MB / 0.5363 GB, free: 26.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4715, allocations: 4.562 kB / 0.5363 GB, free: 26.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007926/0.4794, allocations: 3.533 MB / 0.5398 GB, free: 23.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002385/0.4797, allocations: 199.8 kB / 0.54 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.4798, allocations: 24 kB / 0.54 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007884/0.4806, allocations: 77.81 kB / 0.5401 GB, free: 22.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003345/0.481, allocations: 128.1 kB / 0.5402 GB, free: 22.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.555e-05/0.4811, allocations: 51.98 kB / 0.5403 GB, free: 22.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000383/0.4814, allocations: 378.5 kB / 0.5406 GB, free: 22.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4815, allocations: 0 / 0.5406 GB, free: 22.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001333/0.4828, allocations: 0.5307 MB / 0.5411 GB, free: 21.86 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.007705/0.4905, allocations: 4.149 MB / 0.5452 GB, free: 17.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005255/0.4958, allocations: 2.891 MB / 0.548 GB, free: 14.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.4958, allocations: 4 kB / 0.548 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003617/0.4994, allocations: 1.871 MB / 0.5498 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007406/0.5002, allocations: 119.3 kB / 0.55 GB, free: 12.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02243/0.5226, allocations: 13.23 MB / 0.5629 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006237/0.5233, allocations: 1.057 MB / 0.5639 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004258/0.5237, allocations: 131.2 kB / 0.564 GB, free: 14.24 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/0.5242, allocations: 371.3 kB / 0.5644 GB, free: 13.88 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5242, allocations: 0 / 0.5644 GB, free: 13.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07368/0.5979, allocations: 44.08 MB / 0.6074 GB, free: 2.023 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.71, allocations: 10.45 kB / 0.6074 GB, free: 2.016 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)