Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.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.001852/0.001852, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.002303/0.002303, allocations: 213.1 kB / 22.24 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.777 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.06284/0.06284, allocations: 11.35 MB / 323.8 MB, free: 8.02 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.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",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.002026/0.002026, allocations: 71.91 kB / 451 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1138, allocations: 56.07 MB / 0.4952 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004455/0.1182, allocations: 2.361 MB / 0.4975 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003113/0.1213, allocations: 1.61 MB / 0.499 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.1215, allocations: 19.81 kB / 0.499 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000786/0.1223, allocations: 226.9 kB / 0.4993 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004775/0.1228, allocations: 205.6 kB / 0.4995 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009465/0.1237, allocations: 427 kB / 0.4999 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007993/0.1245, allocations: 0.6599 MB / 0.5005 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.1247, allocations: 61.52 kB / 0.5006 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.125, allocations: 235.1 kB / 0.5008 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003571/0.1254, allocations: 250.9 kB / 0.501 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.813e-05/0.1254, allocations: 36 kB / 0.5011 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002852/0.1257, allocations: 151.9 kB / 0.5012 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001794/0.1259, allocations: 147.4 kB / 0.5014 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.1261, allocations: 166.9 kB / 0.5015 GB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006958/0.1268, allocations: 0.5562 MB / 0.5021 GB, free: 11.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1268, allocations: 7.938 kB / 0.5021 GB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1268, allocations: 0 / 0.5021 GB, free: 11.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.1268, allocations: 0 / 0.5021 GB, free: 11.03 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001485/0.1283, allocations: 0.832 MB / 0.5029 GB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1283, allocations: 8.031 kB / 0.5029 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.204e-05/0.1284, allocations: 78.59 kB / 0.503 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.1285, allocations: 64.52 kB / 0.503 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006997/0.1292, allocations: 386.9 kB / 0.5034 GB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.956e-05/0.1293, allocations: 84.38 kB / 0.5035 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.631e-05/0.1294, allocations: 32 kB / 0.5035 GB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007431/0.1301, allocations: 487 kB / 0.504 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.1301, allocations: 4 kB / 0.504 GB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.585e-05/0.1302, allocations: 16 kB / 0.504 GB, free: 8.934 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.1302, allocations: 8 kB / 0.504 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005742/0.1308, allocations: 320 kB / 0.5043 GB, free: 8.605 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002569/0.1333, allocations: 1.767 MB / 0.506 GB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005294/0.1339, allocations: 224.2 kB / 0.5062 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.1341, allocations: 146.5 kB / 0.5064 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.1341, allocations: 4 kB / 0.5064 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004131/0.1345, allocations: 251.4 kB / 0.5066 GB, free: 6.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.894e-06/0.1346, allocations: 0 / 0.5066 GB, free: 6.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.001026/0.1356, allocations: 0.5517 MB / 0.5072 GB, free: 5.516 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1356, allocations: 89.05 kB / 0.5072 GB, free: 5.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006419/0.1363, allocations: 0.5292 MB / 0.5078 GB, free: 4.867 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.1363, allocations: 33.7 kB / 0.5078 GB, free: 4.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002366/0.1366, allocations: 284.3 kB / 0.5081 GB, free: 4.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.75e-05/0.1367, allocations: 99.19 kB / 0.5082 GB, free: 4.449 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.1368, allocations: 90.02 kB / 0.5082 GB, free: 4.352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.137, allocations: 362.8 kB / 0.5086 GB, free: 3.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002746/0.1373, allocations: 158.5 kB / 0.5087 GB, free: 3.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.1377, allocations: 337.2 kB / 0.5091 GB, free: 3.418 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.1393, allocations: 0.8052 MB / 0.5098 GB, free: 2.527 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1393, allocations: 0 / 0.5098 GB, free: 2.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009429/0.1403, allocations: 0.5902 MB / 0.5104 GB, free: 1.918 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.1403, allocations: 41.69 kB / 0.5105 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1403, allocations: 4 kB / 0.5105 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.1404, allocations: 8 kB / 0.5105 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005845/0.141, allocations: 103.8 kB / 0.5106 GB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.141, allocations: 4 kB / 0.5106 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002289/0.1412, allocations: 59.59 kB / 0.5106 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.1412, allocations: 19.94 kB / 0.5107 GB, free: 1.676 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) \"proper part of the output\" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.satLOW_in,R_track.satHIGH_in,R_track.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0003369/0.1416, allocations: 262.4 kB / 0.5109 GB, free: 1.402 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.415e-05/0.1416, allocations: 51.67 kB / 0.511 GB, free: 1.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000855/0.1425, allocations: 486 kB / 0.5114 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.744e-06/0.1425, allocations: 4 kB / 0.5114 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1425, allocations: 0 / 0.5114 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.1425, allocations: 3.938 kB / 0.5114 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004756/0.143, allocations: 380.4 kB / 0.5118 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.143, allocations: 0 / 0.5118 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005644/0.1436, allocations: 67.89 kB / 0.5119 GB, free: 376 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.1436, allocations: 3.984 kB / 0.5119 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.442e-05/0.1436, allocations: 16 kB / 0.5119 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1436, allocations: 4 kB / 0.5119 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1436, allocations: 3.938 kB / 0.5119 GB, free: 348 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.195/0.3386, allocations: 0.6769 MB / 0.5125 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.3388, allocations: 50.86 kB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.594e-05/0.3389, allocations: 12.75 kB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.339, allocations: 14.17 kB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-05/0.3391, allocations: 26.23 kB / 0.5126 GB, free: 23.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.187e-05/0.3391, allocations: 12.09 kB / 0.5127 GB, free: 23.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003638/0.3395, allocations: 367.3 kB / 0.513 GB, free: 23.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3395, allocations: 0 / 0.513 GB, free: 23.06 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.3399, allocations: 114.8 kB / 0.5131 GB, free: 23.06 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.002526/0.3425, allocations: 1.596 MB / 0.5147 GB, free: 22.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006232/0.3431, allocations: 467.8 kB / 0.5151 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.3431, allocations: 0 / 0.5151 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002447/0.3433, allocations: 233.9 kB / 0.5153 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003916/0.3437, allocations: 76.53 kB / 0.5154 GB, free: 22.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004344/0.3481, allocations: 4.604 MB / 0.5199 GB, free: 20.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.3483, allocations: 270 kB / 0.5202 GB, free: 20.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002132/0.3485, allocations: 76.48 kB / 0.5202 GB, free: 20.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.3487, allocations: 181.4 kB / 0.5204 GB, free: 20.01 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3487, allocations: 0 / 0.5204 GB, free: 20.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04393/0.3927, allocations: 10.66 MB / 0.5308 GB, free: 17.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.53, allocations: 9.172 kB / 0.5308 GB, free: 17.42 MB / 382.1 MB " [Timeout remaining time 648] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.08 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.269530623219907] Failed to read output from testmodel.py, exit status != 0: 11.69791486300528 11.717896177 11.587378275 Calling exit ...