Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.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.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 107.4 kB / 15.34 MB, free: 0.5 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.001634/0.001634, allocations: 192.1 kB / 16.25 MB, free: 6.156 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.473/1.473, allocations: 205.1 MB / 222.1 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05417/0.05417, allocations: 10.74 MB / 280.2 MB, free: 10.49 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.001372/0.001372, allocations: 64.38 kB / 340 MB, free: 23.65 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08927/0.09065, allocations: 49.01 MB / 389.1 MB, free: 6.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.003287/0.09398, allocations: 2.228 MB / 391.3 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.09575, allocations: 1.018 MB / 392.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.09595, allocations: 15.88 kB / 392.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002989/0.0963, allocations: 75.59 kB / 392.4 MB, free: 3.207 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001142/0.09642, allocations: 51.7 kB / 392.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008694/0.0973, allocations: 295.5 kB / 392.7 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006258/0.09794, allocations: 0.5942 MB / 393.3 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.09814, allocations: 88.98 kB / 393.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002623/0.09841, allocations: 211.2 kB / 393.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003012/0.09872, allocations: 251 kB / 393.9 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.946e-05/0.09879, allocations: 32 kB / 393.9 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.09896, allocations: 107.9 kB / 394 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.09912, allocations: 159.5 kB / 394.2 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001813/0.09931, allocations: 214.5 kB / 394.4 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004901/0.0998, allocations: 0.4908 MB / 394.9 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.09982, allocations: 3.938 kB / 394.9 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.09983, allocations: 0 / 394.9 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.09984, allocations: 0 / 394.9 MB, free: 0.7227 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001252/0.1011, allocations: 0.8512 MB / 395.7 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1012, allocations: 15.89 kB / 395.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.1013, allocations: 60.19 kB / 395.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.1017, allocations: 417.8 kB / 396.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.1018, allocations: 33.31 kB / 396.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.627e-05/0.1019, allocations: 48.22 kB / 396.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007625/0.1026, allocations: 0.5087 MB / 396.8 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.798e-05/0.1027, allocations: 11.91 kB / 396.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.1027, allocations: 16 kB / 396.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1027, allocations: 8 kB / 396.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006147/0.1034, allocations: 391.7 kB / 397.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002612/0.106, allocations: 1.806 MB / 399 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.1065, allocations: 262.5 kB / 399.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002418/0.1068, allocations: 180.8 kB / 399.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.1068, allocations: 4 kB / 399.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003872/0.1072, allocations: 260.9 kB / 399.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 2.124e-06/0.1072, allocations: 0 / 399.7 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.0009208/0.1081, allocations: 0.5782 MB / 400.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.1082, allocations: 89.05 kB / 400.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004841/0.1087, allocations: 497.8 kB / 400.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.969e-05/0.1088, allocations: 33.7 kB / 400.9 MB, free: 10.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.109, allocations: 280 kB / 401.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.1091, allocations: 138 kB / 401.3 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.1092, allocations: 102.2 kB / 401.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.1094, allocations: 378.6 kB / 401.8 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002523/0.1096, allocations: 161.1 kB / 401.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.11, allocations: 329.8 kB / 402.2 MB, free: 8.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002029/0.112, allocations: 1.078 MB / 403.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.112, allocations: 0 / 403.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0009705/0.113, allocations: 0.7303 MB / 404 MB, free: 7.062 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.1131, allocations: 45.81 kB / 404.1 MB, free: 7.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1131, allocations: 4 kB / 404.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1131, allocations: 8 kB / 404.1 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004656/0.1136, allocations: 127.8 kB / 404.2 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.314e-05/0.1136, allocations: 15.92 kB / 404.2 MB, free: 6.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002402/0.1139, allocations: 67.36 kB / 404.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.869e-05/0.1139, allocations: 24 kB / 404.3 MB, free: 6.77 MB / 302.1 MB Warning: Assuming fixed start value for the following 15 variables: processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessBias.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 11 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.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 (70): * Single equations (assignments): 69 * 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.0003547/0.1143, allocations: 278.5 kB / 404.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.645e-05/0.1143, allocations: 51.44 kB / 404.7 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008088/0.1152, allocations: 0.5215 MB / 405.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1152, allocations: 4 kB / 405.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1152, allocations: 0 / 405.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1152, allocations: 0 / 405.2 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004634/0.1157, allocations: 480.8 kB / 405.6 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1157, allocations: 7.875 kB / 405.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/0.1162, allocations: 83.95 kB / 405.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.1162, allocations: 0 / 405.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/0.1162, allocations: 19.98 kB / 405.8 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1162, allocations: 4 kB / 405.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.1162, allocations: 0 / 405.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009957/0.1172, allocations: 0.7117 MB / 406.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-05/0.1173, allocations: 132.5 kB / 406.6 MB, free: 4.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.658e-05/0.1174, allocations: 20 kB / 406.6 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.1176, allocations: 15.98 kB / 406.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.363e-05/0.1177, allocations: 23.97 kB / 406.7 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.1177, allocations: 11.98 kB / 406.7 MB, free: 4.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003389/0.118, allocations: 338.8 kB / 407 MB, free: 3.977 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.118, allocations: 0 / 407 MB, free: 3.977 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004298/0.1185, allocations: 107.8 kB / 407.1 MB, free: 3.871 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 17 (R.Fin,R_Bias.Fin,ProcessCtrl.Y[3],ProcessCtrl.Y[4],ProcessCtrl.U[2],ProcessCtrl.U[3],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.Y[4],processNoCtrl.U[2],processNoCtrl.U[3],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.Y[4],ProcessBias.U[2],ProcessBias.U[3],ProcessBias.w) * Number of discrete variables: 6 ($whenCondition1,Disturbance.a,Disturbance.b,Disturbance.last,Disturbance.nextEvent,Disturbance.nextEventScaled) * Number of discrete states: 6 (Disturbance.nextEvent,Disturbance.last,Disturbance.nextEventScaled,Disturbance.b,Disturbance.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * 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 Backend phase and start with SimCode phase: time 0.0002085/0.1187, allocations: 151.9 kB / 407.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008886/0.1196, allocations: 0.5913 MB / 407.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1196, allocations: 0 / 407.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003745/0.12, allocations: 283.1 kB / 408.1 MB, free: 2.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.1203, allocations: 50.61 kB / 408.2 MB, free: 2.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.1219, allocations: 1.266 MB / 409.4 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004805/0.1224, allocations: 0.8858 MB / 410.3 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002673/0.1227, allocations: 116.2 kB / 410.4 MB, free: 456 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.652e-05/0.1228, allocations: 35.44 kB / 410.5 MB, free: 420 kB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1228, allocations: 3.938 kB / 410.5 MB, free: 416 kB / 302.1 MB Notification: Performance of Templates: time 0.008014/0.1308, allocations: 3.812 MB / 414.3 MB, free: 12.59 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)