Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 104.3 kB / 19.74 MB, free: 1.766 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 223.3 kB / 23.04 MB, free: 4.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo): time 0.04006/0.04006, allocations: 6.136 MB / 319.4 MB, free: 12.75 MB / 254.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.1.3/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_TwoSourcesOneLineThreeSensors",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 47.92 kB / 444.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1064, allocations: 55.03 MB / 499.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.TwoSourcesOneLineThreeSensors): time 0.003013/0.1094, allocations: 1.588 MB / 0.4893 GB, free: 12.38 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002219/0.1116, allocations: 1.458 MB / 0.4907 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.631e-05/0.1117, allocations: 4 kB / 0.4907 GB, free: 10.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004132/0.1121, allocations: 135.3 kB / 0.4908 GB, free: 10.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002622/0.1124, allocations: 91.38 kB / 0.4909 GB, free: 10.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.1141, allocations: 0.8401 MB / 0.4918 GB, free: 9.844 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.1144, allocations: 223 kB / 0.492 GB, free: 9.625 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001877/0.1146, allocations: 76.28 kB / 0.492 GB, free: 9.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.1147, allocations: 99.64 kB / 0.4921 GB, free: 9.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002107/0.115, allocations: 111.5 kB / 0.4922 GB, free: 9.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.725e-05/0.115, allocations: 24 kB / 0.4923 GB, free: 9.316 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003902/0.1154, allocations: 207.8 kB / 0.4925 GB, free: 9.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.027e-05/0.1154, allocations: 51.77 kB / 0.4925 GB, free: 9.062 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.1155, allocations: 91.59 kB / 0.4926 GB, free: 8.973 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005746/0.1161, allocations: 418.5 kB / 0.493 GB, free: 8.562 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1161, allocations: 0 / 0.493 GB, free: 8.562 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1161, allocations: 0 / 0.493 GB, free: 8.562 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1161, allocations: 0 / 0.493 GB, free: 8.562 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00222/0.1183, allocations: 0.6924 MB / 0.4937 GB, free: 7.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/0.1184, allocations: 12.03 kB / 0.4937 GB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.976e-05/0.1185, allocations: 58.72 kB / 0.4937 GB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.851e-05/0.1185, allocations: 28.78 kB / 0.4938 GB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.1189, allocations: 190.1 kB / 0.494 GB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.1189, allocations: 16.88 kB / 0.494 GB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.1189, allocations: 24.38 kB / 0.494 GB, free: 7.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005251/0.1194, allocations: 296.6 kB / 0.4943 GB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.1195, allocations: 3.938 kB / 0.4943 GB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.1195, allocations: 8 kB / 0.4943 GB, free: 7.176 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.1195, allocations: 12 kB / 0.4943 GB, free: 7.164 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005008/0.12, allocations: 309.8 kB / 0.4946 GB, free: 6.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.1215, allocations: 0.7708 MB / 0.4953 GB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.122, allocations: 254.5 kB / 0.4956 GB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.1222, allocations: 112.8 kB / 0.4957 GB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.874e-05/0.1223, allocations: 11.98 kB / 0.4957 GB, free: 5.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.765e-05/0.1224, allocations: 38.56 kB / 0.4957 GB, free: 5.613 MB / 366.1 MB Notification: Performance of pre-optimization done (n=26): time 1.863e-06/0.1224, allocations: 0 / 0.4957 GB, free: 5.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=26): time 0.001198/0.1236, allocations: 446.5 kB / 0.4962 GB, free: 5.168 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.1236, allocations: 59.34 kB / 0.4962 GB, free: 5.098 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.1238, allocations: 165.8 kB / 0.4964 GB, free: 4.926 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1238, allocations: 25.7 kB / 0.4964 GB, free: 4.895 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1239, allocations: 152.6 kB / 0.4966 GB, free: 4.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.697e-05/0.124, allocations: 99.16 kB / 0.4966 GB, free: 4.645 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.1241, allocations: 61.69 kB / 0.4967 GB, free: 4.578 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1243, allocations: 330.8 kB / 0.497 GB, free: 4.246 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002024/0.1245, allocations: 120 kB / 0.4971 GB, free: 4.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.1247, allocations: 132.8 kB / 0.4973 GB, free: 4 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004308/0.1251, allocations: 281.1 kB / 0.4975 GB, free: 3.723 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1251, allocations: 0 / 0.4975 GB, free: 3.723 MB / 366.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007192/0.1258, allocations: 394.2 kB / 0.4979 GB, free: 3.328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1258, allocations: 7.984 kB / 0.4979 GB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.1259, allocations: 0 / 0.4979 GB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002842/0.1261, allocations: 52.83 kB / 0.498 GB, free: 3.266 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.1265, allocations: 63.89 kB / 0.498 GB, free: 3.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001614/0.1281, allocations: 1.439 MB / 0.4994 GB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.1283, allocations: 23.88 kB / 0.4995 GB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.1283, allocations: 8 kB / 0.4995 GB, free: 1.613 MB / 366.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 (35): * Single equations (assignments): 34 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.1284, allocations: 143.3 kB / 0.4996 GB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.1285, allocations: 15.91 kB / 0.4996 GB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006871/0.1292, allocations: 344.3 kB / 0.4999 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1292, allocations: 8.094 kB / 0.4999 GB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1292, allocations: 3.984 kB / 0.5 GB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1292, allocations: 0 / 0.5 GB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001068/0.1303, allocations: 0.6705 MB / 0.5006 GB, free: 376 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1303, allocations: 0 / 0.5006 GB, free: 376 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002378/0.1305, allocations: 39.97 kB / 0.5006 GB, free: 336 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002258/0.1307, allocations: 60.75 kB / 0.5007 GB, free: 272 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.021e-05/0.1308, allocations: 8 kB / 0.5007 GB, free: 264 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001482/0.1322, allocations: 1.424 MB / 0.5021 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1322, allocations: 0 / 0.5021 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.1328, allocations: 401 kB / 0.5025 GB, free: 14.31 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.122e-05/0.1329, allocations: 15.84 kB / 0.5025 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.1329, allocations: 15.94 kB / 0.5025 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.1331, allocations: 4 kB / 0.5025 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.732e-05/0.1331, allocations: 15.91 kB / 0.5025 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.01e-05/0.1331, allocations: 15.98 kB / 0.5025 GB, free: 14.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001131/0.1332, allocations: 124.9 kB / 0.5027 GB, free: 14.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1332, allocations: 8.062 kB / 0.5027 GB, free: 14.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003815/0.1336, allocations: 75.89 kB / 0.5027 GB, free: 14.04 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 (25): * Single equations (assignments): 24 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001001/0.1346, allocations: 0.9395 MB / 0.5037 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007851/0.1354, allocations: 394.9 kB / 0.504 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1354, allocations: 0 / 0.504 GB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004569/0.1359, allocations: 250.5 kB / 0.5043 GB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.1361, allocations: 12 kB / 0.5043 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003672/0.1398, allocations: 2.504 MB / 0.5067 GB, free: 9.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001407/0.1399, allocations: 129.2 kB / 0.5069 GB, free: 9.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001302/0.1401, allocations: 29.61 kB / 0.5069 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1402, allocations: 67.41 kB / 0.507 GB, free: 9.574 MB / 382.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1402, allocations: 0 / 0.507 GB, free: 9.574 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03411/0.1743, allocations: 5.471 MB / 0.5123 GB, free: 4.242 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/11.93, allocations: 4 kB / 0.5123 GB, free: 4.238 MB / 382.1 MB " [Timeout remaining time 648] (rm -f PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors_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_TwoSourcesOneLineThreeSensors.fmu > PowerSysPro_PowerSysPro.Examples.TwoSourcesOneLineThreeSensors.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.86901583801955] Failed to read output from testmodel.py, exit status != 0: 12.036419162992388 12.23779931 12.118277659 Calling exit ...