Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.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.MediumNetworks.DoubleNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.MediumNetworks.DoubleNetwork,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_MediumNetworks_DoubleNetwork",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.001722/0.001722, allocations: 106.7 kB / 16.45 MB, free: 6.402 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.001893/0.001893, allocations: 182.4 kB / 17.38 MB, free: 5.676 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.349/1.349, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05073/0.05073, allocations: 8.089 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00172/0.00172, allocations: 67.89 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08753, allocations: 51.5 MB / 465.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.DoubleNetwork): time 0.006882/0.09446, allocations: 5.924 MB / 471.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004051/0.09854, allocations: 2.337 MB / 473.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004727/0.09904, allocations: 16 kB / 473.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007865/0.09988, allocations: 313.8 kB / 474.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001559/0.1015, allocations: 0.6055 MB / 474.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002909/0.1044, allocations: 1.463 MB / 476.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00183/0.1062, allocations: 1.303 MB / 477.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005754/0.1068, allocations: 413 kB / 477.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006436/0.1074, allocations: 0.5486 MB / 478.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008351/0.1083, allocations: 0.6963 MB / 479.1 MB, free: 5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.1085, allocations: 104 kB / 479.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007/0.1092, allocations: 339.8 kB / 479.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002307/0.1094, allocations: 266.9 kB / 479.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000587/0.11, allocations: 0.6063 MB / 480.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001579/0.1116, allocations: 1.424 MB / 481.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1116, allocations: 0 / 481.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1116, allocations: 0 / 481.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1116, allocations: 4 kB / 481.8 MB, free: 2.262 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: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.01219/0.1238, allocations: 3.188 MB / 485 MB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.1239, allocations: 15.89 kB / 485 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001858/0.1241, allocations: 131.2 kB / 485.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002787/0.1244, allocations: 140.1 kB / 485.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009964/0.1254, allocations: 0.6838 MB / 486 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.727e-05/0.1254, allocations: 74.38 kB / 486.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001512/0.1256, allocations: 96.38 kB / 486.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002091/0.1277, allocations: 1.346 MB / 487.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.1277, allocations: 3.938 kB / 487.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.1278, allocations: 40 kB / 487.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.1279, allocations: 20 kB / 487.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001965/0.1298, allocations: 1.277 MB / 488.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006784/0.1366, allocations: 5.219 MB / 494.1 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003354/0.14, allocations: 3.115 MB / 497.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.1414, allocations: 0.9771 MB / 498.1 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001491/0.1415, allocations: 41.2 kB / 498.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.1416, allocations: 56.05 kB / 498.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of pre-optimization done (n=147): time 3.417e-06/0.1416, allocations: 0 / 498.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of matching and sorting (n=147): time 0.02736/0.169, allocations: 7.07 MB / 0.4935 GB, free: 9.871 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1691, allocations: 124.1 kB / 0.4936 GB, free: 9.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009972/0.1701, allocations: 0.6371 MB / 0.4942 GB, free: 9.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001969/0.1703, allocations: 65.7 kB / 0.4943 GB, free: 9.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002812/0.1706, allocations: 334.8 kB / 0.4946 GB, free: 8.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004856/0.1711, allocations: 0.5111 MB / 0.4951 GB, free: 8.164 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004847/0.1716, allocations: 275.6 kB / 0.4954 GB, free: 7.887 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.1718, allocations: 349.9 kB / 0.4957 GB, free: 7.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.1731, allocations: 0.8552 MB / 0.4965 GB, free: 6.684 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001462/0.1746, allocations: 0.9845 MB / 0.4975 GB, free: 5.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002956/0.1775, allocations: 1.939 MB / 0.4994 GB, free: 3.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.1776, allocations: 0 / 0.4994 GB, free: 3.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.1947/0.3723, allocations: 3.818 MB / 0.5031 GB, free: 43.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.3724, allocations: 5.125 kB / 0.5031 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3724, allocations: 3.094 kB / 0.5031 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01121/0.3836, allocations: 3.938 MB / 0.507 GB, free: 43.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009008/0.3845, allocations: 225.3 kB / 0.5072 GB, free: 43.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0205/0.4051, allocations: 11.46 MB / 0.5184 GB, free: 37.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.4062, allocations: 145.2 kB / 0.5185 GB, free: 37.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4064, allocations: 50.92 kB / 0.5186 GB, free: 37.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 134 * 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 {(32,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003935/0.4068, allocations: 264.2 kB / 0.5188 GB, free: 37.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.4069, allocations: 109.8 kB / 0.5189 GB, free: 37.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008879/0.4158, allocations: 3.798 MB / 0.5226 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.4159, allocations: 19.31 kB / 0.5226 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.4159, allocations: 3.719 kB / 0.5226 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.4159, allocations: 7.312 kB / 0.5226 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009251/0.4251, allocations: 5.312 MB / 0.5278 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.4252, allocations: 3.75 kB / 0.5278 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.4257, allocations: 179.8 kB / 0.528 GB, free: 33.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008963/0.4346, allocations: 2.722 MB / 0.5307 GB, free: 32.4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.4348, allocations: 35.98 kB / 0.5307 GB, free: 32.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01693/0.4517, allocations: 11.26 MB / 0.5417 GB, free: 20.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4517, allocations: 0 / 0.5417 GB, free: 20.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007953/0.4597, allocations: 3.669 MB / 0.5453 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001966/0.4599, allocations: 210.4 kB / 0.5455 GB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.4601, allocations: 35.94 kB / 0.5455 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000909/0.461, allocations: 87.92 kB / 0.5456 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003216/0.4613, allocations: 122.4 kB / 0.5457 GB, free: 16.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.683e-05/0.4614, allocations: 51.92 kB / 0.5458 GB, free: 16.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004555/0.4619, allocations: 439 kB / 0.5462 GB, free: 16.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4619, allocations: 4 kB / 0.5462 GB, free: 16.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001332/0.4632, allocations: 0.5331 MB / 0.5467 GB, free: 15.84 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 105 * 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 {(32,32)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008165/0.4714, allocations: 4.278 MB / 0.5509 GB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006126/0.4775, allocations: 3.191 MB / 0.554 GB, free: 8.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.4776, allocations: 0.6562 kB / 0.554 GB, free: 8.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004522/0.4821, allocations: 2.125 MB / 0.5561 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008194/0.4829, allocations: 146.9 kB / 0.5562 GB, free: 6.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02683/0.5098, allocations: 14.07 MB / 0.57 GB, free: 7.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008901/0.5107, allocations: 1.092 MB / 0.571 GB, free: 6.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005737/0.5113, allocations: 143.5 kB / 0.5712 GB, free: 6.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005936/0.5119, allocations: 411.3 kB / 0.5716 GB, free: 6.223 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5119, allocations: 0 / 0.5716 GB, free: 6.223 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08932/0.6012, allocations: 45.96 MB / 0.6164 GB, free: 8.477 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.03, allocations: 14.48 kB / 0.6165 GB, free: 8.465 MB / 446.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork_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_MediumNetworks_DoubleNetwork.fmu > PowerSysPro_PowerSysPro.Examples.MediumNetworks.DoubleNetwork.pipe 2>&1)