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.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.00122/0.00122, allocations: 100.3 kB / 19.73 MB, free: 2.133 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.001315/0.001315, allocations: 217.4 kB / 23.03 MB, free: 4.949 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.355/1.355, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.06171/0.06171, allocations: 11.35 MB / 324.6 MB, free: 8.051 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.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingI",fmuType="cs",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.001903/0.001903, allocations: 67.84 kB / 451.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1124, allocations: 56.07 MB / 0.4959 GB, free: 2.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingI): time 0.002925/0.1153, allocations: 1.727 MB / 0.4976 GB, free: 456 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001154/0.1165, allocations: 0.5883 MB / 0.4982 GB, free: 15.85 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.707e-05/0.1166, allocations: 7.938 kB / 0.4982 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.1167, allocations: 19.73 kB / 0.4982 GB, free: 15.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.365e-05/0.1168, allocations: 39.66 kB / 0.4982 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002868/0.1171, allocations: 87.81 kB / 0.4983 GB, free: 15.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002881/0.1173, allocations: 203.4 kB / 0.4985 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/0.1175, allocations: 30.02 kB / 0.4986 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.1176, allocations: 87.69 kB / 0.4986 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001493/0.1177, allocations: 91.53 kB / 0.4987 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.793e-05/0.1178, allocations: 16 kB / 0.4987 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.132e-05/0.1178, allocations: 19.94 kB / 0.4988 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.364e-05/0.1179, allocations: 39.84 kB / 0.4988 GB, free: 15.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.381e-05/0.118, allocations: 67.64 kB / 0.4989 GB, free: 15.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002523/0.1182, allocations: 167.3 kB / 0.499 GB, free: 14.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.1182, allocations: 8 kB / 0.499 GB, free: 14.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1182, allocations: 0 / 0.499 GB, free: 14.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1182, allocations: 0 / 0.499 GB, free: 14.98 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.00113/0.1194, allocations: 0.5028 MB / 0.4995 GB, free: 14.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1194, allocations: 12.03 kB / 0.4995 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.188e-05/0.1194, allocations: 4.188 kB / 0.4995 GB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.67e-05/0.1195, allocations: 42.73 kB / 0.4996 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.104e-05/0.1195, allocations: 28.73 kB / 0.4996 GB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003636/0.1199, allocations: 198.1 kB / 0.4998 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.208e-05/0.12, allocations: 71.91 kB / 0.4999 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.868e-05/0.12, allocations: 16.11 kB / 0.4999 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/0.1205, allocations: 199.9 kB / 0.5001 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1205, allocations: 0 / 0.5001 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.1206, allocations: 4 kB / 0.5001 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1206, allocations: 0 / 0.5001 GB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005925/0.1212, allocations: 164.6 kB / 0.5002 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000978/0.1221, allocations: 0.5739 MB / 0.5008 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005976/0.1227, allocations: 154.4 kB / 0.5009 GB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002887/0.123, allocations: 76.78 kB / 0.501 GB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.695e-05/0.123, allocations: 7.938 kB / 0.501 GB, free: 12.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004644/0.1235, allocations: 159.4 kB / 0.5012 GB, free: 12.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.1235, allocations: 0 / 0.5012 GB, free: 12.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=13): time 0.001035/0.1245, allocations: 293.4 kB / 0.5014 GB, free: 12.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.558e-05/0.1246, allocations: 59.39 kB / 0.5015 GB, free: 12.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/0.1248, allocations: 203.8 kB / 0.5017 GB, free: 12.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.208e-05/0.1248, allocations: 29.69 kB / 0.5017 GB, free: 12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.125, allocations: 144.2 kB / 0.5019 GB, free: 11.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.78e-05/0.125, allocations: 35.73 kB / 0.5019 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.592e-05/0.1251, allocations: 41.7 kB / 0.5019 GB, free: 11.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1252, allocations: 334.8 kB / 0.5023 GB, free: 11.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.1256, allocations: 147.3 kB / 0.5024 GB, free: 11.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003908/0.126, allocations: 197.3 kB / 0.5026 GB, free: 11.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006282/0.1266, allocations: 269.2 kB / 0.5028 GB, free: 10.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1266, allocations: 0 / 0.5028 GB, free: 10.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008511/0.1275, allocations: 414.1 kB / 0.5032 GB, free: 10.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.1275, allocations: 63.34 kB / 0.5033 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.1275, allocations: 3.984 kB / 0.5033 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.1276, allocations: 4 kB / 0.5033 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.128, allocations: 60.14 kB / 0.5034 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.128, allocations: 3.938 kB / 0.5034 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002592/0.1282, allocations: 47.84 kB / 0.5034 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.1283, allocations: 8 kB / 0.5034 GB, free: 10.12 MB / 382.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.0001295/0.1284, allocations: 134.4 kB / 0.5035 GB, free: 9.984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.1284, allocations: 23.83 kB / 0.5036 GB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.483e-05/0.1285, allocations: 21.47 kB / 0.5036 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1285, allocations: 4 kB / 0.5036 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1285, allocations: 0 / 0.5036 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1285, allocations: 3.984 kB / 0.5036 GB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.1287, allocations: 200.6 kB / 0.5038 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1287, allocations: 0 / 0.5038 GB, free: 9.691 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.1292, allocations: 59.88 kB / 0.5038 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.1292, allocations: 0 / 0.5038 GB, free: 9.633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.1292, allocations: 8 kB / 0.5039 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.1292, allocations: 0 / 0.5039 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1292, allocations: 0 / 0.5039 GB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.1302, allocations: 348.7 kB / 0.5042 GB, free: 9.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.781e-05/0.1302, allocations: 15.88 kB / 0.5042 GB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.1303, allocations: 4 kB / 0.5042 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.1305, allocations: 31.95 kB / 0.5042 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.92e-05/0.1306, allocations: 27.95 kB / 0.5043 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.1306, allocations: 4 kB / 0.5043 GB, free: 9.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001239/0.1307, allocations: 145.4 kB / 0.5044 GB, free: 9.043 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1307, allocations: 4.062 kB / 0.5044 GB, free: 9.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.131, allocations: 39.95 kB / 0.5044 GB, free: 9 MB / 382.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.001321/0.1323, allocations: 0.8765 MB / 0.5053 GB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007999/0.1331, allocations: 373.9 kB / 0.5057 GB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1331, allocations: 448 / 0.5057 GB, free: 7.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003268/0.1334, allocations: 99.84 kB / 0.5058 GB, free: 7.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.1337, allocations: 31.86 kB / 0.5058 GB, free: 7.566 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003792/0.1375, allocations: 2.545 MB / 0.5083 GB, free: 4.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.1376, allocations: 120.1 kB / 0.5084 GB, free: 4.703 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.577e-05/0.1377, allocations: 13.48 kB / 0.5084 GB, free: 4.691 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.1378, allocations: 55.42 kB / 0.5085 GB, free: 4.637 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1378, allocations: 4 kB / 0.5085 GB, free: 4.633 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.1663, allocations: 4.755 MB / 0.5131 GB, free: 52 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/10.98, allocations: 15.56 kB / 0.5131 GB, free: 40 kB / 382.1 MB " [Timeout remaining time 649] (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: 13.686592551064678] Failed to read output from testmodel.py, exit status != 0: 11.370962450047955 11.38256893 11.261796527 Calling exit ...