Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.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.StructuredNetwork.DoubleNetworkWithLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_StructuredNetwork_DoubleNetworkWithLoads",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.001502/0.001502, allocations: 108.2 kB / 16.45 MB, free: 6.445 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.001628/0.001628, allocations: 188.3 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.241/1.241, 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.04445/0.04445, allocations: 8.095 MB / 299.3 MB, free: 6.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09332/0.09469, allocations: 51.51 MB / 465.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads): time 0.007019/0.1018, allocations: 6.137 MB / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003872/0.1057, allocations: 2.446 MB / 474.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.1061, allocations: 20 kB / 474.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000675/0.1068, allocations: 329.7 kB / 474.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001323/0.1081, allocations: 0.6484 MB / 475.1 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002898/0.1111, allocations: 1.486 MB / 476.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.1126, allocations: 1.462 MB / 478 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006432/0.1133, allocations: 0.521 MB / 478.5 MB, free: 5.555 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005706/0.1139, allocations: 0.5955 MB / 479.1 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007991/0.1147, allocations: 0.747 MB / 479.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001626/0.1149, allocations: 151.9 kB / 480 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006349/0.1155, allocations: 391.8 kB / 480.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.1157, allocations: 306.9 kB / 480.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000606/0.1164, allocations: 0.6921 MB / 481.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001627/0.118, allocations: 1.826 MB / 483.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.118, allocations: 4 kB / 483.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.118, allocations: 0 / 483.2 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.118, allocations: 0 / 483.2 MB, free: 0.8438 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.01196/0.13, allocations: 3.27 MB / 486.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.1301, allocations: 15.89 kB / 486.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001877/0.1303, allocations: 139.6 kB / 486.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000262/0.1305, allocations: 148.1 kB / 486.8 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.1316, allocations: 0.7735 MB / 487.6 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.1316, allocations: 82.38 kB / 487.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.1318, allocations: 104.2 kB / 487.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.1341, allocations: 1.526 MB / 489.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.1341, allocations: 3.938 kB / 489.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/0.1342, allocations: 36 kB / 489.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/0.1343, allocations: 20 kB / 489.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002087/0.1364, allocations: 1.476 MB / 490.8 MB, free: 9.133 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007108/0.1435, allocations: 6 MB / 496.8 MB, free: 2.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003441/0.1469, allocations: 3.753 MB / 0.4888 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.1484, allocations: 1.106 MB / 0.4899 GB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001333/0.1485, allocations: 33.27 kB / 0.49 GB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.654e-05/0.1486, allocations: 52.11 kB / 0.49 GB, free: 13.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=151): time 3.296e-06/0.1486, allocations: 4 kB / 0.49 GB, free: 13.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.03153/0.1801, allocations: 8.29 MB / 0.4981 GB, free: 5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.1802, allocations: 124.1 kB / 0.4982 GB, free: 4.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009728/0.1812, allocations: 0.6683 MB / 0.4989 GB, free: 4.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001942/0.1814, allocations: 65.64 kB / 0.4989 GB, free: 4.109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002669/0.1817, allocations: 350.8 kB / 0.4993 GB, free: 3.762 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004408/0.1821, allocations: 0.5266 MB / 0.4998 GB, free: 3.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005172/0.1827, allocations: 283.6 kB / 0.5001 GB, free: 2.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1828, allocations: 345.9 kB / 0.5004 GB, free: 2.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.1842, allocations: 0.9607 MB / 0.5013 GB, free: 1.641 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.1857, allocations: 1.082 MB / 0.5024 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1941/0.3798, allocations: 2.159 MB / 0.5045 GB, free: 43.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.253e-06/0.3799, allocations: 1.375 kB / 0.5045 GB, free: 43.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.01003/0.3899, allocations: 4.126 MB / 0.5085 GB, free: 42.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.39, allocations: 6.453 kB / 0.5085 GB, free: 42.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.39, allocations: 3.938 kB / 0.5085 GB, free: 42.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/0.4016, allocations: 4.202 MB / 0.5126 GB, free: 42.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.4027, allocations: 227.2 kB / 0.5128 GB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02114/0.4238, allocations: 13.13 MB / 0.5257 GB, free: 34.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.4251, allocations: 149.5 kB / 0.5258 GB, free: 34.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.4252, allocations: 51.81 kB / 0.5259 GB, free: 34.42 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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0004554/0.4256, allocations: 307.7 kB / 0.5262 GB, free: 34.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001946/0.4258, allocations: 113.9 kB / 0.5263 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00861/0.4345, allocations: 4.079 MB / 0.5303 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.4345, allocations: 20 kB / 0.5303 GB, free: 31.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.4345, allocations: 0 / 0.5303 GB, free: 31.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.4345, allocations: 11.31 kB / 0.5303 GB, free: 31.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009829/0.4444, allocations: 5.988 MB / 0.5361 GB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.4444, allocations: 0 / 0.5361 GB, free: 26.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004889/0.4449, allocations: 175.8 kB / 0.5363 GB, free: 26.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009142/0.454, allocations: 2.887 MB / 0.5391 GB, free: 23.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001597/0.4542, allocations: 35.92 kB / 0.5391 GB, free: 23.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01865/0.4729, allocations: 12.93 MB / 0.5518 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4729, allocations: 4 kB / 0.5518 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008762/0.4817, allocations: 3.95 MB / 0.5556 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000333/0.482, allocations: 212.2 kB / 0.5558 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.4822, allocations: 35.92 kB / 0.5559 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009812/0.4832, allocations: 89.47 kB / 0.556 GB, free: 5.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004192/0.4836, allocations: 130.4 kB / 0.5561 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001021/0.4837, allocations: 47.98 kB / 0.5561 GB, free: 5.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000527/0.4843, allocations: 463 kB / 0.5566 GB, free: 5.211 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4843, allocations: 3.938 kB / 0.5566 GB, free: 5.207 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001404/0.4857, allocations: 0.5557 MB / 0.5571 GB, free: 4.66 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 (105): * Single equations (assignments): 104 * 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,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008611/0.4943, allocations: 4.555 MB / 0.5616 GB, free: 84 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007323/0.5017, allocations: 3.446 MB / 0.5649 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.5017, allocations: 7.938 kB / 0.5649 GB, free: 12.63 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005302/0.507, allocations: 2.266 MB / 0.5672 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009171/0.5079, allocations: 147.6 kB / 0.5673 GB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02844/0.5364, allocations: 15.13 MB / 0.5821 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006175/0.537, allocations: 1.103 MB / 0.5831 GB, free: 9.844 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004933/0.5375, allocations: 147.7 kB / 0.5833 GB, free: 9.695 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005192/0.5381, allocations: 419.3 kB / 0.5837 GB, free: 9.285 MB / 414.1 MB Notification: Performance of SimCode: time 9.22e-07/0.5381, allocations: 0 / 0.5837 GB, free: 9.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07953/0.6176, allocations: 50.51 MB / 0.633 GB, free: 7.012 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.91, allocations: 16.53 kB / 0.633 GB, free: 7 MB / 462.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads_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_StructuredNetwork_DoubleNetworkWithLoads.fmu > PowerSysPro_PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads.pipe 2>&1)