Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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.001325/0.001325, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001617/0.001617, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.378/1.378, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.08618/0.08618, allocations: 11.35 MB / 323.8 MB, free: 8.004 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/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(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 63.91 kB / 451 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1084, allocations: 56.08 MB / 0.4952 GB, free: 2.141 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.00291/0.1113, allocations: 1.579 MB / 0.4967 GB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000583/0.1119, allocations: 239.1 kB / 0.4969 GB, free: 324 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.768e-05/0.112, allocations: 0 / 0.4969 GB, free: 324 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.181e-05/0.112, allocations: 7.875 kB / 0.4969 GB, free: 316 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.586e-05/0.1121, allocations: 19.8 kB / 0.497 GB, free: 296 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002963/0.1124, allocations: 67.81 kB / 0.497 GB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.1126, allocations: 107.7 kB / 0.4971 GB, free: 120 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.1127, allocations: 13.64 kB / 0.4971 GB, free: 100 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.234e-05/0.1128, allocations: 43.73 kB / 0.4972 GB, free: 56 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.698e-05/0.1129, allocations: 47.75 kB / 0.4972 GB, free: 8 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.285e-05/0.1129, allocations: 8 kB / 0.4972 GB, free: 0 / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.109e-05/0.113, allocations: 31.97 kB / 0.4973 GB, free: 15.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.105e-05/0.113, allocations: 31.78 kB / 0.4973 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.122e-05/0.1131, allocations: 43.73 kB / 0.4973 GB, free: 15.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001833/0.1132, allocations: 111.8 kB / 0.4974 GB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1132, allocations: 0 / 0.4974 GB, free: 15.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1132, allocations: 4 kB / 0.4974 GB, free: 15.78 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1132, allocations: 0 / 0.4974 GB, free: 15.78 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005571/0.1138, allocations: 353.6 kB / 0.4978 GB, free: 15.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.1138, allocations: 16.02 kB / 0.4978 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.1139, allocations: 34.75 kB / 0.4978 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.1139, allocations: 16.84 kB / 0.4978 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.1141, allocations: 150.3 kB / 0.498 GB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.1141, allocations: 8.359 kB / 0.498 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.935e-05/0.1142, allocations: 8.375 kB / 0.498 GB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.1144, allocations: 94.16 kB / 0.4981 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1144, allocations: 3.938 kB / 0.4981 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1144, allocations: 7.984 kB / 0.4981 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1144, allocations: 0 / 0.4981 GB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.1145, allocations: 43.98 kB / 0.4981 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.1151, allocations: 331.7 kB / 0.4985 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000215/0.1153, allocations: 94.64 kB / 0.4986 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.1154, allocations: 60.77 kB / 0.4986 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.1154, allocations: 4 kB / 0.4986 GB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.1157, allocations: 103.4 kB / 0.4987 GB, free: 14.34 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.483e-06/0.1157, allocations: 0 / 0.4987 GB, free: 14.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.000415/0.1161, allocations: 189.5 kB / 0.4989 GB, free: 14.15 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.1161, allocations: 55.41 kB / 0.4989 GB, free: 14.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.1163, allocations: 167.4 kB / 0.4991 GB, free: 13.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.1163, allocations: 29.7 kB / 0.4991 GB, free: 13.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.1164, allocations: 116 kB / 0.4992 GB, free: 13.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.778e-05/0.1164, allocations: 43.67 kB / 0.4993 GB, free: 13.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.689e-05/0.1165, allocations: 37.7 kB / 0.4993 GB, free: 13.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1167, allocations: 330.8 kB / 0.4996 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.494e-05/0.1167, allocations: 27.98 kB / 0.4997 GB, free: 13.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.1168, allocations: 77.98 kB / 0.4997 GB, free: 13.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.117, allocations: 136.2 kB / 0.4999 GB, free: 13.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.117, allocations: 3.938 kB / 0.4999 GB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002679/0.1173, allocations: 157.4 kB / 0.5 GB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1173, allocations: 8 kB / 0.5 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.1173, allocations: 0 / 0.5 GB, free: 12.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.1173, allocations: 12.11 kB / 0.5 GB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.1175, allocations: 27.94 kB / 0.5001 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.1175, allocations: 7.984 kB / 0.5001 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.431e-05/0.1175, allocations: 15.89 kB / 0.5001 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.1176, allocations: 8 kB / 0.5001 GB, free: 12.81 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_TU.y,$PRE.fO_dig_TU.y,fO_dig_FE.y,$PRE.fO_dig_FE.y,fO_dig_BE.y,$PRE.fO_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001098/0.1177, allocations: 125.7 kB / 0.5002 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.433e-05/0.1177, allocations: 15.91 kB / 0.5002 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.593e-05/0.1177, allocations: 21.45 kB / 0.5003 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1177, allocations: 0 / 0.5003 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.1177, allocations: 0 / 0.5003 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1177, allocations: 7.984 kB / 0.5003 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004817/0.1182, allocations: 397.5 kB / 0.5006 GB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1182, allocations: 3.938 kB / 0.5006 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.425e-05/0.1183, allocations: 23.98 kB / 0.5007 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1183, allocations: 0 / 0.5007 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1183, allocations: 4 kB / 0.5007 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1183, allocations: 0 / 0.5007 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1183, allocations: 7.938 kB / 0.5007 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004303/0.1188, allocations: 290.8 kB / 0.501 GB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.521e-05/0.1188, allocations: 19.88 kB / 0.501 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.1188, allocations: 0 / 0.501 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.307e-05/0.1189, allocations: 8 kB / 0.501 GB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.565e-05/0.119, allocations: 19.84 kB / 0.501 GB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.119, allocations: 4 kB / 0.501 GB, free: 11.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.744e-05/0.1191, allocations: 120.9 kB / 0.5011 GB, free: 11.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1191, allocations: 0 / 0.5011 GB, free: 11.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.1193, allocations: 28 kB / 0.5011 GB, free: 11.66 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007474/0.1201, allocations: 0.8451 MB / 0.502 GB, free: 10.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002361/0.1203, allocations: 95.84 kB / 0.5021 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1203, allocations: 0 / 0.5021 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.1204, allocations: 54.66 kB / 0.5021 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.1207, allocations: 38.11 kB / 0.5022 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.123, allocations: 1.919 MB / 0.504 GB, free: 8.578 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.796e-05/0.1231, allocations: 93.62 kB / 0.5041 GB, free: 8.465 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.921e-05/0.1231, allocations: 21.42 kB / 0.5041 GB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.242e-05/0.1232, allocations: 39.42 kB / 0.5042 GB, free: 8.402 MB / 382.1 MB Notification: Performance of SimCode: time 4e-07/0.1232, allocations: 0 / 0.5042 GB, free: 8.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.1564, allocations: 3.602 MB / 0.5077 GB, free: 4.953 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.64, allocations: 12.59 kB / 0.5077 GB, free: 4.945 MB / 382.1 MB " [Timeout remaining time 649] (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.45038347132504] Failed to read output from testmodel.py, exit status != 0: 10.746945192106068 10.94581467 10.829469775 Calling exit ...