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.001287/0.001287, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.00175/0.00175, allocations: 219.5 kB / 22.26 MB, free: 5.125 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.452/1.452, allocations: 230.6 MB / 256 MB, free: 8.008 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.06643/0.06643, allocations: 11.35 MB / 323.8 MB, free: 8.227 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.002319/0.002319, allocations: 67.91 kB / 451 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1037, allocations: 56.07 MB / 0.4952 GB, free: 2.312 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.003278/0.107, allocations: 1.757 MB / 0.4969 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1083, allocations: 0.635 MB / 0.4976 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.1084, allocations: 7.938 kB / 0.4976 GB, free: 15.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.1085, allocations: 19.8 kB / 0.4976 GB, free: 15.88 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001021/0.1086, allocations: 31.67 kB / 0.4976 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.109, allocations: 87.7 kB / 0.4977 GB, free: 15.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003055/0.1093, allocations: 175.5 kB / 0.4979 GB, free: 15.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001418/0.1094, allocations: 29.94 kB / 0.4979 GB, free: 15.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003167/0.1097, allocations: 83.64 kB / 0.498 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.1099, allocations: 63.69 kB / 0.498 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.874e-05/0.1099, allocations: 12 kB / 0.4981 GB, free: 15.4 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.328e-05/0.11, allocations: 20 kB / 0.4981 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.849e-05/0.1101, allocations: 39.83 kB / 0.4981 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.1102, allocations: 67.59 kB / 0.4982 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003423/0.1105, allocations: 143.4 kB / 0.4983 GB, free: 15.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1105, allocations: 3.938 kB / 0.4983 GB, free: 15.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1105, allocations: 0 / 0.4983 GB, free: 15.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.1106, allocations: 0 / 0.4983 GB, free: 15.13 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.001276/0.1118, allocations: 451.1 kB / 0.4987 GB, free: 14.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.1119, allocations: 12.03 kB / 0.4988 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.551e-05/0.112, allocations: 38.73 kB / 0.4988 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002245/0.1122, allocations: 32.73 kB / 0.4988 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.1127, allocations: 187.9 kB / 0.499 GB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.1128, allocations: 119.4 kB / 0.4991 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.1129, allocations: 4.375 kB / 0.4991 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004446/0.1133, allocations: 139.7 kB / 0.4993 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.1133, allocations: 0 / 0.4993 GB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.1133, allocations: 11.94 kB / 0.4993 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.1133, allocations: 0 / 0.4993 GB, free: 14.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004759/0.1138, allocations: 123.9 kB / 0.4994 GB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008343/0.1146, allocations: 395.5 kB / 0.4998 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004584/0.1151, allocations: 122.5 kB / 0.4999 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.1153, allocations: 64.8 kB / 0.4999 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.524e-05/0.1154, allocations: 0 / 0.4999 GB, free: 13.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000383/0.1158, allocations: 127.2 kB / 0.5001 GB, free: 13.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.694e-06/0.1158, allocations: 4 kB / 0.5001 GB, free: 13.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0009313/0.1167, allocations: 241.4 kB / 0.5003 GB, free: 12.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.1168, allocations: 55.41 kB / 0.5003 GB, free: 12.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.117, allocations: 183.2 kB / 0.5005 GB, free: 12.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.117, allocations: 29.7 kB / 0.5006 GB, free: 12.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1171, allocations: 128.2 kB / 0.5007 GB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.1172, allocations: 23.84 kB / 0.5007 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.602e-05/0.1172, allocations: 33.7 kB / 0.5007 GB, free: 12.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1174, allocations: 326.8 kB / 0.501 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.1177, allocations: 63.94 kB / 0.5011 GB, free: 12.06 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00028/0.118, allocations: 99.36 kB / 0.5012 GB, free: 11.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004896/0.1184, allocations: 172.9 kB / 0.5014 GB, free: 11.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1184, allocations: 0 / 0.5014 GB, free: 11.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006228/0.1191, allocations: 239 kB / 0.5016 GB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.301e-05/0.1191, allocations: 37.64 kB / 0.5016 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1191, allocations: 4 kB / 0.5016 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.944e-05/0.1192, allocations: 4 kB / 0.5016 GB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.1193, allocations: 32.06 kB / 0.5017 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.1193, allocations: 0 / 0.5017 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.1195, allocations: 39.83 kB / 0.5017 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1196, allocations: 8 kB / 0.5017 GB, free: 11.39 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.0001368/0.1197, allocations: 131.4 kB / 0.5018 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.976e-05/0.1197, allocations: 19.84 kB / 0.5019 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.1198, allocations: 25.39 kB / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1198, allocations: 3.938 kB / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1198, allocations: 0 / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.1198, allocations: 0 / 0.5019 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002361/0.12, allocations: 192.8 kB / 0.5021 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.12, allocations: 0 / 0.5021 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.1202, allocations: 27.97 kB / 0.5021 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-06/0.1202, allocations: 3.938 kB / 0.5021 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.1202, allocations: 0 / 0.5021 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1202, allocations: 0 / 0.5021 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1202, allocations: 8 kB / 0.5021 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/0.1208, allocations: 205.2 kB / 0.5023 GB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.708e-05/0.1208, allocations: 15.84 kB / 0.5023 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.1209, allocations: 7.938 kB / 0.5023 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.121, allocations: 31.95 kB / 0.5024 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.767e-05/0.1211, allocations: 15.97 kB / 0.5024 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.1211, allocations: 4 kB / 0.5024 GB, free: 10.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.1212, allocations: 131.2 kB / 0.5025 GB, free: 10.51 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1212, allocations: 0 / 0.5025 GB, free: 10.51 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002253/0.1215, allocations: 28 kB / 0.5025 GB, free: 10.48 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.0008866/0.1223, allocations: 0.7449 MB / 0.5033 GB, free: 9.707 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006029/0.1229, allocations: 199.2 kB / 0.5034 GB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1229, allocations: 0 / 0.5034 GB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.1232, allocations: 71.88 kB / 0.5035 GB, free: 9.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002692/0.1235, allocations: 28.17 kB / 0.5035 GB, free: 9.402 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/0.1268, allocations: 1.937 MB / 0.5054 GB, free: 7.352 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003832/0.1272, allocations: 0.7162 MB / 0.5061 GB, free: 6.609 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.389e-05/0.1273, allocations: 13.08 kB / 0.5061 GB, free: 6.598 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.1274, allocations: 51.36 kB / 0.5062 GB, free: 6.547 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1274, allocations: 0 / 0.5062 GB, free: 6.547 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03302/0.1604, allocations: 3.691 MB / 0.5098 GB, free: 3.008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.23, allocations: 10.56 kB / 0.5098 GB, free: 3 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.99514791299589] Failed to read output from testmodel.py, exit status != 0: 11.338298868155107 11.527586296 11.414255207 Calling exit ...