Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_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.TestPID_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestPID_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 105.1 kB / 15.99 MB, free: 5.887 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.001273/0.001273, allocations: 196.6 kB / 16.91 MB, free: 5.746 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.492/1.492, allocations: 205.1 MB / 222.8 MB, free: 4.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05469/0.05469, allocations: 10.73 MB / 280.8 MB, free: 10.67 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.001303/0.001303, allocations: 67.83 kB / 340.7 MB, free: 23.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09696, allocations: 49.02 MB / 389.7 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.003683/0.1007, allocations: 2.24 MB / 392 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.102, allocations: 0.6707 MB / 392.6 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.1022, allocations: 19.81 kB / 392.6 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002103/0.1024, allocations: 39.66 kB / 392.7 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001941/0.1026, allocations: 31.73 kB / 392.7 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006274/0.1032, allocations: 295.5 kB / 393 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005712/0.1038, allocations: 0.5741 MB / 393.6 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.104, allocations: 93 kB / 393.7 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.1043, allocations: 223 kB / 393.9 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.1045, allocations: 207 kB / 394.1 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.1046, allocations: 32 kB / 394.1 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.709e-05/0.1047, allocations: 36 kB / 394.1 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.1048, allocations: 139.6 kB / 394.3 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.105, allocations: 198.7 kB / 394.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.1052, allocations: 291.8 kB / 394.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1053, allocations: 0 / 394.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1053, allocations: 3.938 kB / 394.8 MB, free: 1.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1053, allocations: 0 / 394.8 MB, free: 1.504 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001257/0.1065, allocations: 0.7833 MB / 395.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.1066, allocations: 15.83 kB / 395.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.042e-05/0.1067, allocations: 56.28 kB / 395.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.1071, allocations: 401.9 kB / 396 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.402e-05/0.1072, allocations: 84.97 kB / 396.1 MB, free: 72 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.97e-05/0.1073, allocations: 44.36 kB / 396.1 MB, free: 28 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006966/0.108, allocations: 461.2 kB / 396.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.904e-05/0.108, allocations: 7.938 kB / 396.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.1081, allocations: 16 kB / 396.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1081, allocations: 8 kB / 396.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000585/0.1087, allocations: 359.6 kB / 397 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002529/0.1112, allocations: 1.682 MB / 398.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008283/0.1121, allocations: 299.3 kB / 398.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002476/0.1123, allocations: 176.8 kB / 399.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.914e-05/0.1124, allocations: 8.266 kB / 399.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.1124, allocations: 46.78 kB / 399.2 MB, free: 12.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.693e-06/0.1124, allocations: 3.938 kB / 399.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0007967/0.1132, allocations: 447.8 kB / 399.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.1133, allocations: 55.41 kB / 399.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.1137, allocations: 417.8 kB / 400.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.1137, allocations: 29.7 kB / 400.1 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.1139, allocations: 252 kB / 400.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.098e-05/0.114, allocations: 130.2 kB / 400.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.1141, allocations: 82.12 kB / 400.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1143, allocations: 358.8 kB / 400.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.1145, allocations: 128.9 kB / 401 MB, free: 10.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.1148, allocations: 258.7 kB / 401.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002069/0.1169, allocations: 0.8049 MB / 402.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.551e-05/0.1169, allocations: 0 / 402.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000769/0.1177, allocations: 0.5117 MB / 402.6 MB, free: 9.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.1178, allocations: 15.88 kB / 402.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1178, allocations: 4 kB / 402.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.1178, allocations: 4.469 kB / 402.6 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.1183, allocations: 123.8 kB / 402.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.446e-05/0.1183, allocations: 11.98 kB / 402.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002107/0.1185, allocations: 59.42 kB / 402.8 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/0.1186, allocations: 20 kB / 402.8 MB, free: 9.055 MB / 302.1 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (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 (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * 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.0002769/0.1188, allocations: 191.6 kB / 403 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.176e-05/0.1189, allocations: 47.38 kB / 403.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007106/0.1196, allocations: 405.5 kB / 403.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.1197, allocations: 7.984 kB / 403.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1197, allocations: 0 / 403.5 MB, free: 8.398 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1197, allocations: 3.938 kB / 403.5 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004912/0.1202, allocations: 445.2 kB / 403.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.1202, allocations: 0 / 403.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005365/0.1207, allocations: 91.94 kB / 404 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.358e-05/0.1208, allocations: 15.88 kB / 404 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.1208, allocations: 15.98 kB / 404 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.1208, allocations: 0 / 404 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1208, allocations: 3.984 kB / 404 MB, free: 7.785 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008616/0.1217, allocations: 0.6096 MB / 404.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.492e-05/0.1218, allocations: 132.4 kB / 404.8 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.151e-05/0.1218, allocations: 11.98 kB / 404.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.122, allocations: 15.98 kB / 404.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.016e-05/0.1221, allocations: 27.91 kB / 404.8 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.1221, allocations: 12 kB / 404.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002756/0.1224, allocations: 287.1 kB / 405.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1224, allocations: 0 / 405.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.1228, allocations: 79.75 kB / 405.2 MB, free: 6.582 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (R.Iaction,R.Fder,R_Bias.Iaction,R_Bias.Fder,ProcessCtrl.Y[3],ProcessCtrl.U[2],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.U[2],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.U[2],ProcessBias.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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.0001288/0.1229, allocations: 119.8 kB / 405.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007185/0.1236, allocations: 407.1 kB / 405.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.1237, allocations: 0 / 405.7 MB, free: 6.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002496/0.1239, allocations: 172.4 kB / 405.9 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.1243, allocations: 49.73 kB / 405.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.1258, allocations: 1.141 MB / 407.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.1263, allocations: 0.8586 MB / 407.9 MB, free: 3.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.1264, allocations: 35.44 kB / 408 MB, free: 3.746 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1264, allocations: 0 / 408 MB, free: 3.746 MB / 302.1 MB Notification: Performance of Templates: time 0.007107/0.1335, allocations: 5.064 MB / 413 MB, free: 14.68 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1)