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.001009/0.001009, allocations: 99.42 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.0009298/0.0009298, allocations: 185.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.228/1.228, 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.04383/0.04383, allocations: 8.088 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 72.12 kB / 414 MB, free: 22.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08682, allocations: 51.52 MB / 465.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MediumNetworks.DoubleNetwork): time 0.006373/0.09323, allocations: 5.916 MB / 471.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003789/0.09704, allocations: 2.333 MB / 473.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008026/0.09786, allocations: 23.94 kB / 473.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009197/0.0988, allocations: 313.8 kB / 474.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001847/0.1007, allocations: 0.6133 MB / 474.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002803/0.1035, allocations: 1.447 MB / 476.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001624/0.1051, allocations: 1.307 MB / 477.5 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004876/0.1056, allocations: 413 kB / 477.9 MB, free: 6.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000455/0.1061, allocations: 0.5409 MB / 478.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006973/0.1068, allocations: 0.6964 MB / 479.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.1069, allocations: 104 kB / 479.2 MB, free: 4.902 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005656/0.1075, allocations: 343.7 kB / 479.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1077, allocations: 274.9 kB / 479.8 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004817/0.1082, allocations: 0.6024 MB / 480.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.1096, allocations: 1.428 MB / 481.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1096, allocations: 0 / 481.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1096, allocations: 0 / 481.8 MB, free: 2.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.1096, allocations: 0 / 481.8 MB, free: 2.258 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.01211/0.1217, allocations: 3.192 MB / 485 MB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.1218, allocations: 15.89 kB / 485 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001774/0.122, allocations: 131.2 kB / 485.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002747/0.1223, allocations: 140.1 kB / 485.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009692/0.1232, allocations: 0.6838 MB / 486 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.34e-05/0.1233, allocations: 70.38 kB / 486.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/0.1235, allocations: 96.38 kB / 486.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001885/0.1254, allocations: 1.346 MB / 487.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/0.1254, allocations: 0 / 487.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.1255, allocations: 40 kB / 487.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1255, allocations: 20 kB / 487.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001791/0.1273, allocations: 1.281 MB / 488.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006291/0.1336, allocations: 5.211 MB / 494.1 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/0.1364, allocations: 3.119 MB / 497.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/0.1376, allocations: 0.9771 MB / 498.1 MB, free: 1.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001341/0.1378, allocations: 41.2 kB / 498.2 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.1378, allocations: 60.09 kB / 498.2 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of pre-optimization done (n=147): time 2.836e-06/0.1378, allocations: 0 / 498.2 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of matching and sorting (n=147): time 0.02614/0.164, allocations: 7.069 MB / 0.4935 GB, free: 9.867 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.431e-05/0.1641, allocations: 116.1 kB / 0.4936 GB, free: 9.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000816/0.1649, allocations: 0.641 MB / 0.4942 GB, free: 9.082 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001512/0.1651, allocations: 65.7 kB / 0.4943 GB, free: 9.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002239/0.1653, allocations: 342.8 kB / 0.4946 GB, free: 8.672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003858/0.1657, allocations: 0.5111 MB / 0.4951 GB, free: 8.156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004279/0.1661, allocations: 279.5 kB / 0.4954 GB, free: 7.875 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.1663, allocations: 341.9 kB / 0.4957 GB, free: 7.535 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.1675, allocations: 0.863 MB / 0.4965 GB, free: 6.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.1688, allocations: 0.9768 MB / 0.4975 GB, free: 5.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00261/0.1714, allocations: 1.935 MB / 0.4994 GB, free: 3.762 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1714, allocations: 0 / 0.4994 GB, free: 3.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.2126/0.384, allocations: 3.825 MB / 0.5031 GB, free: 43.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.384, allocations: 6.531 kB / 0.5031 GB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3841, allocations: 0 / 0.5031 GB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01149/0.3955, allocations: 3.935 MB / 0.507 GB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009233/0.3965, allocations: 228.8 kB / 0.5072 GB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02056/0.4171, allocations: 11.46 MB / 0.5184 GB, free: 37.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/0.4183, allocations: 140.1 kB / 0.5185 GB, free: 37.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.4184, allocations: 56.39 kB / 0.5186 GB, free: 37.46 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.0004005/0.4188, allocations: 261.5 kB / 0.5188 GB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/0.419, allocations: 105.9 kB / 0.5189 GB, free: 37.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009158/0.4282, allocations: 3.803 MB / 0.5226 GB, free: 35.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.4282, allocations: 19.41 kB / 0.5226 GB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.4282, allocations: 0 / 0.5226 GB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4282, allocations: 7.312 kB / 0.5227 GB, free: 35.67 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009346/0.4376, allocations: 5.314 MB / 0.5278 GB, free: 33.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.4376, allocations: 3.984 kB / 0.5278 GB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004906/0.4381, allocations: 175.7 kB / 0.528 GB, free: 33.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008927/0.447, allocations: 2.736 MB / 0.5307 GB, free: 32.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.4471, allocations: 28 kB / 0.5307 GB, free: 32.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/0.464, allocations: 11.25 MB / 0.5417 GB, free: 20.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.4641, allocations: 0 / 0.5417 GB, free: 20.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008293/0.4724, allocations: 3.676 MB / 0.5453 GB, free: 17.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002346/0.4726, allocations: 210.4 kB / 0.5455 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.4728, allocations: 32 kB / 0.5455 GB, free: 17.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009413/0.4737, allocations: 91.48 kB / 0.5456 GB, free: 16.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002905/0.474, allocations: 122.4 kB / 0.5457 GB, free: 16.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.1e-05/0.4741, allocations: 55.98 kB / 0.5458 GB, free: 16.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004496/0.4746, allocations: 431 kB / 0.5462 GB, free: 16.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4746, allocations: 0 / 0.5462 GB, free: 16.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001275/0.4759, allocations: 0.5409 MB / 0.5467 GB, free: 15.8 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.008279/0.4842, allocations: 4.274 MB / 0.5509 GB, free: 11.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006266/0.4904, allocations: 3.195 MB / 0.554 GB, free: 8.297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.4905, allocations: 4.656 kB / 0.554 GB, free: 8.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004697/0.4952, allocations: 2.122 MB / 0.5561 GB, free: 6.168 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008815/0.4961, allocations: 139.5 kB / 0.5562 GB, free: 6.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02545/0.5215, allocations: 14.08 MB / 0.57 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006535/0.5222, allocations: 1.092 MB / 0.571 GB, free: 6.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004981/0.5227, allocations: 151.4 kB / 0.5712 GB, free: 6.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004938/0.5232, allocations: 407.3 kB / 0.5716 GB, free: 6.18 MB / 398.1 MB Notification: Performance of SimCode: time 2.364e-06/0.5233, allocations: 0 / 0.5716 GB, free: 6.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07892/0.6022, allocations: 45.95 MB / 0.6164 GB, free: 8.441 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.73, allocations: 10.42 kB / 0.6164 GB, free: 8.434 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)