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.001379/0.001379, allocations: 107.6 kB / 18.95 MB, free: 2.809 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.001469/0.001469, allocations: 214.4 kB / 22.25 MB, free: 5.117 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.438/1.438, allocations: 230.6 MB / 256 MB, free: 7.793 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.07881/0.07881, allocations: 11.34 MB / 323.8 MB, free: 8.039 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.002157/0.002157, allocations: 75.89 kB / 451 MB, free: 10.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1062, allocations: 56.08 MB / 0.4952 GB, free: 2.16 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.003146/0.1093, allocations: 1.691 MB / 0.4968 GB, free: 472 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1106, allocations: 0.5923 MB / 0.4974 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.1107, allocations: 7.938 kB / 0.4974 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.1108, allocations: 19.75 kB / 0.4974 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.111, allocations: 31.72 kB / 0.4974 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003483/0.1113, allocations: 87.77 kB / 0.4975 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002766/0.1116, allocations: 179.3 kB / 0.4977 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.1117, allocations: 26 kB / 0.4977 GB, free: 15.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002196/0.1119, allocations: 75.7 kB / 0.4978 GB, free: 15.44 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.112, allocations: 63.69 kB / 0.4979 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.072e-05/0.1121, allocations: 16 kB / 0.4979 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.397e-05/0.1121, allocations: 12 kB / 0.4979 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.548e-05/0.1122, allocations: 39.83 kB / 0.4979 GB, free: 15.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.148e-05/0.1122, allocations: 55.66 kB / 0.498 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.1125, allocations: 151.3 kB / 0.4981 GB, free: 15.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1125, allocations: 3.938 kB / 0.4981 GB, free: 15.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1125, allocations: 0 / 0.4981 GB, free: 15.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1125, allocations: 0 / 0.4981 GB, free: 15.11 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.0009215/0.1134, allocations: 451.1 kB / 0.4986 GB, free: 14.63 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.667e-05/0.1134, allocations: 8.031 kB / 0.4986 GB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.803e-05/0.1135, allocations: 46.73 kB / 0.4986 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001536/0.1136, allocations: 28.8 kB / 0.4986 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000343/0.114, allocations: 187.9 kB / 0.4988 GB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.1141, allocations: 115.4 kB / 0.4989 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.1141, allocations: 8.375 kB / 0.4989 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003872/0.1145, allocations: 141.4 kB / 0.4991 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1145, allocations: 3.984 kB / 0.4991 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.1145, allocations: 0 / 0.4991 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1145, allocations: 4 kB / 0.4991 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004854/0.115, allocations: 127.9 kB / 0.4992 GB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000769/0.1158, allocations: 375.6 kB / 0.4996 GB, free: 13.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000458/0.1163, allocations: 122.5 kB / 0.4997 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.1165, allocations: 56.8 kB / 0.4997 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.1165, allocations: 0 / 0.4997 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003597/0.1169, allocations: 135.2 kB / 0.4999 GB, free: 13.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/0.1169, allocations: 4 kB / 0.4999 GB, free: 13.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0008191/0.1177, allocations: 237.5 kB / 0.5001 GB, free: 12.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.1177, allocations: 55.41 kB / 0.5001 GB, free: 12.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.1179, allocations: 183.2 kB / 0.5003 GB, free: 12.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.1179, allocations: 41.69 kB / 0.5004 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.66e-05/0.118, allocations: 124.6 kB / 0.5005 GB, free: 12.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.436e-05/0.1181, allocations: 19.86 kB / 0.5005 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.587e-05/0.1181, allocations: 33.7 kB / 0.5005 GB, free: 12.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1183, allocations: 330.8 kB / 0.5008 GB, free: 12.11 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002763/0.1185, allocations: 89.58 kB / 0.5009 GB, free: 12.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002906/0.1188, allocations: 125.1 kB / 0.501 GB, free: 11.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004782/0.1193, allocations: 176.9 kB / 0.5012 GB, free: 11.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1193, allocations: 4 kB / 0.5012 GB, free: 11.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006278/0.1199, allocations: 256.8 kB / 0.5015 GB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.09e-05/0.12, allocations: 41.62 kB / 0.5015 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.12, allocations: 0 / 0.5015 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.12, allocations: 4 kB / 0.5015 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.1202, allocations: 23.97 kB / 0.5015 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1202, allocations: 4.094 kB / 0.5015 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.1204, allocations: 35.86 kB / 0.5016 GB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1204, allocations: 7.984 kB / 0.5016 GB, free: 11.29 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.000117/0.1205, allocations: 129.8 kB / 0.5017 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.1205, allocations: 15.84 kB / 0.5017 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.687e-05/0.1206, allocations: 21.39 kB / 0.5017 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1206, allocations: 4 kB / 0.5017 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1206, allocations: 0 / 0.5017 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.1206, allocations: 4 kB / 0.5017 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.1208, allocations: 180.8 kB / 0.5019 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1208, allocations: 0 / 0.5019 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000142/0.1209, allocations: 23.91 kB / 0.5019 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.642e-06/0.1209, allocations: 7.938 kB / 0.5019 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.121, allocations: 4 kB / 0.5019 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.121, allocations: 0 / 0.5019 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.121, allocations: 0 / 0.5019 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005667/0.1215, allocations: 208.8 kB / 0.5021 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.756e-05/0.1216, allocations: 15.84 kB / 0.5022 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.958e-05/0.1216, allocations: 7.938 kB / 0.5022 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.1218, allocations: 23.95 kB / 0.5022 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.048e-05/0.1218, allocations: 19.92 kB / 0.5022 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.397e-05/0.1218, allocations: 11.98 kB / 0.5022 GB, free: 10.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.122, allocations: 127.2 kB / 0.5023 GB, free: 10.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.122, allocations: 4 kB / 0.5023 GB, free: 10.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002267/0.1222, allocations: 31.95 kB / 0.5024 GB, free: 10.39 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.0008819/0.1231, allocations: 0.7449 MB / 0.5031 GB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005973/0.1237, allocations: 228.9 kB / 0.5033 GB, free: 9.371 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1237, allocations: 0 / 0.5033 GB, free: 9.371 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.1239, allocations: 71.88 kB / 0.5034 GB, free: 9.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002424/0.1242, allocations: 30.97 kB / 0.5034 GB, free: 9.273 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003044/0.1272, allocations: 2.047 MB / 0.5054 GB, free: 7.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.609e-05/0.1273, allocations: 103.2 kB / 0.5055 GB, free: 6.969 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.267e-05/0.1274, allocations: 13.09 kB / 0.5055 GB, free: 6.957 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.315e-05/0.1275, allocations: 47.41 kB / 0.5056 GB, free: 6.91 MB / 382.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1275, allocations: 4 kB / 0.5056 GB, free: 6.906 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03845/0.1659, allocations: 4.2 MB / 0.5097 GB, free: 2.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.8, allocations: 11.94 kB / 0.5097 GB, free: 2.852 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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.720799183938652] Failed to read output from testmodel.py, exit status != 0: 10.904199782758951 11.125924819 11.009856594 Calling exit ...