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.001375/0.001375, allocations: 101.9 kB / 20.52 MB, free: 1.348 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.00143/0.00143, allocations: 217 kB / 23.82 MB, free: 4.512 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.508/1.508, allocations: 230.6 MB / 257.6 MB, free: 7.801 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.03979/0.03979, allocations: 6.132 MB / 320.1 MB, free: 12.74 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.DegradedModeForLoads,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 51.86 kB / 445.2 MB, free: 5.074 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.104, allocations: 55.02 MB / 0.4885 GB, free: 13.95 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002712/0.1067, allocations: 1.329 MB / 0.4898 GB, free: 12.63 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001976/0.1087, allocations: 1.438 MB / 0.4912 GB, free: 11.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.459e-05/0.1088, allocations: 4 kB / 0.4912 GB, free: 11.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003343/0.1091, allocations: 103.5 kB / 0.4913 GB, free: 11.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004405/0.1096, allocations: 143.2 kB / 0.4914 GB, free: 10.93 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001625/0.1112, allocations: 0.8309 MB / 0.4923 GB, free: 10.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.1115, allocations: 195.2 kB / 0.4924 GB, free: 9.906 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.1116, allocations: 42 kB / 0.4925 GB, free: 9.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.771e-05/0.1117, allocations: 83.64 kB / 0.4926 GB, free: 9.781 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.1119, allocations: 103.6 kB / 0.4927 GB, free: 9.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.1119, allocations: 12 kB / 0.4927 GB, free: 9.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004093/0.1124, allocations: 239.8 kB / 0.4929 GB, free: 9.434 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.911e-05/0.1124, allocations: 35.86 kB / 0.4929 GB, free: 9.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.772e-05/0.1125, allocations: 75.64 kB / 0.493 GB, free: 9.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.113, allocations: 366.8 kB / 0.4934 GB, free: 8.965 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.113, allocations: 0 / 0.4934 GB, free: 8.965 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.113, allocations: 0 / 0.4934 GB, free: 8.965 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.113, allocations: 0 / 0.4934 GB, free: 8.965 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.002236/0.1153, allocations: 0.6336 MB / 0.494 GB, free: 8.297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.1153, allocations: 12.03 kB / 0.494 GB, free: 8.285 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.792e-05/0.1153, allocations: 8.188 kB / 0.494 GB, free: 8.277 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.979e-05/0.1154, allocations: 50.73 kB / 0.494 GB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.198e-05/0.1155, allocations: 24.8 kB / 0.4941 GB, free: 8.195 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.1158, allocations: 177 kB / 0.4942 GB, free: 8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001382/0.116, allocations: 89.67 kB / 0.4943 GB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.116, allocations: 16.38 kB / 0.4943 GB, free: 7.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.1165, allocations: 281.4 kB / 0.4946 GB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1165, allocations: 4 kB / 0.4946 GB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.116e-05/0.1165, allocations: 4 kB / 0.4946 GB, free: 7.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.827e-06/0.1165, allocations: 4 kB / 0.4946 GB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004014/0.1169, allocations: 215.7 kB / 0.4948 GB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.1185, allocations: 0.7139 MB / 0.4955 GB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006217/0.1192, allocations: 218.8 kB / 0.4957 GB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.1193, allocations: 104.8 kB / 0.4958 GB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.487e-05/0.1194, allocations: 4 kB / 0.4958 GB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.1199, allocations: 226.7 kB / 0.496 GB, free: 6.027 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.442e-06/0.1199, allocations: 3.938 kB / 0.496 GB, free: 6.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001807/0.1217, allocations: 0.5269 MB / 0.4966 GB, free: 5.488 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.1217, allocations: 59.28 kB / 0.4966 GB, free: 5.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.1219, allocations: 190 kB / 0.4968 GB, free: 5.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.425e-05/0.122, allocations: 29.7 kB / 0.4968 GB, free: 5.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.1221, allocations: 132.5 kB / 0.497 GB, free: 5.051 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.228e-05/0.1221, allocations: 75.38 kB / 0.497 GB, free: 4.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.1223, allocations: 57.92 kB / 0.4971 GB, free: 4.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1224, allocations: 326.8 kB / 0.4974 GB, free: 4.582 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.1226, allocations: 116.5 kB / 0.4975 GB, free: 4.469 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.1229, allocations: 170.1 kB / 0.4977 GB, free: 4.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004431/0.1233, allocations: 280.1 kB / 0.4979 GB, free: 4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1233, allocations: 4 kB / 0.4979 GB, free: 3.996 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001157/0.1245, allocations: 470 kB / 0.4984 GB, free: 3.527 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.1245, allocations: 4 kB / 0.4984 GB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1245, allocations: 0 / 0.4984 GB, free: 3.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009878/0.1255, allocations: 196.8 kB / 0.4986 GB, free: 3.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.1257, allocations: 43.92 kB / 0.4986 GB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007818/0.1265, allocations: 0.7279 MB / 0.4993 GB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.1267, allocations: 31.81 kB / 0.4994 GB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.1267, allocations: 12.08 kB / 0.4994 GB, free: 2.488 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.0001811/0.1269, allocations: 133.8 kB / 0.4995 GB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/0.127, allocations: 19.91 kB / 0.4995 GB, free: 2.328 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000834/0.1278, allocations: 373.2 kB / 0.4999 GB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.1278, allocations: 4 kB / 0.4999 GB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1278, allocations: 96 / 0.4999 GB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.1278, allocations: 7.969 kB / 0.4999 GB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003311/0.1281, allocations: 280.3 kB / 0.5002 GB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1281, allocations: 0 / 0.5002 GB, free: 1.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.1283, allocations: 19.94 kB / 0.5002 GB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008314/0.1291, allocations: 200.7 kB / 0.5004 GB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.1291, allocations: 0 / 0.5004 GB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008141/0.1299, allocations: 0.7436 MB / 0.5011 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1299, allocations: 0 / 0.5011 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007229/0.1306, allocations: 385.2 kB / 0.5015 GB, free: 252 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.1307, allocations: 19.84 kB / 0.5015 GB, free: 232 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.25e-05/0.1307, allocations: 7.938 kB / 0.5015 GB, free: 224 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1309, allocations: 15.98 kB / 0.5015 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.93e-05/0.131, allocations: 15.97 kB / 0.5015 GB, free: 192 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.198e-05/0.131, allocations: 8 kB / 0.5015 GB, free: 184 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.1311, allocations: 134.5 kB / 0.5017 GB, free: 52 kB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1311, allocations: 0 / 0.5017 GB, free: 52 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.1314, allocations: 60.14 kB / 0.5017 GB, free: 15.99 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.001097/0.1325, allocations: 0.9212 MB / 0.5026 GB, free: 15.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007794/0.1333, allocations: 295.9 kB / 0.5029 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1333, allocations: 0 / 0.5029 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005426/0.1339, allocations: 166.5 kB / 0.5031 GB, free: 14.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.1341, allocations: 26.89 kB / 0.5031 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004424/0.1385, allocations: 2.632 MB / 0.5056 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001175/0.1387, allocations: 108.9 kB / 0.5057 GB, free: 11.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.516e-05/0.1388, allocations: 21.62 kB / 0.5058 GB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.792e-05/0.1389, allocations: 55.41 kB / 0.5058 GB, free: 11.62 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1389, allocations: 0 / 0.5058 GB, free: 11.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.166, allocations: 5.687 MB / 0.5114 GB, free: 6.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.39, allocations: 20.11 kB / 0.5114 GB, free: 6.074 MB / 382.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads_fmu --startTime=0 --stopTime=400 --stepSize=0.16 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Examples_DegradedModeForLoads.fmu > PowerSysPro_PowerSysPro.Examples.DegradedModeForLoads.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.55543210497126] Failed to read output from testmodel.py, exit status != 0: 14.585958146024495 14.979597884 14.862101693 Calling exit ...