Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.0008097/0.0008097, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001528/0.001528, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9236/0.9236, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.03573/0.03573, allocations: 8.609 MB / 267.8 MB, free: 5.129 MB / 250.7 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.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_tracking,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.615e-06/2.615e-06, allocations: 0 / 395.1 MB, free: 2.66 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.565e-05/2.826e-05, allocations: 2.281 kB / 395.1 MB, free: 2.656 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003437/0.003466, allocations: 2.346 MB / 397.4 MB, free: 296 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.005393, allocations: 1.509 MB / 398.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.005588, allocations: 23.75 kB / 399 MB, free: 14.75 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006285/0.006216, allocations: 238.8 kB / 399.2 MB, free: 14.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000377/0.006593, allocations: 217.1 kB / 399.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006985/0.007292, allocations: 410.9 kB / 399.8 MB, free: 13.9 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.007787, allocations: 0.5467 MB / 400.4 MB, free: 13.36 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001553/0.007942, allocations: 61.22 kB / 400.4 MB, free: 13.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002639/0.008206, allocations: 279.2 kB / 400.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.008421, allocations: 195.4 kB / 400.9 MB, free: 12.82 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.008463, allocations: 32 kB / 400.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.008689, allocations: 151.8 kB / 401.1 MB, free: 12.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.00881, allocations: 139.5 kB / 401.2 MB, free: 12.51 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.008915, allocations: 123.5 kB / 401.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005415/0.009457, allocations: 0.5529 MB / 401.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.009459, allocations: 4 kB / 401.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.009461, allocations: 0 / 401.9 MB, free: 11.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.009468, allocations: 0 / 401.9 MB, free: 11.83 MB / 378.7 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.001023/0.01049, allocations: 0.8201 MB / 402.7 MB, free: 10.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.01053, allocations: 12.03 kB / 402.7 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.709e-05/0.01059, allocations: 70.72 kB / 402.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.683e-05/0.01068, allocations: 64.52 kB / 402.8 MB, free: 10.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.01114, allocations: 374.2 kB / 403.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.01117, allocations: 29.03 kB / 403.2 MB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.01122, allocations: 36.33 kB / 403.3 MB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.01182, allocations: 471.3 kB / 403.7 MB, free: 9.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.01185, allocations: 3.938 kB / 403.7 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.01187, allocations: 12 kB / 403.7 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.01188, allocations: 8 kB / 403.7 MB, free: 9.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/0.01233, allocations: 324 kB / 404.1 MB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.01408, allocations: 1.671 MB / 405.7 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.01447, allocations: 228.4 kB / 406 MB, free: 7.516 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.01461, allocations: 142.4 kB / 406.1 MB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.01464, allocations: 4 kB / 406.1 MB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.01489, allocations: 243.2 kB / 406.3 MB, free: 7.102 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.522e-06/0.01489, allocations: 0 / 406.3 MB, free: 7.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.0005882/0.01548, allocations: 0.5437 MB / 406.9 MB, free: 6.535 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.01552, allocations: 89.09 kB / 407 MB, free: 6.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003923/0.01591, allocations: 0.5292 MB / 407.5 MB, free: 5.887 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.01593, allocations: 33.7 kB / 407.5 MB, free: 5.848 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.01608, allocations: 276.3 kB / 407.8 MB, free: 5.574 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.398e-05/0.01613, allocations: 103.2 kB / 407.9 MB, free: 5.473 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.221e-05/0.01621, allocations: 89.59 kB / 408 MB, free: 5.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.01632, allocations: 366.7 kB / 408.3 MB, free: 5.012 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.01647, allocations: 154.1 kB / 408.5 MB, free: 4.855 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.0167, allocations: 336.2 kB / 408.8 MB, free: 4.449 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009933/0.0177, allocations: 0.7824 MB / 409.6 MB, free: 3.578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.0177, allocations: 0 / 409.6 MB, free: 3.578 MB / 378.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005514/0.01825, allocations: 0.5706 MB / 410.2 MB, free: 2.988 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.01829, allocations: 41.69 kB / 410.2 MB, free: 2.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.0183, allocations: 8 kB / 410.2 MB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.01832, allocations: 4 kB / 410.2 MB, free: 2.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001761/0.01849, allocations: 87.83 kB / 410.3 MB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.0185, allocations: 8 kB / 410.3 MB, free: 2.836 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.01862, allocations: 59.55 kB / 410.4 MB, free: 2.777 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.01865, allocations: 24.33 kB / 410.4 MB, free: 2.754 MB / 378.7 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 (50): * Single equations (assignments): 49 * 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.00021/0.01886, allocations: 254.5 kB / 410.7 MB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.154e-05/0.0189, allocations: 51.67 kB / 410.7 MB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004905/0.01939, allocations: 478.2 kB / 411.2 MB, free: 1.949 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.01939, allocations: 4 kB / 411.2 MB, free: 1.945 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.0194, allocations: 3.938 kB / 411.2 MB, free: 1.941 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.0194, allocations: 3.984 kB / 411.2 MB, free: 1.938 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.01969, allocations: 376.3 kB / 411.5 MB, free: 1.527 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.01969, allocations: 4 kB / 411.6 MB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001451/0.01983, allocations: 51.97 kB / 411.6 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.01984, allocations: 0 / 411.6 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.243e-05/0.01986, allocations: 11.98 kB / 411.6 MB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.01986, allocations: 8 kB / 411.6 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.01986, allocations: 0 / 411.6 MB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009033/0.02077, allocations: 0.6666 MB / 412.3 MB, free: 0.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.776e-05/0.02081, allocations: 55.66 kB / 412.3 MB, free: 0.6953 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.02085, allocations: 8 kB / 412.4 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.116e-05/0.02092, allocations: 19.92 kB / 412.4 MB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.034e-05/0.02098, allocations: 23.95 kB / 412.4 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.021, allocations: 12 kB / 412.4 MB, free: 0.6328 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002644/0.02127, allocations: 374.7 kB / 412.8 MB, free: 276 kB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02127, allocations: 4 kB / 412.8 MB, free: 272 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.02154, allocations: 111.7 kB / 412.9 MB, free: 160 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (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 (26): * Single equations (assignments): 23 * 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.001493/0.02303, allocations: 1.595 MB / 414.5 MB, free: 14.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004385/0.02347, allocations: 451 kB / 414.9 MB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.02347, allocations: 0 / 414.9 MB, free: 14.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001756/0.02365, allocations: 225 kB / 415.1 MB, free: 14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.02391, allocations: 80.67 kB / 415.2 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.02768, allocations: 4.496 MB / 419.7 MB, free: 9.184 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.02784, allocations: 267.6 kB / 420 MB, free: 8.902 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001253/0.02796, allocations: 75.31 kB / 420 MB, free: 8.824 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001551/0.02812, allocations: 180.4 kB / 420.2 MB, free: 8.648 MB / 394.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02812, allocations: 0 / 420.2 MB, free: 8.648 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.05018, allocations: 10.64 MB / 430.9 MB, free: 14.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.24/7.29, allocations: 13.69 kB / 430.9 MB, free: 14.09 MB / 410.7 MB " [Timeout remaining time 653] (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_tracking.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.31869337335229] Failed to read output from testmodel.py, exit status != 0: 7.399998519569635 7.564156861 7.396540377 Calling exit ...