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.001287/0.001287, allocations: 101.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.001179/0.001179, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.342/1.342, allocations: 222.9 MB / 241.1 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05021/0.05021, allocations: 8.093 MB / 299.3 MB, free: 6.66 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 67.89 kB / 414 MB, free: 22.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09231/0.0941, allocations: 51.52 MB / 465.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.StructuredNetwork.DoubleNetworkWithLoads): time 0.00706/0.1012, allocations: 6.13 MB / 471.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004168/0.1054, allocations: 2.442 MB / 474.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004073/0.1058, allocations: 23.94 kB / 474.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007177/0.1066, allocations: 329.8 kB / 474.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001337/0.1079, allocations: 0.6483 MB / 475.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002822/0.1108, allocations: 1.49 MB / 476.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001827/0.1126, allocations: 1.462 MB / 478 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007078/0.1133, allocations: 0.521 MB / 478.5 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006471/0.114, allocations: 0.5916 MB / 479.1 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009051/0.1149, allocations: 0.7549 MB / 479.9 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001905/0.1151, allocations: 144 kB / 480 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007265/0.1158, allocations: 391.7 kB / 480.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002783/0.1161, allocations: 310.9 kB / 480.7 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000701/0.1168, allocations: 0.696 MB / 481.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002008/0.1188, allocations: 1.822 MB / 483.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1188, allocations: 4 kB / 483.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1189, allocations: 0 / 483.2 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.1189, allocations: 0 / 483.2 MB, free: 0.8672 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.01278/0.1317, allocations: 3.266 MB / 486.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.1317, allocations: 11.89 kB / 486.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002125/0.1319, allocations: 143.6 kB / 486.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003013/0.1323, allocations: 144.1 kB / 486.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.1335, allocations: 0.7813 MB / 487.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.291e-05/0.1335, allocations: 78.31 kB / 487.7 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.1337, allocations: 104.4 kB / 487.8 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002492/0.1362, allocations: 1.518 MB / 489.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.1362, allocations: 3.938 kB / 489.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/0.1364, allocations: 40 kB / 489.3 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.1364, allocations: 23.98 kB / 489.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002335/0.1387, allocations: 1.468 MB / 490.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008331/0.1471, allocations: 6 MB / 496.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003831/0.1509, allocations: 3.753 MB / 0.4888 GB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.1525, allocations: 1.102 MB / 0.4899 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001534/0.1527, allocations: 37.27 kB / 0.4899 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.153e-05/0.1528, allocations: 64.11 kB / 0.49 GB, free: 13.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=151): time 3.186e-06/0.1528, allocations: 0 / 0.49 GB, free: 13.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.03299/0.1858, allocations: 8.286 MB / 0.4981 GB, free: 5.031 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.1859, allocations: 120.1 kB / 0.4982 GB, free: 4.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.1872, allocations: 0.6683 MB / 0.4989 GB, free: 4.215 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002342/0.1874, allocations: 65.7 kB / 0.4989 GB, free: 4.145 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003133/0.1877, allocations: 350.8 kB / 0.4993 GB, free: 3.797 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006892/0.1884, allocations: 0.5188 MB / 0.4998 GB, free: 3.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005366/0.189, allocations: 283.5 kB / 0.5 GB, free: 2.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.1892, allocations: 357.9 kB / 0.5004 GB, free: 2.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.1908, allocations: 0.9607 MB / 0.5013 GB, free: 1.672 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.1926, allocations: 1.082 MB / 0.5024 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1825/0.3751, allocations: 2.154 MB / 0.5045 GB, free: 43.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3751, allocations: 0 / 0.5045 GB, free: 43.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.01003/0.3852, allocations: 4.122 MB / 0.5085 GB, free: 42.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.3852, allocations: 5.5 kB / 0.5085 GB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3852, allocations: 9.234 kB / 0.5085 GB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01171/0.397, allocations: 4.199 MB / 0.5126 GB, free: 42.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000983/0.398, allocations: 237.2 kB / 0.5128 GB, free: 42.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02211/0.4201, allocations: 13.14 MB / 0.5257 GB, free: 34.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.4213, allocations: 141.2 kB / 0.5258 GB, free: 34.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.4214, allocations: 54.52 kB / 0.5259 GB, free: 34.57 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.000486/0.4219, allocations: 307 kB / 0.5262 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.4221, allocations: 113 kB / 0.5263 GB, free: 34.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00896/0.4311, allocations: 4.076 MB / 0.5302 GB, free: 32.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.4312, allocations: 20 kB / 0.5303 GB, free: 32.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.4312, allocations: 0 / 0.5303 GB, free: 32.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/0.4312, allocations: 14.86 kB / 0.5303 GB, free: 32.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.4417, allocations: 5.99 MB / 0.5361 GB, free: 26.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-05/0.4418, allocations: 0 / 0.5361 GB, free: 26.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005771/0.4424, allocations: 175.7 kB / 0.5363 GB, free: 26.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00944/0.4518, allocations: 2.887 MB / 0.5391 GB, free: 23.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002878/0.4521, allocations: 39.92 kB / 0.5391 GB, free: 23.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02063/0.4728, allocations: 12.92 MB / 0.5518 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4728, allocations: 0 / 0.5518 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008776/0.4816, allocations: 3.95 MB / 0.5556 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/0.4819, allocations: 216.8 kB / 0.5558 GB, free: 6.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.4821, allocations: 27.94 kB / 0.5559 GB, free: 6.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001098/0.4833, allocations: 96.5 kB / 0.556 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005125/0.4838, allocations: 134.3 kB / 0.5561 GB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.4839, allocations: 49.02 kB / 0.5561 GB, free: 5.805 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006245/0.4846, allocations: 463 kB / 0.5566 GB, free: 5.355 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4846, allocations: 0 / 0.5566 GB, free: 5.355 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001782/0.4864, allocations: 0.5561 MB / 0.5571 GB, free: 4.809 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.009186/0.4956, allocations: 4.566 MB / 0.5616 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008868/0.5045, allocations: 3.448 MB / 0.5649 GB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/0.5045, allocations: 4.656 kB / 0.5649 GB, free: 12.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006176/0.5107, allocations: 2.26 MB / 0.5672 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.5121, allocations: 147.9 kB / 0.5673 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0345/0.5466, allocations: 15.12 MB / 0.5821 GB, free: 11.12 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.5476, allocations: 1.103 MB / 0.5831 GB, free: 9.984 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006103/0.5483, allocations: 147.7 kB / 0.5833 GB, free: 9.836 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006521/0.5489, allocations: 419.3 kB / 0.5837 GB, free: 9.426 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.549, allocations: 3.938 kB / 0.5837 GB, free: 9.422 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1285/0.6775, allocations: 50.53 MB / 0.633 GB, free: 7.145 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.12, allocations: 9.375 kB / 0.633 GB, free: 7.141 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)