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.001631/0.001631, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001363/0.001363, allocations: 217.7 kB / 23.04 MB, free: 5.074 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.391/1.391, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.06367/0.06367, allocations: 11.34 MB / 324.6 MB, free: 8.23 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestI_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking",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.002204/0.002204, allocations: 71.91 kB / 451.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1221, allocations: 56.06 MB / 0.496 GB, free: 2.332 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.006343/0.1285, allocations: 2.513 MB / 0.4984 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004723/0.1332, allocations: 1.704 MB / 0.5001 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004467/0.1336, allocations: 23.75 kB / 0.5001 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.1348, allocations: 238.9 kB / 0.5004 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008916/0.1357, allocations: 209 kB / 0.5006 GB, free: 13.62 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.1373, allocations: 441.8 kB / 0.501 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001358/0.1387, allocations: 0.6561 MB / 0.5016 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002752/0.1389, allocations: 65.52 kB / 0.5017 GB, free: 12.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005929/0.1395, allocations: 243.1 kB / 0.5019 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006541/0.1402, allocations: 258.8 kB / 0.5022 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001537/0.1403, allocations: 32 kB / 0.5022 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004679/0.1408, allocations: 163.9 kB / 0.5023 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002749/0.1411, allocations: 147.5 kB / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000394/0.1415, allocations: 218.5 kB / 0.5027 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001071/0.1425, allocations: 0.5445 MB / 0.5032 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1426, allocations: 0 / 0.5032 GB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1426, allocations: 0 / 0.5032 GB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.71e-05/0.1426, allocations: 3.938 kB / 0.5032 GB, free: 10.88 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.002282/0.1449, allocations: 0.8359 MB / 0.504 GB, free: 9.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.1449, allocations: 8.031 kB / 0.5041 GB, free: 9.988 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.517e-05/0.1449, allocations: 8.844 kB / 0.5041 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001153/0.1451, allocations: 74.66 kB / 0.5041 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.1453, allocations: 72.45 kB / 0.5042 GB, free: 9.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1463, allocations: 387.6 kB / 0.5046 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.1464, allocations: 88.17 kB / 0.5047 GB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.1465, allocations: 36 kB / 0.5047 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001111/0.1476, allocations: 450.2 kB / 0.5051 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.1477, allocations: 4 kB / 0.5051 GB, free: 8.809 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.899e-05/0.1477, allocations: 20 kB / 0.5051 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.1477, allocations: 8 kB / 0.5052 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000841/0.1486, allocations: 290.3 kB / 0.5054 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003584/0.1522, allocations: 1.83 MB / 0.5072 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005084/0.1527, allocations: 186.6 kB / 0.5074 GB, free: 6.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002246/0.1529, allocations: 120.7 kB / 0.5075 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.1529, allocations: 3.984 kB / 0.5075 GB, free: 6.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003806/0.1533, allocations: 213.7 kB / 0.5077 GB, free: 6.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=27): time 1.703e-06/0.1533, allocations: 0 / 0.5077 GB, free: 6.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009747/0.1543, allocations: 0.4897 MB / 0.5082 GB, free: 5.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.39e-05/0.1544, allocations: 110.8 kB / 0.5083 GB, free: 5.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006482/0.155, allocations: 0.5253 MB / 0.5088 GB, free: 4.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.155, allocations: 33.7 kB / 0.5088 GB, free: 4.824 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.1553, allocations: 280.3 kB / 0.5091 GB, free: 4.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.1554, allocations: 91.23 kB / 0.5092 GB, free: 4.457 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/0.1555, allocations: 90.05 kB / 0.5093 GB, free: 4.359 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.1557, allocations: 366.7 kB / 0.5096 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.1559, allocations: 132.8 kB / 0.5098 GB, free: 3.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003662/0.1563, allocations: 277.2 kB / 0.51 GB, free: 3.523 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.158, allocations: 0.7934 MB / 0.5108 GB, free: 2.645 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.158, allocations: 4 kB / 0.5108 GB, free: 2.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0009926/0.159, allocations: 0.549 MB / 0.5113 GB, free: 2.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.266e-05/0.159, allocations: 37.7 kB / 0.5114 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.159, allocations: 4.594 kB / 0.5114 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.1591, allocations: 4 kB / 0.5114 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005951/0.1597, allocations: 107.8 kB / 0.5115 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.713e-05/0.1597, allocations: 8 kB / 0.5115 GB, free: 1.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.1599, allocations: 63.55 kB / 0.5116 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.16, allocations: 20 kB / 0.5116 GB, free: 1.832 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.000342/0.1603, allocations: 250.3 kB / 0.5118 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.804e-05/0.1604, allocations: 51.67 kB / 0.5119 GB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008337/0.1612, allocations: 453.8 kB / 0.5123 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1612, allocations: 0 / 0.5123 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.1612, allocations: 7.938 kB / 0.5123 GB, free: 1.055 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1612, allocations: 4 kB / 0.5123 GB, free: 1.051 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004938/0.1617, allocations: 412.3 kB / 0.5127 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1617, allocations: 4 kB / 0.5127 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.1623, allocations: 63.95 kB / 0.5128 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.1623, allocations: 0 / 0.5128 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.1624, allocations: 12 kB / 0.5128 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.1624, allocations: 0 / 0.5128 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.1624, allocations: 7.875 kB / 0.5128 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2145/0.3769, allocations: 0.5972 MB / 0.5134 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.377, allocations: 50.73 kB / 0.5134 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/0.3771, allocations: 14.5 kB / 0.5134 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.3774, allocations: 16.19 kB / 0.5134 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3775, allocations: 20.8 kB / 0.5135 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.323e-05/0.3775, allocations: 13.45 kB / 0.5135 GB, free: 23.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004864/0.378, allocations: 366.8 kB / 0.5138 GB, free: 23.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.378, allocations: 0.9688 kB / 0.5138 GB, free: 23.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005526/0.3786, allocations: 109.8 kB / 0.5139 GB, free: 23.03 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 (24): * Single equations (assignments): 21 * 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.002668/0.3812, allocations: 1.503 MB / 0.5154 GB, free: 22.37 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007683/0.382, allocations: 399.4 kB / 0.5158 GB, free: 22.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.382, allocations: 0 / 0.5158 GB, free: 22.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.3823, allocations: 203.9 kB / 0.516 GB, free: 22.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.3828, allocations: 65.7 kB / 0.516 GB, free: 22.25 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005765/0.3885, allocations: 4.434 MB / 0.5204 GB, free: 20.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.3889, allocations: 0.8635 MB / 0.5212 GB, free: 19.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002522/0.3891, allocations: 77.36 kB / 0.5213 GB, free: 19.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002451/0.3894, allocations: 176.6 kB / 0.5215 GB, free: 19.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3894, allocations: 3.938 kB / 0.5215 GB, free: 19.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.4321, allocations: 10.33 MB / 0.5315 GB, free: 17.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.96, allocations: 9.578 kB / 0.5316 GB, free: 17.59 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestI_tracking_fmu --startTime=0 --stopTime=200 --stepSize=0.08 --timeout=50 --tolerance=1e-06 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.626588426996022] Failed to read output from testmodel.py, exit status != 0: 12.171540839015506 12.183031167 12.037892787 Calling exit ...