Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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.001328/0.001328, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001906/0.001906, allocations: 216.2 kB / 22.25 MB, free: 4.852 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.406/1.406, allocations: 230.6 MB / 256 MB, free: 7.805 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.06222/0.06222, allocations: 11.34 MB / 323.8 MB, free: 8.047 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.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",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.002101/0.002101, allocations: 67.91 kB / 451 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1082, allocations: 56.07 MB / 0.4952 GB, free: 2.172 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.002944/0.1111, allocations: 1.766 MB / 0.4969 GB, free: 404 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1123, allocations: 0.6156 MB / 0.4975 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.1124, allocations: 11.88 kB / 0.4975 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.1125, allocations: 27.67 kB / 0.4975 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.712e-05/0.1126, allocations: 31.66 kB / 0.4975 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.1129, allocations: 111.8 kB / 0.4977 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002908/0.1132, allocations: 223.4 kB / 0.4979 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.1133, allocations: 49.05 kB / 0.4979 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.1134, allocations: 95.62 kB / 0.498 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.1136, allocations: 83.53 kB / 0.4981 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.117e-05/0.1136, allocations: 23.94 kB / 0.4981 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.113e-05/0.1136, allocations: 16 kB / 0.4981 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.198e-05/0.1137, allocations: 43.84 kB / 0.4982 GB, free: 15.06 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.858e-05/0.1138, allocations: 75.56 kB / 0.4982 GB, free: 14.99 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000249/0.114, allocations: 195.1 kB / 0.4984 GB, free: 14.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.114, allocations: 4 kB / 0.4984 GB, free: 14.79 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.114, allocations: 0 / 0.4984 GB, free: 14.79 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.114, allocations: 4 kB / 0.4984 GB, free: 14.79 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001049/0.1151, allocations: 0.5011 MB / 0.4989 GB, free: 14.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1151, allocations: 8.031 kB / 0.4989 GB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.397e-05/0.1152, allocations: 54.67 kB / 0.499 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.462e-05/0.1153, allocations: 32.73 kB / 0.499 GB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.1157, allocations: 225.8 kB / 0.4992 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-05/0.1158, allocations: 97.67 kB / 0.4993 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.1158, allocations: 20.33 kB / 0.4993 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004744/0.1163, allocations: 181.4 kB / 0.4995 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1163, allocations: 0 / 0.4995 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.1163, allocations: 7.938 kB / 0.4995 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.1163, allocations: 4 kB / 0.4995 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005137/0.1169, allocations: 155.8 kB / 0.4997 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.1179, allocations: 0.4953 MB / 0.5002 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00049/0.1184, allocations: 146.5 kB / 0.5003 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.1186, allocations: 72.8 kB / 0.5004 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1187, allocations: 0 / 0.5004 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003974/0.1191, allocations: 147.5 kB / 0.5005 GB, free: 12.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.1191, allocations: 7.938 kB / 0.5005 GB, free: 12.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008854/0.1199, allocations: 273.2 kB / 0.5008 GB, free: 12.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.12, allocations: 55.41 kB / 0.5008 GB, free: 12.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002007/0.1202, allocations: 211.1 kB / 0.501 GB, free: 11.94 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.1202, allocations: 33.69 kB / 0.5011 GB, free: 11.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1203, allocations: 144.3 kB / 0.5012 GB, free: 11.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.1204, allocations: 35.72 kB / 0.5012 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.021e-05/0.1204, allocations: 49.64 kB / 0.5013 GB, free: 11.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1206, allocations: 330.8 kB / 0.5016 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.1209, allocations: 109.6 kB / 0.5017 GB, free: 11.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003014/0.1212, allocations: 137.1 kB / 0.5018 GB, free: 11.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005099/0.1217, allocations: 203.1 kB / 0.502 GB, free: 10.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1217, allocations: 0 / 0.502 GB, free: 10.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006896/0.1224, allocations: 312.6 kB / 0.5023 GB, free: 10.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.294e-05/0.1224, allocations: 38.33 kB / 0.5024 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.1224, allocations: 0 / 0.5024 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1225, allocations: 0 / 0.5024 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006982/0.1231, allocations: 76.03 kB / 0.5024 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.1232, allocations: 0 / 0.5024 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.1234, allocations: 31.91 kB / 0.5025 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.1234, allocations: 11.98 kB / 0.5025 GB, free: 10.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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.0001334/0.1235, allocations: 134.2 kB / 0.5026 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.1235, allocations: 19.86 kB / 0.5026 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.1236, allocations: 25.39 kB / 0.5026 GB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1236, allocations: 4 kB / 0.5026 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1236, allocations: 3.938 kB / 0.5027 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1236, allocations: 0 / 0.5027 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.1239, allocations: 220.6 kB / 0.5029 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1239, allocations: 0 / 0.5029 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000745/0.1246, allocations: 75.88 kB / 0.5029 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.1246, allocations: 0 / 0.5029 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.1246, allocations: 4 kB / 0.5029 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1247, allocations: 0 / 0.5029 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1247, allocations: 0 / 0.5029 GB, free: 9.844 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008941/0.1255, allocations: 316.7 kB / 0.5032 GB, free: 9.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/0.1256, allocations: 27.89 kB / 0.5033 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.1256, allocations: 0 / 0.5033 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.1258, allocations: 19.97 kB / 0.5033 GB, free: 9.469 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.428e-05/0.1259, allocations: 23.97 kB / 0.5033 GB, free: 9.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.1259, allocations: 11.98 kB / 0.5033 GB, free: 9.434 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.126, allocations: 148.6 kB / 0.5035 GB, free: 9.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.126, allocations: 4 kB / 0.5035 GB, free: 9.285 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000224/0.1262, allocations: 31.94 kB / 0.5035 GB, free: 9.254 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.001205/0.1275, allocations: 0.8542 MB / 0.5043 GB, free: 8.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006647/0.1281, allocations: 256.8 kB / 0.5046 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1281, allocations: 4 kB / 0.5046 GB, free: 8.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002697/0.1284, allocations: 79.88 kB / 0.5047 GB, free: 8.016 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002623/0.1286, allocations: 36.58 kB / 0.5047 GB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/0.132, allocations: 2.351 MB / 0.507 GB, free: 5.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000108/0.1321, allocations: 125.2 kB / 0.5071 GB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.544e-05/0.1322, allocations: 17.67 kB / 0.5071 GB, free: 5.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.1323, allocations: 67.41 kB / 0.5072 GB, free: 5.277 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1323, allocations: 0 / 0.5072 GB, free: 5.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03194/0.1643, allocations: 4.805 MB / 0.5119 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/10.91, allocations: 7.984 kB / 0.5119 GB, free: 0.6289 MB / 382.1 MB " [Timeout remaining time 649] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.616124064195901] Failed to read output from testmodel.py, exit status != 0: 11.224144763313234 11.236345695 11.119651585 Calling exit ...