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.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.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00145/0.00145, allocations: 110.1 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.001524/0.001523, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.448/1.448, 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.0576/0.0576, allocations: 10.75 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.001461/0.001461, allocations: 69.22 kB / 391.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1055, allocations: 49.03 MB / 440.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.00358/0.1092, allocations: 2.348 MB / 442.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.1114, allocations: 1.419 MB / 444.3 MB, free: 40 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003249/0.1117, allocations: 15.88 kB / 444.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008248/0.1126, allocations: 207.2 kB / 444.5 MB, free: 15.82 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.0005165/0.1131, allocations: 159.3 kB / 444.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.1143, allocations: 401.8 kB / 445.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008425/0.1151, allocations: 0.5735 MB / 445.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.1154, allocations: 88.92 kB / 445.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003994/0.1158, allocations: 219.2 kB / 445.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004362/0.1162, allocations: 223.1 kB / 446.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.814e-05/0.1163, allocations: 32 kB / 446.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000304/0.1166, allocations: 155.8 kB / 446.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001717/0.1168, allocations: 131.6 kB / 446.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.117, allocations: 206.7 kB / 446.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007533/0.1178, allocations: 0.5139 MB / 447.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1178, allocations: 0 / 447.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1178, allocations: 0 / 447.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.709e-05/0.1179, allocations: 0 / 447.2 MB, free: 13.14 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.001784/0.1196, allocations: 0.8571 MB / 448 MB, free: 12.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.1197, allocations: 19.83 kB / 448.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.1199, allocations: 52.28 kB / 448.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006844/0.1206, allocations: 430.4 kB / 448.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.461e-05/0.1207, allocations: 72.53 kB / 448.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/0.1207, allocations: 39.92 kB / 448.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007056/0.1214, allocations: 395.6 kB / 449 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.489e-05/0.1215, allocations: 4 kB / 449 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.722e-05/0.1216, allocations: 8 kB / 449 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.196e-05/0.1216, allocations: 8 kB / 449 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005156/0.1221, allocations: 266 kB / 449.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.1244, allocations: 1.453 MB / 450.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.125, allocations: 198.6 kB / 451 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002788/0.1252, allocations: 128.8 kB / 451.1 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.56e-05/0.1253, allocations: 8 kB / 451.1 MB, free: 9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004755/0.1258, allocations: 221.8 kB / 451.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.094e-06/0.1258, allocations: 0 / 451.3 MB, free: 8.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.0009563/0.1268, allocations: 481.2 kB / 451.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/0.1268, allocations: 110.8 kB / 451.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005735/0.1274, allocations: 0.4899 MB / 452.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.1275, allocations: 33.7 kB / 452.4 MB, free: 7.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.1277, allocations: 248.2 kB / 452.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.627e-05/0.1278, allocations: 90.73 kB / 452.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.1279, allocations: 81.92 kB / 452.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.1281, allocations: 358.8 kB / 453.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002611/0.1284, allocations: 116.7 kB / 453.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003329/0.1287, allocations: 236.9 kB / 453.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001585/0.1303, allocations: 0.7444 MB / 454.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1303, allocations: 4 kB / 454.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008626/0.1312, allocations: 0.5023 MB / 454.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.1313, allocations: 43.72 kB / 454.8 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.1313, allocations: 7.938 kB / 454.8 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.1313, allocations: 4 kB / 454.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005983/0.1319, allocations: 99.77 kB / 454.9 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.1319, allocations: 7.984 kB / 454.9 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.1322, allocations: 47.8 kB / 455 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.1322, allocations: 23.98 kB / 455 MB, free: 4.863 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 (45): * Single equations (assignments): 44 * 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.0003586/0.1326, allocations: 248.5 kB / 455.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.219e-05/0.1326, allocations: 43.44 kB / 455.3 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007778/0.1334, allocations: 447.9 kB / 455.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1334, allocations: 4 kB / 455.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1335, allocations: 0 / 455.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1335, allocations: 0 / 455.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004434/0.1339, allocations: 421.2 kB / 456.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.1339, allocations: 3.984 kB / 456.1 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006627/0.1346, allocations: 67.91 kB / 456.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.1346, allocations: 3.984 kB / 456.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.1347, allocations: 11.94 kB / 456.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.1347, allocations: 4 kB / 456.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1347, allocations: 0 / 456.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009967/0.1357, allocations: 0.5964 MB / 456.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.1358, allocations: 124.4 kB / 456.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.595e-05/0.1359, allocations: 19.92 kB / 457 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.1361, allocations: 15.98 kB / 457 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.533e-05/0.1362, allocations: 15.92 kB / 457 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.1362, allocations: 15.98 kB / 457 MB, free: 2.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003762/0.1366, allocations: 339.1 kB / 457.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1366, allocations: 0 / 457.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004231/0.137, allocations: 111.7 kB / 457.4 MB, free: 2.289 MB / 334.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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * 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.001118/0.1382, allocations: 466.3 kB / 457.9 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007295/0.1389, allocations: 418.9 kB / 458.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1389, allocations: 0 / 458.3 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.1393, allocations: 228.1 kB / 458.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004276/0.1397, allocations: 67.06 kB / 458.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.1411, allocations: 0.8984 MB / 459.5 MB, free: 312 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000504/0.1416, allocations: 0.8536 MB / 460.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.1418, allocations: 35.38 kB / 460.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1418, allocations: 0 / 460.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01132/0.1531, allocations: 6.06 MB / 466.4 MB, free: 9.336 MB / 350.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.makefile (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 & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)