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.002054/0.002054, allocations: 110.4 kB / 18.94 MB, free: 2.957 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.002259/0.002259, allocations: 216.3 kB / 22.26 MB, free: 5.133 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.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.996 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.1047/0.1047, allocations: 11.35 MB / 323.8 MB, free: 8.246 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.002277/0.002277, allocations: 63.89 kB / 451 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1077, allocations: 56.07 MB / 0.4952 GB, free: 2.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.004034/0.1117, allocations: 1.842 MB / 0.497 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001505/0.1132, allocations: 0.6584 MB / 0.4977 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.1134, allocations: 15.88 kB / 0.4977 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.1136, allocations: 23.67 kB / 0.4977 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.1137, allocations: 31.67 kB / 0.4977 GB, free: 15.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004214/0.1141, allocations: 111.7 kB / 0.4978 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.1145, allocations: 235.3 kB / 0.4981 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001775/0.1147, allocations: 37.08 kB / 0.4981 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000197/0.1149, allocations: 107.6 kB / 0.4982 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.1151, allocations: 95.53 kB / 0.4983 GB, free: 15.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.1152, allocations: 16 kB / 0.4983 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.305e-05/0.1152, allocations: 16 kB / 0.4983 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.1153, allocations: 47.83 kB / 0.4984 GB, free: 15.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.1154, allocations: 91.45 kB / 0.4985 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.1157, allocations: 195 kB / 0.4986 GB, free: 14.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1157, allocations: 0 / 0.4986 GB, free: 14.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1157, allocations: 0 / 0.4986 GB, free: 14.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.906e-06/0.1157, allocations: 0 / 0.4986 GB, free: 14.84 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.001153/0.1168, allocations: 0.5029 MB / 0.4991 GB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.1169, allocations: 12.03 kB / 0.4992 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.176e-05/0.117, allocations: 50.73 kB / 0.4992 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.117, allocations: 24.8 kB / 0.4992 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004988/0.1175, allocations: 233.8 kB / 0.4994 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.1176, allocations: 93.67 kB / 0.4995 GB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.11e-05/0.1177, allocations: 20.31 kB / 0.4996 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004871/0.1182, allocations: 186 kB / 0.4997 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1182, allocations: 4 kB / 0.4997 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.1182, allocations: 7.984 kB / 0.4997 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1182, allocations: 4 kB / 0.4997 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00052/0.1187, allocations: 147.8 kB / 0.4999 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001173/0.1199, allocations: 0.5342 MB / 0.5004 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005147/0.1204, allocations: 150.4 kB / 0.5006 GB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002507/0.1207, allocations: 76.92 kB / 0.5006 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.82e-05/0.1207, allocations: 0 / 0.5006 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004266/0.1211, allocations: 143.2 kB / 0.5008 GB, free: 12.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.1211, allocations: 0 / 0.5008 GB, free: 12.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009682/0.1221, allocations: 281.3 kB / 0.501 GB, free: 12.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/0.1222, allocations: 59.34 kB / 0.5011 GB, free: 12.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.1224, allocations: 207.1 kB / 0.5013 GB, free: 11.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/0.1225, allocations: 33.64 kB / 0.5013 GB, free: 11.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.1226, allocations: 144.3 kB / 0.5015 GB, free: 11.76 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.147e-05/0.1227, allocations: 39.67 kB / 0.5015 GB, free: 11.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.658e-05/0.1228, allocations: 45.66 kB / 0.5015 GB, free: 11.67 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.1229, allocations: 338.8 kB / 0.5019 GB, free: 11.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.1232, allocations: 79.92 kB / 0.5019 GB, free: 11.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.1235, allocations: 109.6 kB / 0.502 GB, free: 11.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000557/0.1241, allocations: 203.2 kB / 0.5022 GB, free: 10.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1241, allocations: 0 / 0.5022 GB, free: 10.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0007104/0.1248, allocations: 267 kB / 0.5025 GB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.78e-05/0.1248, allocations: 37.69 kB / 0.5025 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1248, allocations: 0 / 0.5025 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.1249, allocations: 4 kB / 0.5025 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006792/0.1255, allocations: 71.98 kB / 0.5026 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1256, allocations: 4 kB / 0.5026 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002222/0.1258, allocations: 35.91 kB / 0.5026 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.1258, allocations: 4 kB / 0.5026 GB, free: 10.49 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.0001487/0.1259, allocations: 145.6 kB / 0.5028 GB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.126, allocations: 19.86 kB / 0.5028 GB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.991e-05/0.126, allocations: 21.39 kB / 0.5028 GB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.126, allocations: 4 kB / 0.5028 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.1261, allocations: 0 / 0.5028 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1261, allocations: 0 / 0.5028 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.1264, allocations: 252.4 kB / 0.5031 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.554e-06/0.1264, allocations: 0 / 0.5031 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007346/0.1271, allocations: 71.94 kB / 0.5031 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1271, allocations: 4 kB / 0.5031 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.1272, allocations: 0 / 0.5031 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1272, allocations: 0 / 0.5031 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1272, allocations: 0 / 0.5031 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008832/0.128, allocations: 320.6 kB / 0.5034 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.653e-05/0.1281, allocations: 19.94 kB / 0.5035 GB, free: 9.578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.1281, allocations: 8 kB / 0.5035 GB, free: 9.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000184/0.1283, allocations: 27.97 kB / 0.5035 GB, free: 9.543 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.691e-05/0.1284, allocations: 19.97 kB / 0.5035 GB, free: 9.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.1284, allocations: 7.984 kB / 0.5035 GB, free: 9.516 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001256/0.1285, allocations: 148.6 kB / 0.5037 GB, free: 9.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1285, allocations: 0 / 0.5037 GB, free: 9.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002442/0.1288, allocations: 39.89 kB / 0.5037 GB, free: 9.332 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.001203/0.13, allocations: 0.8464 MB / 0.5045 GB, free: 8.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006798/0.1306, allocations: 243 kB / 0.5048 GB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1307, allocations: 0 / 0.5048 GB, free: 8.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002745/0.1309, allocations: 75.94 kB / 0.5048 GB, free: 8.129 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000269/0.1312, allocations: 30.5 kB / 0.5049 GB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003565/0.1348, allocations: 2.234 MB / 0.507 GB, free: 5.766 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003815/0.1351, allocations: 0.7359 MB / 0.5078 GB, free: 5.004 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.1352, allocations: 21.48 kB / 0.5078 GB, free: 4.984 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.1354, allocations: 67.41 kB / 0.5078 GB, free: 4.918 MB / 382.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1354, allocations: 0 / 0.5078 GB, free: 4.918 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04283/0.1782, allocations: 4.321 MB / 0.5121 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.25, allocations: 0 / 0.5121 GB, free: 0.7422 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.078237602952868] Failed to read output from testmodel.py, exit status != 0: 11.573524505831301 11.58757849 11.46888864 Calling exit ...