Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.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.001541/0.001541, 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.001621/0.001621, allocations: 219.5 kB / 23.03 MB, free: 4.621 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.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.03905/0.03905, allocations: 6.133 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.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 51.92 kB / 444.4 MB, free: 5.086 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1093, allocations: 55.02 MB / 499.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.0029/0.1122, allocations: 1.333 MB / 0.489 GB, free: 12.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.1144, allocations: 1.442 MB / 0.4905 GB, free: 11.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1146, allocations: 0 / 0.4905 GB, free: 11.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004325/0.115, allocations: 111.4 kB / 0.4906 GB, free: 11.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005499/0.1156, allocations: 155.2 kB / 0.4907 GB, free: 10.92 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001877/0.1174, allocations: 0.8229 MB / 0.4915 GB, free: 10.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004667/0.1179, allocations: 199.1 kB / 0.4917 GB, free: 9.898 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.1181, allocations: 29.8 kB / 0.4917 GB, free: 9.867 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.1182, allocations: 79.77 kB / 0.4918 GB, free: 9.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.1185, allocations: 91.53 kB / 0.4919 GB, free: 9.699 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.875e-05/0.1185, allocations: 16 kB / 0.4919 GB, free: 9.684 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006219/0.1192, allocations: 219.8 kB / 0.4921 GB, free: 9.469 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.579e-05/0.1192, allocations: 47.77 kB / 0.4922 GB, free: 9.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.1193, allocations: 71.7 kB / 0.4922 GB, free: 9.352 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007314/0.1201, allocations: 362.7 kB / 0.4926 GB, free: 8.996 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.1201, allocations: 0 / 0.4926 GB, free: 8.996 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1201, allocations: 4 kB / 0.4926 GB, free: 8.992 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1201, allocations: 4 kB / 0.4926 GB, free: 8.988 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.002346/0.1224, allocations: 0.6336 MB / 0.4932 GB, free: 8.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.1225, allocations: 11.97 kB / 0.4932 GB, free: 8.309 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.525e-05/0.1226, allocations: 46.73 kB / 0.4933 GB, free: 8.254 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.1226, allocations: 24.8 kB / 0.4933 GB, free: 8.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003115/0.1229, allocations: 174.2 kB / 0.4934 GB, free: 8.035 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.1231, allocations: 97.67 kB / 0.4935 GB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.358e-05/0.1231, allocations: 16.38 kB / 0.4936 GB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004784/0.1236, allocations: 281.7 kB / 0.4938 GB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1236, allocations: 0 / 0.4938 GB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.1236, allocations: 8 kB / 0.4938 GB, free: 7.605 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.1236, allocations: 4 kB / 0.4938 GB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003931/0.124, allocations: 207.7 kB / 0.494 GB, free: 7.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.1255, allocations: 0.7101 MB / 0.4947 GB, free: 6.645 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005859/0.1261, allocations: 226.7 kB / 0.4949 GB, free: 6.414 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001974/0.1263, allocations: 108.7 kB / 0.495 GB, free: 6.305 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.1264, allocations: 11.98 kB / 0.4951 GB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000436/0.1269, allocations: 218.7 kB / 0.4953 GB, free: 6.055 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.803e-06/0.1269, allocations: 0 / 0.4953 GB, free: 6.055 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001835/0.1287, allocations: 0.5348 MB / 0.4958 GB, free: 5.512 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.177e-05/0.1287, allocations: 51.41 kB / 0.4958 GB, free: 5.449 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.129, allocations: 186.1 kB / 0.496 GB, free: 5.254 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.463e-05/0.129, allocations: 29.7 kB / 0.496 GB, free: 5.219 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1291, allocations: 128.4 kB / 0.4962 GB, free: 5.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.866e-05/0.1292, allocations: 83.3 kB / 0.4962 GB, free: 5.008 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.1293, allocations: 53.98 kB / 0.4963 GB, free: 4.945 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.1295, allocations: 326.8 kB / 0.4966 GB, free: 4.617 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.1297, allocations: 116.5 kB / 0.4967 GB, free: 4.504 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002701/0.13, allocations: 174.1 kB / 0.4969 GB, free: 4.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004653/0.1304, allocations: 276.2 kB / 0.4971 GB, free: 4.035 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.1304, allocations: 3.938 kB / 0.4972 GB, free: 4.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001171/0.1316, allocations: 478.1 kB / 0.4976 GB, free: 3.555 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1316, allocations: 4 kB / 0.4976 GB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.1316, allocations: 4 kB / 0.4976 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009737/0.1326, allocations: 184.7 kB / 0.4978 GB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.1328, allocations: 39.92 kB / 0.4978 GB, free: 3.324 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008422/0.1337, allocations: 0.7241 MB / 0.4985 GB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000207/0.1339, allocations: 31.84 kB / 0.4986 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.1339, allocations: 8 kB / 0.4986 GB, free: 2.535 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (load.degradedMode,$PRE.load.degradedMode,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {(3,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001722/0.1341, allocations: 145.8 kB / 0.4987 GB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.195e-05/0.1341, allocations: 15.91 kB / 0.4987 GB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008356/0.1349, allocations: 381.2 kB / 0.4991 GB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.1349, allocations: 0 / 0.4991 GB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1349, allocations: 0 / 0.4991 GB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.135, allocations: 4 kB / 0.4991 GB, free: 1.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003318/0.1353, allocations: 280.3 kB / 0.4994 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1353, allocations: 0 / 0.4994 GB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.1354, allocations: 23.98 kB / 0.4994 GB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007989/0.1362, allocations: 192.6 kB / 0.4996 GB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.07e-05/0.1363, allocations: 7.938 kB / 0.4996 GB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009028/0.1372, allocations: 0.7319 MB / 0.5003 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.1372, allocations: 4.031 kB / 0.5003 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007737/0.1379, allocations: 381.2 kB / 0.5007 GB, free: 300 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.138, allocations: 19.84 kB / 0.5007 GB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/0.1381, allocations: 11.88 kB / 0.5007 GB, free: 268 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.1382, allocations: 12 kB / 0.5007 GB, free: 256 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.221e-05/0.1383, allocations: 15.97 kB / 0.5007 GB, free: 240 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.265e-05/0.1383, allocations: 19.98 kB / 0.5007 GB, free: 220 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.1385, allocations: 130.5 kB / 0.5009 GB, free: 92 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1385, allocations: 0 / 0.5009 GB, free: 92 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.1388, allocations: 59.94 kB / 0.5009 GB, free: 32 kB / 366.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: 2 ($whenCondition1,load.degradedMode) * Number of discrete states: 1 (load.degradedMode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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 {(4,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001176/0.14, allocations: 0.9215 MB / 0.5018 GB, free: 15.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000776/0.1408, allocations: 295.7 kB / 0.5021 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.1408, allocations: 0 / 0.5021 GB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005373/0.1413, allocations: 170.8 kB / 0.5023 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.1416, allocations: 16 kB / 0.5023 GB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004343/0.1459, allocations: 2.631 MB / 0.5048 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.146, allocations: 108.9 kB / 0.505 GB, free: 11.74 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.1461, allocations: 33.55 kB / 0.505 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.1462, allocations: 55.42 kB / 0.505 GB, free: 11.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.1462, allocations: 96 / 0.505 GB, free: 11.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.034/0.1802, allocations: 5.977 MB / 0.5109 GB, free: 5.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/13.79, allocations: 3.75 kB / 0.5109 GB, free: 5.82 MB / 382.1 MB " [Timeout remaining time 646] (rm -f PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads_res.csv --start-time 0 --stop-time 400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.16 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.87493952503428] Failed to read output from testmodel.py, exit status != 0: 13.909407632891089 14.225057414 14.101154206 Calling exit ...