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.007454/0.007454, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001357/0.001357, allocations: 201.2 kB / 16.68 MB, free: 5.969 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.836/1.836, allocations: 205.1 MB / 222.5 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06074/0.06074, allocations: 10.75 MB / 280.7 MB, free: 10.43 MB / 238.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.001479/0.001479, allocations: 81.3 kB / 390.8 MB, free: 5.047 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4132/0.4146, allocations: 49.02 MB / 439.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestI_tracking): time 0.004649/0.4193, allocations: 2.349 MB / 442.2 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002577/0.4219, allocations: 1.42 MB / 443.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.4222, allocations: 14.25 kB / 443.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007688/0.423, allocations: 213 kB / 443.9 MB, free: 2.633 MB / 318.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.0003849/0.4234, allocations: 158.2 kB / 444 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001026/0.4244, allocations: 400.6 kB / 444.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007454/0.4252, allocations: 0.564 MB / 445 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002242/0.4254, allocations: 99.98 kB / 445.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000305/0.4257, allocations: 216.1 kB / 445.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003699/0.4261, allocations: 230.6 kB / 445.5 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.698e-05/0.4262, allocations: 30.22 kB / 445.5 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003441/0.4265, allocations: 150.8 kB / 445.7 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.4267, allocations: 129.3 kB / 445.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.427, allocations: 202.4 kB / 446 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008057/0.4278, allocations: 0.5202 MB / 446.5 MB, free: 1.426 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4278, allocations: 4.562 kB / 446.5 MB, free: 1.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4278, allocations: 0 / 446.5 MB, free: 1.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.4278, allocations: 0 / 446.5 MB, free: 1.422 MB / 318.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.001376/0.4292, allocations: 0.8627 MB / 447.4 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.4292, allocations: 18.17 kB / 447.4 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001219/0.4294, allocations: 58.25 kB / 447.5 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005438/0.4299, allocations: 437.4 kB / 447.9 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.206e-05/0.43, allocations: 79.05 kB / 448 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-05/0.4301, allocations: 40.05 kB / 448 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006797/0.4308, allocations: 390.9 kB / 448.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.4308, allocations: 1.25 kB / 448.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.885e-05/0.4308, allocations: 15.56 kB / 448.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.4309, allocations: 6.906 kB / 448.4 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005623/0.4314, allocations: 266.5 kB / 448.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.4337, allocations: 1.451 MB / 450.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005109/0.4342, allocations: 199.5 kB / 450.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.4345, allocations: 129 kB / 450.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.4345, allocations: 2.062 kB / 450.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004223/0.4349, allocations: 228 kB / 450.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 3.606e-06/0.435, allocations: 0 / 450.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001003/0.436, allocations: 483.9 kB / 451.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.436, allocations: 116.3 kB / 451.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006127/0.4367, allocations: 491 kB / 451.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.456e-05/0.4367, allocations: 35.55 kB / 451.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.4369, allocations: 255.4 kB / 452 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.926e-05/0.437, allocations: 92.38 kB / 452.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.4372, allocations: 82.59 kB / 452.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.4374, allocations: 356.4 kB / 452.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/0.4376, allocations: 117.3 kB / 452.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.4379, allocations: 241 kB / 452.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001974/0.4399, allocations: 0.7438 MB / 453.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.4399, allocations: 1.219 kB / 453.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001113/0.4411, allocations: 0.5031 MB / 454.1 MB, free: 11.83 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.281e-05/0.4411, allocations: 46.25 kB / 454.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.4412, allocations: 3.781 kB / 454.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.71e-05/0.4412, allocations: 8.625 kB / 454.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000615/0.4418, allocations: 100.2 kB / 454.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.4419, allocations: 9.328 kB / 454.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.4421, allocations: 43.28 kB / 454.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.144e-05/0.4421, allocations: 18.09 kB / 454.4 MB, free: 11.72 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.0003558/0.4425, allocations: 247 kB / 454.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.095e-05/0.4426, allocations: 46.59 kB / 454.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008253/0.4434, allocations: 444.9 kB / 455.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.4435, allocations: 6.219 kB / 455.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4435, allocations: 0 / 455.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4435, allocations: 1.188 kB / 455.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005006/0.444, allocations: 427.9 kB / 455.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.444, allocations: 5.062 kB / 455.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005704/0.4446, allocations: 61.73 kB / 455.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.4446, allocations: 1.094 kB / 455.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.4446, allocations: 12.97 kB / 455.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4446, allocations: 1.281 kB / 455.6 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4446, allocations: 4 kB / 455.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4457, allocations: 0.6038 MB / 456.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.4458, allocations: 130.2 kB / 456.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.546e-05/0.4459, allocations: 13.94 kB / 456.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.446, allocations: 14.73 kB / 456.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.112e-05/0.4461, allocations: 21.44 kB / 456.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.4462, allocations: 11.31 kB / 456.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004722/0.4466, allocations: 341.6 kB / 456.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4466, allocations: 0 / 456.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005716/0.4472, allocations: 108.2 kB / 456.8 MB, free: 10.12 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.001246/0.4485, allocations: 453.4 kB / 457.3 MB, free: 9.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000808/0.4493, allocations: 424.2 kB / 457.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4493, allocations: 0 / 457.7 MB, free: 9.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003247/0.4496, allocations: 231.3 kB / 457.9 MB, free: 9.457 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.4501, allocations: 80.16 kB / 458 MB, free: 9.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001452/0.4516, allocations: 0.8715 MB / 458.8 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.4521, allocations: 0.8513 MB / 459.7 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002053/0.4523, allocations: 68.33 kB / 459.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.998e-05/0.4524, allocations: 32.59 kB / 459.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4524, allocations: 0 / 459.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of Templates: time 0.009974/0.4623, allocations: 4.731 MB / 464.5 MB, free: 3.793 MB / 334.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)