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.001294/0.001294, allocations: 115.5 kB / 19.74 MB, free: 2.152 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.0015/0.0015, allocations: 225.5 kB / 23.05 MB, free: 4.992 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.465/1.465, allocations: 230.6 MB / 256.8 MB, free: 8.066 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.04109/0.04109, allocations: 6.128 MB / 319.4 MB, free: 13 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.001613/0.001613, allocations: 43.92 kB / 444.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1204, allocations: 55.03 MB / 499.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.DegradedModeForLoads): time 0.002801/0.1232, allocations: 1.438 MB / 0.4892 GB, free: 12.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002103/0.1253, allocations: 1.516 MB / 0.4907 GB, free: 11.36 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.438e-05/0.1254, allocations: 4 kB / 0.4907 GB, free: 11.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003457/0.1257, allocations: 111.4 kB / 0.4908 GB, free: 11.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004101/0.1261, allocations: 151.2 kB / 0.491 GB, free: 11.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1278, allocations: 0.9023 MB / 0.4918 GB, free: 10.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.1281, allocations: 191.2 kB / 0.492 GB, free: 10.01 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.1282, allocations: 41.72 kB / 0.4921 GB, free: 9.965 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.1283, allocations: 79.7 kB / 0.4921 GB, free: 9.887 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.1285, allocations: 103.6 kB / 0.4922 GB, free: 9.785 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.365e-05/0.1286, allocations: 16 kB / 0.4923 GB, free: 9.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004552/0.129, allocations: 243.7 kB / 0.4925 GB, free: 9.531 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.248e-05/0.1291, allocations: 35.91 kB / 0.4925 GB, free: 9.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.1292, allocations: 95.45 kB / 0.4926 GB, free: 9.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.1297, allocations: 358.9 kB / 0.493 GB, free: 9.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1297, allocations: 0 / 0.493 GB, free: 9.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1297, allocations: 0 / 0.493 GB, free: 9.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1297, allocations: 0 / 0.493 GB, free: 9.051 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.002115/0.1318, allocations: 0.6453 MB / 0.4936 GB, free: 8.371 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1319, allocations: 12.03 kB / 0.4936 GB, free: 8.359 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.955e-05/0.1319, allocations: 54.67 kB / 0.4936 GB, free: 8.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.815e-05/0.132, allocations: 24.8 kB / 0.4937 GB, free: 8.273 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.1323, allocations: 166.3 kB / 0.4938 GB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.1324, allocations: 97.66 kB / 0.4939 GB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.1324, allocations: 16.38 kB / 0.4939 GB, free: 7.957 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004166/0.1329, allocations: 226.3 kB / 0.4942 GB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1329, allocations: 0 / 0.4942 GB, free: 7.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.1329, allocations: 8 kB / 0.4942 GB, free: 7.723 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1329, allocations: 8 kB / 0.4942 GB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003674/0.1333, allocations: 207.7 kB / 0.4944 GB, free: 7.512 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.1348, allocations: 0.869 MB / 0.4952 GB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/0.1354, allocations: 229 kB / 0.4954 GB, free: 6.344 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.1356, allocations: 108.7 kB / 0.4955 GB, free: 6.234 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001007/0.1357, allocations: 11.98 kB / 0.4955 GB, free: 6.223 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/0.1361, allocations: 167.3 kB / 0.4957 GB, free: 6.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.773e-06/0.1361, allocations: 0 / 0.4957 GB, free: 6.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=22): time 0.001757/0.1379, allocations: 0.5402 MB / 0.4962 GB, free: 5.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.1379, allocations: 51.41 kB / 0.4963 GB, free: 5.438 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.1381, allocations: 186 kB / 0.4965 GB, free: 5.242 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.031e-05/0.1382, allocations: 33.7 kB / 0.4965 GB, free: 5.203 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.1383, allocations: 124.5 kB / 0.4966 GB, free: 5.078 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.193e-05/0.1384, allocations: 75.31 kB / 0.4967 GB, free: 5.004 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.1385, allocations: 61.94 kB / 0.4967 GB, free: 4.934 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.1387, allocations: 330.8 kB / 0.4971 GB, free: 4.602 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.1389, allocations: 116.5 kB / 0.4972 GB, free: 4.488 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.1392, allocations: 162.2 kB / 0.4973 GB, free: 4.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004574/0.1396, allocations: 276.2 kB / 0.4976 GB, free: 4.031 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1396, allocations: 3.938 kB / 0.4976 GB, free: 4.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001091/0.1407, allocations: 478.1 kB / 0.498 GB, free: 3.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.1408, allocations: 4 kB / 0.4981 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.1408, allocations: 0 / 0.4981 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009286/0.1417, allocations: 200.6 kB / 0.4982 GB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.1419, allocations: 43.97 kB / 0.4983 GB, free: 3.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008173/0.1427, allocations: 0.728 MB / 0.499 GB, free: 2.551 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.1429, allocations: 23.84 kB / 0.499 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.1429, allocations: 12.03 kB / 0.499 GB, free: 2.516 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.0001424/0.1431, allocations: 133.8 kB / 0.4992 GB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.632e-05/0.1431, allocations: 15.91 kB / 0.4992 GB, free: 2.359 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009028/0.144, allocations: 387.2 kB / 0.4995 GB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.144, allocations: 4 kB / 0.4995 GB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.144, allocations: 0 / 0.4995 GB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.144, allocations: 0 / 0.4995 GB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000436/0.1444, allocations: 316.2 kB / 0.4998 GB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1444, allocations: 0 / 0.4998 GB, free: 1.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.1446, allocations: 23.98 kB / 0.4999 GB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007624/0.1453, allocations: 196.6 kB / 0.5001 GB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.1453, allocations: 11.98 kB / 0.5001 GB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000878/0.1462, allocations: 0.7358 MB / 0.5008 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1462, allocations: 0 / 0.5008 GB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007153/0.1469, allocations: 377.6 kB / 0.5011 GB, free: 244 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.999e-05/0.147, allocations: 23.83 kB / 0.5012 GB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/0.147, allocations: 3.938 kB / 0.5012 GB, free: 216 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.1472, allocations: 15.98 kB / 0.5012 GB, free: 200 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.683e-05/0.1472, allocations: 15.97 kB / 0.5012 GB, free: 184 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.134e-05/0.1473, allocations: 8 kB / 0.5012 GB, free: 176 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.1474, allocations: 143.9 kB / 0.5014 GB, free: 32 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1474, allocations: 96 / 0.5014 GB, free: 32 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003448/0.1478, allocations: 67.88 kB / 0.5014 GB, free: 15.96 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.001198/0.149, allocations: 0.9176 MB / 0.5023 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007785/0.1497, allocations: 298.8 kB / 0.5026 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1497, allocations: 4.062 kB / 0.5026 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005491/0.1503, allocations: 163.7 kB / 0.5028 GB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002578/0.1505, allocations: 16 kB / 0.5028 GB, free: 14.55 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/0.1551, allocations: 2.631 MB / 0.5053 GB, free: 11.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/0.1556, allocations: 0.721 MB / 0.506 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1557, allocations: 21.62 kB / 0.5061 GB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.1558, allocations: 55.36 kB / 0.5061 GB, free: 10.98 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1558, allocations: 0 / 0.5061 GB, free: 10.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03504/0.1908, allocations: 6.07 MB / 0.512 GB, free: 5.047 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/13.45, allocations: 3.984 kB / 0.512 GB, free: 5.043 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 & /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: 16.372755568940192] Failed to read output from testmodel.py, exit status != 0: 13.57426020107232 13.851316103 13.718508423 Calling exit ...