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.001352/0.001352, allocations: 114 kB / 19.74 MB, free: 1.996 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.001478/0.001478, allocations: 223.1 kB / 23.05 MB, free: 4.988 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.504/1.504, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.03827/0.03827, allocations: 6.132 MB / 319.4 MB, free: 12.95 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.001521/0.001521, allocations: 51.92 kB / 444.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.09964, allocations: 55.03 MB / 499.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002818/0.1025, allocations: 1.442 MB / 0.4892 GB, free: 12.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.1046, allocations: 1.509 MB / 0.4907 GB, free: 11.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.445e-05/0.1047, allocations: 4 kB / 0.4907 GB, free: 11.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003489/0.1051, allocations: 111.4 kB / 0.4908 GB, free: 11.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004558/0.1055, allocations: 155.2 kB / 0.491 GB, free: 11.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.1072, allocations: 0.9064 MB / 0.4918 GB, free: 10.11 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.1076, allocations: 191.2 kB / 0.492 GB, free: 9.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1077, allocations: 41.72 kB / 0.4921 GB, free: 9.879 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.1078, allocations: 83.7 kB / 0.4921 GB, free: 9.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.108, allocations: 95.59 kB / 0.4922 GB, free: 9.703 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.819e-05/0.108, allocations: 20 kB / 0.4923 GB, free: 9.684 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004384/0.1085, allocations: 235.8 kB / 0.4925 GB, free: 9.453 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.743e-05/0.1085, allocations: 39.84 kB / 0.4925 GB, free: 9.414 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.82e-05/0.1086, allocations: 91.52 kB / 0.4926 GB, free: 9.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005396/0.1092, allocations: 362.8 kB / 0.493 GB, free: 8.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1092, allocations: 0 / 0.493 GB, free: 8.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1092, allocations: 0 / 0.493 GB, free: 8.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1092, allocations: 0 / 0.493 GB, free: 8.969 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.002177/0.1113, allocations: 0.6414 MB / 0.4936 GB, free: 8.293 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.1114, allocations: 8.031 kB / 0.4936 GB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.204e-05/0.1115, allocations: 54.73 kB / 0.4936 GB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.301e-05/0.1115, allocations: 24.8 kB / 0.4937 GB, free: 8.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.1118, allocations: 174.2 kB / 0.4938 GB, free: 8.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.1119, allocations: 93.61 kB / 0.4939 GB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.127e-05/0.112, allocations: 16.38 kB / 0.4939 GB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.1124, allocations: 230.2 kB / 0.4942 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1124, allocations: 0 / 0.4942 GB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.598e-05/0.1124, allocations: 12 kB / 0.4942 GB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.1124, allocations: 0 / 0.4942 GB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003776/0.1128, allocations: 211.7 kB / 0.4944 GB, free: 7.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1144, allocations: 0.869 MB / 0.4952 GB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006141/0.1151, allocations: 230.7 kB / 0.4954 GB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.1153, allocations: 103.2 kB / 0.4955 GB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.1154, allocations: 7.984 kB / 0.4955 GB, free: 6.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004379/0.1158, allocations: 171.3 kB / 0.4957 GB, free: 5.969 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.1158, allocations: 0 / 0.4957 GB, free: 5.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001824/0.1176, allocations: 0.5359 MB / 0.4962 GB, free: 5.426 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.1177, allocations: 55.41 kB / 0.4963 GB, free: 5.359 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.1179, allocations: 186 kB / 0.4965 GB, free: 5.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.1179, allocations: 33.7 kB / 0.4965 GB, free: 5.125 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.074e-05/0.118, allocations: 120.5 kB / 0.4966 GB, free: 5.004 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.281e-05/0.1181, allocations: 79.31 kB / 0.4967 GB, free: 4.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.1182, allocations: 65.92 kB / 0.4967 GB, free: 4.852 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1184, allocations: 326.8 kB / 0.4971 GB, free: 4.523 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002184/0.1186, allocations: 116.5 kB / 0.4972 GB, free: 4.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002565/0.1189, allocations: 166.2 kB / 0.4973 GB, free: 4.234 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004661/0.1193, allocations: 276.2 kB / 0.4976 GB, free: 3.949 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1193, allocations: 3.938 kB / 0.4976 GB, free: 3.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001165/0.1205, allocations: 478.1 kB / 0.4981 GB, free: 3.469 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.239e-05/0.1205, allocations: 4 kB / 0.4981 GB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.1205, allocations: 0 / 0.4981 GB, free: 3.465 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.1215, allocations: 196.7 kB / 0.4982 GB, free: 3.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001996/0.1217, allocations: 47.91 kB / 0.4983 GB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000789/0.1225, allocations: 0.7241 MB / 0.499 GB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.1227, allocations: 27.88 kB / 0.499 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.1227, allocations: 12 kB / 0.499 GB, free: 2.434 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.0001654/0.1229, allocations: 129.8 kB / 0.4992 GB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/0.1229, allocations: 15.91 kB / 0.4992 GB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008248/0.1238, allocations: 385.1 kB / 0.4995 GB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1238, allocations: 4 kB / 0.4995 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1238, allocations: 0 / 0.4995 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1238, allocations: 0 / 0.4995 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003617/0.1241, allocations: 316.2 kB / 0.4998 GB, free: 1.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1241, allocations: 3.938 kB / 0.4998 GB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.1243, allocations: 23.98 kB / 0.4999 GB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008169/0.1251, allocations: 196.8 kB / 0.5001 GB, free: 1.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.1251, allocations: 8 kB / 0.5001 GB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008659/0.126, allocations: 0.7319 MB / 0.5008 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.126, allocations: 4 kB / 0.5008 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007953/0.1268, allocations: 385.2 kB / 0.5012 GB, free: 160 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.454e-05/0.1268, allocations: 23.84 kB / 0.5012 GB, free: 136 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.003e-05/0.1268, allocations: 7.938 kB / 0.5012 GB, free: 128 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001666/0.127, allocations: 11.98 kB / 0.5012 GB, free: 116 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.323e-05/0.1271, allocations: 19.91 kB / 0.5012 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.1271, allocations: 16 kB / 0.5012 GB, free: 80 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000166/0.1273, allocations: 134.5 kB / 0.5014 GB, free: 15.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1273, allocations: 0 / 0.5014 GB, free: 15.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003242/0.1276, allocations: 59.89 kB / 0.5014 GB, free: 15.89 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: 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.001155/0.1287, allocations: 0.9137 MB / 0.5023 GB, free: 14.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008185/0.1296, allocations: 291.9 kB / 0.5026 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1296, allocations: 0 / 0.5026 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005503/0.1301, allocations: 166.5 kB / 0.5027 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.1304, allocations: 24.02 kB / 0.5028 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.1351, allocations: 2.641 MB / 0.5053 GB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.1355, allocations: 0.721 MB / 0.5061 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001073/0.1356, allocations: 25.56 kB / 0.5061 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.1357, allocations: 59.41 kB / 0.5061 GB, free: 10.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1357, allocations: 0 / 0.5061 GB, free: 10.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.17, allocations: 6.056 MB / 0.512 GB, free: 4.969 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.06, allocations: 6.719 kB / 0.5121 GB, free: 4.969 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.993663674002164] Failed to read output from testmodel.py, exit status != 0: 13.169345457004965 13.371659198 13.259741326 Calling exit ...