Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_bias,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.001631, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001933/0.001933, allocations: 190.9 kB / 16.25 MB, free: 6.621 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.49/1.49, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05408/0.05408, allocations: 10.74 MB / 280.2 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.001425/0.001425, allocations: 76.22 kB / 340 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1039, allocations: 49.01 MB / 389.1 MB, free: 6.617 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_bias): time 0.00325/0.1072, allocations: 2.15 MB / 391.2 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007847/0.108, allocations: 398.9 kB / 391.6 MB, free: 4.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.1082, allocations: 7.938 kB / 391.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002215/0.1084, allocations: 39.66 kB / 391.6 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.808e-05/0.1086, allocations: 23.8 kB / 391.7 MB, free: 3.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004988/0.1091, allocations: 167.8 kB / 391.8 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005456/0.1096, allocations: 475.2 kB / 392.3 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.1098, allocations: 84.64 kB / 392.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001704/0.11, allocations: 155.4 kB / 392.5 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.1102, allocations: 171.1 kB / 392.7 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.498e-05/0.1103, allocations: 28 kB / 392.7 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.479e-05/0.1104, allocations: 28 kB / 392.7 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.1105, allocations: 119.6 kB / 392.9 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.1107, allocations: 162.9 kB / 393 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003274/0.111, allocations: 343 kB / 393.4 MB, free: 2.289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.247e-06/0.111, allocations: 4 kB / 393.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.111, allocations: 0 / 393.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1111, allocations: 0 / 393.4 MB, free: 2.285 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.00116/0.1122, allocations: 0.7053 MB / 394.1 MB, free: 1.527 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1123, allocations: 11.89 kB / 394.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.1124, allocations: 48.38 kB / 394.1 MB, free: 1.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004483/0.1129, allocations: 359.7 kB / 394.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.925e-05/0.1129, allocations: 25.03 kB / 394.5 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.81e-05/0.113, allocations: 36.38 kB / 394.5 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006394/0.1136, allocations: 404.1 kB / 394.9 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.1136, allocations: 8.078 kB / 394.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.1137, allocations: 23.86 kB / 395 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1137, allocations: 8 kB / 395 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005184/0.1142, allocations: 286.4 kB / 395.3 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/0.1163, allocations: 1.497 MB / 396.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.1167, allocations: 182.9 kB / 396.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.117, allocations: 112.7 kB / 397 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.343e-05/0.117, allocations: 4 kB / 397 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.1171, allocations: 34.56 kB / 397.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1171, allocations: 4 kB / 397.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006553/0.1177, allocations: 326.6 kB / 397.4 MB, free: 14.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.1178, allocations: 55.41 kB / 397.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.1182, allocations: 393.6 kB / 397.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.1182, allocations: 29.7 kB / 397.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.1183, allocations: 231.9 kB / 398.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.927e-05/0.1184, allocations: 82.81 kB / 398.2 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.675e-05/0.1185, allocations: 77.59 kB / 398.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1186, allocations: 350.7 kB / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.1188, allocations: 96.31 kB / 398.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.1191, allocations: 210.1 kB / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.1205, allocations: 0.5803 MB / 399.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.1205, allocations: 4 kB / 399.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007081/0.1212, allocations: 408.8 kB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.1212, allocations: 7.938 kB / 399.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1212, allocations: 4 kB / 399.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.1213, allocations: 8 kB / 399.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003315/0.1216, allocations: 91.81 kB / 400 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1216, allocations: 8.469 kB / 400 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001623/0.1218, allocations: 47.58 kB / 400 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.1219, allocations: 16 kB / 400.1 MB, free: 11.21 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 (45): * Single equations (assignments): 45 * 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.0002297/0.1221, allocations: 191.5 kB / 400.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.707e-05/0.1222, allocations: 43.47 kB / 400.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005221/0.1227, allocations: 284.9 kB / 400.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1227, allocations: 0 / 400.6 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1227, allocations: 4 kB / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.1227, allocations: 0 / 400.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003701/0.1231, allocations: 377.3 kB / 400.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1231, allocations: 4 kB / 400.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.1235, allocations: 63.89 kB / 401 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.1235, allocations: 7.875 kB / 401 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.1235, allocations: 11.98 kB / 401 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.1235, allocations: 0 / 401 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1235, allocations: 0 / 401 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007435/0.1243, allocations: 482.7 kB / 401.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.73e-05/0.1244, allocations: 120.5 kB / 401.6 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.821e-05/0.1244, allocations: 11.98 kB / 401.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.1246, allocations: 11.98 kB / 401.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.247e-05/0.1246, allocations: 11.98 kB / 401.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.1246, allocations: 8 kB / 401.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002808/0.1249, allocations: 275.1 kB / 401.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1249, allocations: 0 / 401.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.1253, allocations: 63.84 kB / 402 MB, free: 9.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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 (23): * Single equations (assignments): 23 * 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.0001118/0.1254, allocations: 114.7 kB / 402.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005241/0.1259, allocations: 292.7 kB / 402.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.1259, allocations: 0 / 402.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.1261, allocations: 111.9 kB / 402.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00037/0.1265, allocations: 45.34 kB / 402.5 MB, free: 8.629 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.1278, allocations: 0.8929 MB / 403.4 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005611/0.1284, allocations: 0.8304 MB / 404.3 MB, free: 6.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.1286, allocations: 75.05 kB / 404.3 MB, free: 6.773 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.207e-05/0.1287, allocations: 27.44 kB / 404.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1287, allocations: 0 / 404.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of Templates: time 0.005759/0.1344, allocations: 2.233 MB / 406.6 MB, free: 4.512 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe 2>&1)