Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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.001332/0.001332, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.00146/0.00146, allocations: 214.5 kB / 22.24 MB, free: 5.258 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.385/1.385, allocations: 230.6 MB / 256 MB, free: 7.777 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.06358/0.06358, allocations: 11.35 MB / 323.8 MB, free: 8.012 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.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",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.002024/0.002024, allocations: 75.89 kB / 451 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1065, allocations: 56.07 MB / 0.4952 GB, free: 2.145 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.002942/0.1094, allocations: 1.7 MB / 0.4968 GB, free: 444 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1107, allocations: 0.5846 MB / 0.4974 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.1108, allocations: 11.88 kB / 0.4974 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.1109, allocations: 15.8 kB / 0.4974 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.924e-05/0.111, allocations: 39.66 kB / 0.4975 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003124/0.1113, allocations: 75.84 kB / 0.4975 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.1115, allocations: 183.3 kB / 0.4977 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1116, allocations: 18.02 kB / 0.4977 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.1118, allocations: 83.69 kB / 0.4978 GB, free: 15.42 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1119, allocations: 59.69 kB / 0.4979 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.112, allocations: 12 kB / 0.4979 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.423e-05/0.112, allocations: 19.98 kB / 0.4979 GB, free: 15.33 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.927e-05/0.112, allocations: 35.86 kB / 0.4979 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.852e-05/0.1121, allocations: 55.7 kB / 0.498 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.1123, allocations: 147.3 kB / 0.4981 GB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1123, allocations: 3.984 kB / 0.4981 GB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1123, allocations: 0 / 0.4981 GB, free: 15.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1124, allocations: 3.938 kB / 0.4981 GB, free: 15.09 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0009006/0.1133, allocations: 447.1 kB / 0.4985 GB, free: 14.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1133, allocations: 16.03 kB / 0.4986 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.351e-05/0.1133, allocations: 42.75 kB / 0.4986 GB, free: 14.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.1135, allocations: 28.78 kB / 0.4986 GB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003447/0.1138, allocations: 187.8 kB / 0.4988 GB, free: 14.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1139, allocations: 115.4 kB / 0.4989 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.602e-05/0.114, allocations: 16.31 kB / 0.4989 GB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003805/0.1143, allocations: 137.5 kB / 0.4991 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.1143, allocations: 0 / 0.4991 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.1144, allocations: 3.984 kB / 0.4991 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1144, allocations: 4 kB / 0.4991 GB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.1148, allocations: 123.9 kB / 0.4992 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000772/0.1156, allocations: 367.6 kB / 0.4995 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.1161, allocations: 118.5 kB / 0.4997 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.1163, allocations: 68.73 kB / 0.4997 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/0.1163, allocations: 0 / 0.4997 GB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003659/0.1167, allocations: 131.3 kB / 0.4998 GB, free: 13.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.542e-06/0.1167, allocations: 0 / 0.4998 GB, free: 13.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008358/0.1175, allocations: 241.5 kB / 0.5001 GB, free: 12.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.1176, allocations: 51.56 kB / 0.5001 GB, free: 12.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001951/0.1178, allocations: 187.2 kB / 0.5003 GB, free: 12.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.024e-05/0.1178, allocations: 29.7 kB / 0.5003 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.412e-05/0.1179, allocations: 128.2 kB / 0.5005 GB, free: 12.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.989e-05/0.1179, allocations: 27.84 kB / 0.5005 GB, free: 12.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.086e-05/0.118, allocations: 33.7 kB / 0.5005 GB, free: 12.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1182, allocations: 326.8 kB / 0.5008 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.1184, allocations: 89.64 kB / 0.5009 GB, free: 12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.1187, allocations: 130.5 kB / 0.501 GB, free: 11.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.1192, allocations: 176.9 kB / 0.5012 GB, free: 11.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.1192, allocations: 0 / 0.5012 GB, free: 11.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006198/0.1198, allocations: 264.8 kB / 0.5015 GB, free: 11.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.1199, allocations: 37.58 kB / 0.5015 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1199, allocations: 4 kB / 0.5015 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1199, allocations: 0 / 0.5015 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.1201, allocations: 35.89 kB / 0.5015 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1201, allocations: 0 / 0.5015 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.1203, allocations: 43.94 kB / 0.5016 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.438e-05/0.1203, allocations: 4 kB / 0.5016 GB, free: 11.26 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,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0001187/0.1204, allocations: 121.8 kB / 0.5017 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.02e-05/0.1204, allocations: 23.83 kB / 0.5017 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.729e-05/0.1205, allocations: 17.41 kB / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1205, allocations: 0 / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1205, allocations: 0 / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.1205, allocations: 0 / 0.5017 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.1207, allocations: 180.7 kB / 0.5019 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.1207, allocations: 4 kB / 0.5019 GB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.1208, allocations: 27.91 kB / 0.5019 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1208, allocations: 3.938 kB / 0.5019 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.1209, allocations: 7.984 kB / 0.5019 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1209, allocations: 4 kB / 0.502 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1209, allocations: 0 / 0.502 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.1214, allocations: 200.9 kB / 0.5021 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.1214, allocations: 23.77 kB / 0.5022 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.1215, allocations: 7.938 kB / 0.5022 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.1216, allocations: 23.97 kB / 0.5022 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.123e-05/0.1217, allocations: 19.97 kB / 0.5022 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.1217, allocations: 0 / 0.5022 GB, free: 10.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001063/0.1218, allocations: 131.2 kB / 0.5023 GB, free: 10.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1218, allocations: 4 kB / 0.5023 GB, free: 10.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.122, allocations: 27.95 kB / 0.5024 GB, free: 10.38 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: 6 ($whenCondition2,$whenCondition1,Ptr.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 (10): * Single equations (assignments): 7 * 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.000875/0.1229, allocations: 0.7489 MB / 0.5031 GB, free: 9.598 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005935/0.1235, allocations: 233 kB / 0.5033 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1235, allocations: 0 / 0.5033 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002522/0.1238, allocations: 71.88 kB / 0.5034 GB, free: 9.281 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.124, allocations: 27.97 kB / 0.5034 GB, free: 9.254 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003063/0.1271, allocations: 2.047 MB / 0.5054 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.068e-05/0.1272, allocations: 99.23 kB / 0.5055 GB, free: 6.953 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.339e-05/0.1272, allocations: 17.08 kB / 0.5055 GB, free: 6.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.415e-05/0.1273, allocations: 47.42 kB / 0.5056 GB, free: 6.891 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1273, allocations: 3.938 kB / 0.5056 GB, free: 6.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03185/0.1592, allocations: 4.193 MB / 0.5097 GB, free: 2.855 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/10.86, allocations: 7.938 kB / 0.5097 GB, free: 2.848 MB / 382.1 MB " [Timeout remaining time 649] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.491398426238447] Failed to read output from testmodel.py, exit status != 0: 10.960833149030805 11.160606696 11.045822058 Calling exit ...