Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.09117/0.09117, allocations: 11.36 MB / 314 MB, free: 14.93 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 67.89 kB / 437.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1071, allocations: 54.83 MB / 492.2 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.003144/0.1102, allocations: 1.77 MB / 493.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.1113, allocations: 0.5922 MB / 494.5 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.672e-05/0.1114, allocations: 7.938 kB / 494.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.1115, allocations: 19.73 kB / 494.6 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.707e-05/0.1116, allocations: 35.66 kB / 494.6 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002613/0.1119, allocations: 87.81 kB / 494.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002817/0.1122, allocations: 207.4 kB / 494.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.1123, allocations: 25.67 kB / 494.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.1124, allocations: 91.62 kB / 495 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.1125, allocations: 83.59 kB / 495.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.1126, allocations: 16 kB / 495.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.837e-05/0.1126, allocations: 19.94 kB / 495.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.695e-05/0.1126, allocations: 35.89 kB / 495.1 MB, free: 496 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.473e-05/0.1127, allocations: 87.45 kB / 495.2 MB, free: 408 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.113, allocations: 167.3 kB / 495.4 MB, free: 240 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.113, allocations: 0 / 495.4 MB, free: 240 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.113, allocations: 0 / 495.4 MB, free: 240 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.113, allocations: 4 kB / 495.4 MB, free: 236 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001232/0.1142, allocations: 0.5825 MB / 496 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1143, allocations: 15.89 kB / 496 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.363e-05/0.1143, allocations: 46.73 kB / 496 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.791e-05/0.1144, allocations: 16.84 kB / 496.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.1148, allocations: 263.9 kB / 496.3 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.71e-05/0.1149, allocations: 67.95 kB / 496.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.885e-05/0.1149, allocations: 20.36 kB / 496.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004881/0.1154, allocations: 192.9 kB / 496.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1154, allocations: 0 / 496.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.1155, allocations: 11.94 kB / 496.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1155, allocations: 0 / 496.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005617/0.116, allocations: 151.8 kB / 496.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.1171, allocations: 0.6374 MB / 497.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00058/0.1177, allocations: 154.4 kB / 497.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.118, allocations: 88.78 kB / 497.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.118, allocations: 0 / 497.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004664/0.1184, allocations: 163.1 kB / 497.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.1185, allocations: 0 / 497.8 MB, free: 13.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009947/0.1194, allocations: 293.5 kB / 498.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.1195, allocations: 59.41 kB / 498.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002197/0.1197, allocations: 199.8 kB / 498.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1198, allocations: 33.7 kB / 498.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1199, allocations: 136.3 kB / 498.5 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.991e-05/0.1199, allocations: 39.69 kB / 498.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.294e-05/0.12, allocations: 45.7 kB / 498.6 MB, free: 12.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.1202, allocations: 330.8 kB / 498.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003221/0.1205, allocations: 88.12 kB / 499 MB, free: 12.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003675/0.1209, allocations: 153.6 kB / 499.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007168/0.1216, allocations: 277.1 kB / 499.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1216, allocations: 0 / 499.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007818/0.1224, allocations: 336.8 kB / 499.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.78e-05/0.1224, allocations: 67.44 kB / 499.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1224, allocations: 0 / 499.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.1224, allocations: 4 kB / 499.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003793/0.1228, allocations: 55.89 kB / 499.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.1228, allocations: 7.984 kB / 499.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.1231, allocations: 47.8 kB / 499.9 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.1231, allocations: 16 kB / 499.9 MB, free: 11.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,Itr.ts,Input.count,$PRE.Input.count,Input.T_start,$PRE.Input.T_start,$whenCondition1,$whenCondition3,I.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 2 * 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.0001802/0.1233, allocations: 133.8 kB / 0.4883 GB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.08e-05/0.1233, allocations: 19.84 kB / 0.4884 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.278e-05/0.1234, allocations: 21.52 kB / 0.4884 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1234, allocations: 0 / 0.4884 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.1234, allocations: 0 / 0.4884 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1234, allocations: 0 / 0.4884 GB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.1237, allocations: 249.5 kB / 0.4886 GB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1237, allocations: 7.938 kB / 0.4886 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003868/0.1241, allocations: 51.94 kB / 0.4887 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1241, allocations: 0 / 0.4887 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.1241, allocations: 0 / 0.4887 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1241, allocations: 4 kB / 0.4887 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1241, allocations: 3.938 kB / 0.4887 GB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009887/0.1251, allocations: 340.6 kB / 0.489 GB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.018e-05/0.1252, allocations: 96.97 kB / 0.4891 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.396e-05/0.1252, allocations: 12.06 kB / 0.4891 GB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1254, allocations: 27.95 kB / 0.4891 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.429e-05/0.1255, allocations: 27.97 kB / 0.4892 GB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.1255, allocations: 4 kB / 0.4892 GB, free: 10.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001229/0.1256, allocations: 145.5 kB / 0.4893 GB, free: 10.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1256, allocations: 0 / 0.4893 GB, free: 10.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003456/0.126, allocations: 43.94 kB / 0.4893 GB, free: 10.08 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (I.y,Itr.y) * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,Input.T_start,Input.count,Itr.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 2 (Input.count,TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.001342/0.1273, allocations: 0.8965 MB / 0.4902 GB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007551/0.1281, allocations: 313.2 kB / 0.4905 GB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1281, allocations: 4.125 kB / 0.4905 GB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003372/0.1284, allocations: 91.92 kB / 0.4906 GB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.1287, allocations: 35.44 kB / 0.4906 GB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003658/0.1324, allocations: 2.301 MB / 0.4929 GB, free: 6.266 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.1328, allocations: 0.728 MB / 0.4936 GB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.497e-05/0.1328, allocations: 17.55 kB / 0.4936 GB, free: 5.496 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.133, allocations: 59.41 kB / 0.4937 GB, free: 5.438 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.133, allocations: 0 / 0.4937 GB, free: 5.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.1616, allocations: 4.356 MB / 0.4979 GB, free: 1.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.385, allocations: 18.25 kB / 0.498 GB, free: 1.219 MB / 366.1 MB " [Timeout remaining time 652] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.869657185859978] Failed to read output from testmodel.py, exit status != 0: 8.456036312971264 8.48599682 8.367898941 Calling exit ...