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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 110.7 kB / 16.41 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002016/0.002016, allocations: 187 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05925/0.05925, allocations: 10.74 MB / 281.3 MB, free: 1.293 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 73.42 kB / 391.5 MB, free: 46.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1128, allocations: 49.03 MB / 440.5 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.003546/0.1164, allocations: 2.344 MB / 442.9 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.1183, allocations: 1.326 MB / 444.2 MB, free: 140 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001857/0.1185, allocations: 15.88 kB / 444.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007506/0.1193, allocations: 211.1 kB / 444.4 MB, free: 15.91 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003706/0.1196, allocations: 163.2 kB / 444.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007642/0.1204, allocations: 343 kB / 444.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000584/0.121, allocations: 0.5461 MB / 445.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.1212, allocations: 88.98 kB / 445.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002429/0.1214, allocations: 203.3 kB / 445.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002871/0.1217, allocations: 223 kB / 446 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.656e-05/0.1218, allocations: 28 kB / 446 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002487/0.1221, allocations: 143.9 kB / 446.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1222, allocations: 135.5 kB / 446.3 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001694/0.1224, allocations: 190.8 kB / 446.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005716/0.123, allocations: 0.4983 MB / 446.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.123, allocations: 0 / 446.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.123, allocations: 0 / 446.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.123, allocations: 3.938 kB / 447 MB, free: 13.38 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001335/0.1244, allocations: 0.8454 MB / 447.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.1244, allocations: 15.89 kB / 447.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.1245, allocations: 52.28 kB / 447.9 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/0.1251, allocations: 426.4 kB / 448.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.1252, allocations: 24.88 kB / 448.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.271e-05/0.1252, allocations: 32.12 kB / 448.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000622/0.1259, allocations: 379.6 kB / 448.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.1259, allocations: 4 kB / 448.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.645e-05/0.1259, allocations: 12 kB / 448.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.126, allocations: 8 kB / 448.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004674/0.1264, allocations: 258 kB / 449 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001902/0.1283, allocations: 1.379 MB / 450.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005123/0.1289, allocations: 214.5 kB / 450.6 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.1291, allocations: 120.8 kB / 450.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.1291, allocations: 0 / 450.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003626/0.1295, allocations: 229.4 kB / 450.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.1295, allocations: 0 / 450.9 MB, free: 9.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008864/0.1304, allocations: 481.1 kB / 451.4 MB, free: 8.688 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.294e-05/0.1305, allocations: 110.8 kB / 451.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004961/0.131, allocations: 489.8 kB / 452 MB, free: 8.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.131, allocations: 33.7 kB / 452 MB, free: 8.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.1312, allocations: 244.2 kB / 452.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.112e-05/0.1313, allocations: 98.69 kB / 452.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.982e-05/0.1314, allocations: 77.69 kB / 452.4 MB, free: 7.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1316, allocations: 358.8 kB / 452.8 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/0.1318, allocations: 112.4 kB / 452.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000324/0.1321, allocations: 228.2 kB / 453.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.1336, allocations: 0.7095 MB / 453.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.1336, allocations: 0 / 453.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007235/0.1343, allocations: 0.498 MB / 454.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.093e-05/0.1344, allocations: 37.64 kB / 454.3 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1344, allocations: 11.97 kB / 454.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.1344, allocations: 4 kB / 454.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.1347, allocations: 75.91 kB / 454.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.1347, allocations: 8.391 kB / 454.4 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.1349, allocations: 47.58 kB / 454.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.135, allocations: 20 kB / 454.5 MB, free: 5.363 MB / 334.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: 14 * Number of states: 0 () * Number of discrete variables: 16 ($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.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 43 * 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.0002725/0.1352, allocations: 244.2 kB / 454.7 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.1353, allocations: 55.38 kB / 454.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007152/0.136, allocations: 428.4 kB / 455.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1361, allocations: 0 / 455.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.1361, allocations: 0 / 455.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.1361, allocations: 3.984 kB / 455.2 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003807/0.1365, allocations: 413.2 kB / 455.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1365, allocations: 0 / 455.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.1367, allocations: 51.95 kB / 455.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.1368, allocations: 7.938 kB / 455.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.1368, allocations: 8 kB / 455.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1368, allocations: 0 / 455.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1368, allocations: 4 kB / 455.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009027/0.1377, allocations: 0.5959 MB / 456.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.631e-05/0.1378, allocations: 124.4 kB / 456.4 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.248e-05/0.1379, allocations: 16.05 kB / 456.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.138, allocations: 15.98 kB / 456.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.083e-05/0.1381, allocations: 15.98 kB / 456.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.1381, allocations: 15.98 kB / 456.5 MB, free: 3.273 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003482/0.1385, allocations: 339.1 kB / 456.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1385, allocations: 0 / 456.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.1389, allocations: 103.8 kB / 456.9 MB, free: 2.84 MB / 334.1 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * 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.001041/0.14, allocations: 460 kB / 457.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006491/0.1406, allocations: 399.1 kB / 457.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1406, allocations: 0 / 457.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002915/0.1409, allocations: 228.1 kB / 458 MB, free: 1.871 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004064/0.1414, allocations: 81.92 kB / 458 MB, free: 1.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.1427, allocations: 0.8552 MB / 458.9 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.1431, allocations: 0.8535 MB / 459.8 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.1432, allocations: 31.44 kB / 459.8 MB, free: 16 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1432, allocations: 0 / 459.8 MB, free: 16 MB / 350.1 MB Notification: Performance of Templates: time 0.00994/0.1532, allocations: 5.976 MB / 465.8 MB, free: 10.03 MB / 350.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)