Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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.001275/0.001275, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001514/0.001514, allocations: 218 kB / 23.01 MB, free: 4.609 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.412/1.412, allocations: 230.6 MB / 256.8 MB, free: 8.059 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.06389/0.06389, allocations: 11.35 MB / 324.5 MB, free: 8.258 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: translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO") translateModel(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO") [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.002058/0.002058, allocations: 78.06 kB / 452.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1314, allocations: 56.06 MB / 0.4964 GB, free: 1.879 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.003115/0.1345, allocations: 1.858 MB / 0.4983 GB, free: 12 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.1357, allocations: 0.6507 MB / 0.4989 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.1358, allocations: 15.88 kB / 0.4989 GB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.136, allocations: 23.67 kB / 0.4989 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.126e-05/0.1361, allocations: 35.66 kB / 0.499 GB, free: 15.28 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.1364, allocations: 103.8 kB / 0.4991 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000317/0.1367, allocations: 223.4 kB / 0.4993 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1368, allocations: 48.77 kB / 0.4993 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.137, allocations: 103.5 kB / 0.4994 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000187/0.1372, allocations: 103.5 kB / 0.4995 GB, free: 14.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.1372, allocations: 16 kB / 0.4995 GB, free: 14.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.497e-05/0.1373, allocations: 20 kB / 0.4996 GB, free: 14.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.705e-05/0.1373, allocations: 39.84 kB / 0.4996 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1374, allocations: 95.45 kB / 0.4997 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002878/0.1377, allocations: 191.1 kB / 0.4999 GB, free: 14.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1377, allocations: 4 kB / 0.4999 GB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.1377, allocations: 3.984 kB / 0.4999 GB, free: 14.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.297e-05/0.1377, allocations: 3.938 kB / 0.4999 GB, free: 14.34 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001104/0.1388, allocations: 0.5051 MB / 0.5004 GB, free: 13.8 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1389, allocations: 8.031 kB / 0.5004 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.328e-05/0.139, allocations: 28.8 kB / 0.5004 GB, free: 13.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004455/0.1394, allocations: 225.8 kB / 0.5006 GB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.1395, allocations: 101.6 kB / 0.5007 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.1396, allocations: 20.33 kB / 0.5007 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004692/0.14, allocations: 181.7 kB / 0.5009 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.14, allocations: 0 / 0.5009 GB, free: 13.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.1401, allocations: 7.984 kB / 0.5009 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1401, allocations: 4 kB / 0.5009 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004925/0.1406, allocations: 144.4 kB / 0.5011 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.1416, allocations: 0.5498 MB / 0.5016 GB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004662/0.1421, allocations: 134.5 kB / 0.5017 GB, free: 12.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.1423, allocations: 76.78 kB / 0.5018 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1424, allocations: 0 / 0.5018 GB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000417/0.1428, allocations: 151.4 kB / 0.5019 GB, free: 12.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.1428, allocations: 0 / 0.5019 GB, free: 12.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008991/0.1437, allocations: 277.3 kB / 0.5022 GB, free: 11.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.1437, allocations: 51.41 kB / 0.5023 GB, free: 11.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002088/0.1439, allocations: 211.1 kB / 0.5025 GB, free: 11.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.144, allocations: 25.7 kB / 0.5025 GB, free: 11.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1441, allocations: 144.3 kB / 0.5026 GB, free: 11.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.333e-05/0.1441, allocations: 39.69 kB / 0.5027 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.128e-05/0.1442, allocations: 45.66 kB / 0.5027 GB, free: 11.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000168/0.1444, allocations: 334.8 kB / 0.503 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.1447, allocations: 75.94 kB / 0.5031 GB, free: 10.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.145, allocations: 115.3 kB / 0.5032 GB, free: 10.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005264/0.1455, allocations: 199.7 kB / 0.5034 GB, free: 10.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.1455, allocations: 0 / 0.5034 GB, free: 10.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006774/0.1462, allocations: 282.9 kB / 0.5037 GB, free: 10.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.329e-05/0.1462, allocations: 29.7 kB / 0.5037 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1462, allocations: 0 / 0.5037 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.1462, allocations: 4 kB / 0.5037 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007169/0.1469, allocations: 72.03 kB / 0.5038 GB, free: 10.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.147, allocations: 7.938 kB / 0.5038 GB, free: 10.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.1472, allocations: 35.91 kB / 0.5038 GB, free: 10.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.948e-05/0.1472, allocations: 8 kB / 0.5038 GB, free: 10.05 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,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0001493/0.1473, allocations: 129.7 kB / 0.5039 GB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.1474, allocations: 19.86 kB / 0.504 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.58e-05/0.1474, allocations: 29.39 kB / 0.504 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.1474, allocations: 0 / 0.504 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1474, allocations: 0 / 0.504 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1474, allocations: 0 / 0.504 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002982/0.1477, allocations: 252.4 kB / 0.5042 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1477, allocations: 0 / 0.5042 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007317/0.1485, allocations: 75.88 kB / 0.5043 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1485, allocations: 0 / 0.5043 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.1485, allocations: 7.984 kB / 0.5043 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1485, allocations: 0 / 0.5043 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1485, allocations: 0 / 0.5043 GB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008794/0.1494, allocations: 317.1 kB / 0.5046 GB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.1494, allocations: 15.91 kB / 0.5046 GB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.054e-05/0.1494, allocations: 4.031 kB / 0.5046 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.1496, allocations: 23.97 kB / 0.5047 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.1497, allocations: 19.97 kB / 0.5047 GB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.1497, allocations: 8 kB / 0.5047 GB, free: 9.102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001355/0.1498, allocations: 152.6 kB / 0.5048 GB, free: 8.953 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1498, allocations: 0 / 0.5048 GB, free: 8.953 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002308/0.1501, allocations: 39.89 kB / 0.5049 GB, free: 8.914 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.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 (12): * Single equations (assignments): 9 * 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.0001205/0.1502, allocations: 111.2 kB / 0.505 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006404/0.1508, allocations: 227.3 kB / 0.5052 GB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1508, allocations: 0 / 0.5052 GB, free: 8.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002727/0.1511, allocations: 87.86 kB / 0.5053 GB, free: 8.473 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.1513, allocations: 24.69 kB / 0.5053 GB, free: 8.445 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009095/0.1523, allocations: 430.8 kB / 0.5057 GB, free: 7.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003856/0.1526, allocations: 0.732 MB / 0.5064 GB, free: 7.234 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.804e-05/0.1527, allocations: 23.44 kB / 0.5064 GB, free: 7.215 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.1527, allocations: 0 / 0.5064 GB, free: 7.215 MB / 382.1 MB Notification: Performance of Templates: time 0.004657/0.1574, allocations: 2.449 MB / 0.5088 GB, free: 4.773 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.makefile [Timeout 660] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.195135543122888] Failed to read output from testmodel.py, exit status != 0: 0.16617638687603176 0.358258625 0.21802427500000002 Calling exit ...