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.001539/0.001539, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002397/0.002397, allocations: 192.3 kB / 16.13 MB, free: 6.699 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.593/1.593, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05462/0.05462, allocations: 10.75 MB / 280.1 MB, free: 10.72 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.00135/0.001351, allocations: 68.33 kB / 339.8 MB, free: 23.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.111, allocations: 49.03 MB / 388.9 MB, free: 6.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_bias): time 0.00349/0.1145, allocations: 2.15 MB / 391 MB, free: 4.535 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000738/0.1153, allocations: 394.9 kB / 391.4 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.1154, allocations: 11.88 kB / 391.4 MB, free: 4.137 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002177/0.1156, allocations: 35.66 kB / 391.5 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.259e-05/0.1157, allocations: 31.8 kB / 391.5 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.1162, allocations: 167.8 kB / 391.7 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004764/0.1167, allocations: 439.3 kB / 392.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.1169, allocations: 88.64 kB / 392.2 MB, free: 3.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001605/0.1171, allocations: 139.3 kB / 392.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.1173, allocations: 163.2 kB / 392.5 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.697e-05/0.1174, allocations: 12 kB / 392.5 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.144e-05/0.1174, allocations: 16 kB / 392.5 MB, free: 3.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.1175, allocations: 111.6 kB / 392.6 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.1177, allocations: 150.9 kB / 392.7 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.118, allocations: 334.9 kB / 393.1 MB, free: 2.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.118, allocations: 0 / 393.1 MB, free: 2.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.118, allocations: 0 / 393.1 MB, free: 2.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.118, allocations: 4 kB / 393.1 MB, free: 2.477 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.001104/0.1191, allocations: 0.7009 MB / 393.8 MB, free: 1.727 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1192, allocations: 8.031 kB / 393.8 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.06e-05/0.1193, allocations: 52.31 kB / 393.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004462/0.1197, allocations: 363.7 kB / 394.2 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.1198, allocations: 21.03 kB / 394.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.1198, allocations: 36.38 kB / 394.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006179/0.1204, allocations: 400.1 kB / 394.6 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.1205, allocations: 4.094 kB / 394.6 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.1205, allocations: 19.94 kB / 394.7 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.1205, allocations: 12 kB / 394.7 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005042/0.121, allocations: 294.4 kB / 395 MB, free: 492 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.1231, allocations: 1.493 MB / 396.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.1235, allocations: 174.9 kB / 396.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.1237, allocations: 116.7 kB / 396.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.1237, allocations: 3.938 kB / 396.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.1238, allocations: 38.56 kB / 396.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.332e-06/0.1238, allocations: 0 / 396.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005977/0.1244, allocations: 317 kB / 397.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.1244, allocations: 55.41 kB / 397.1 MB, free: 14.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000395/0.1248, allocations: 397.6 kB / 397.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1249, allocations: 37.64 kB / 397.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.125, allocations: 235.9 kB / 397.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.624e-05/0.1251, allocations: 78.81 kB / 397.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.312e-05/0.1252, allocations: 69.59 kB / 397.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1253, allocations: 358.7 kB / 398.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001768/0.1255, allocations: 88.31 kB / 398.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.1257, allocations: 221.9 kB / 398.6 MB, free: 12.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.1271, allocations: 0.577 MB / 399.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1271, allocations: 0 / 399.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005875/0.1277, allocations: 412.8 kB / 399.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.1277, allocations: 11.94 kB / 399.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1277, allocations: 4 kB / 399.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1277, allocations: 4 kB / 399.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.128, allocations: 83.89 kB / 399.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.1281, allocations: 12.39 kB / 399.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.1282, allocations: 51.58 kB / 399.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.1282, allocations: 16 kB / 399.8 MB, free: 11.42 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.000252/0.1285, allocations: 183.6 kB / 399.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.479e-05/0.1286, allocations: 43.47 kB / 400 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000547/0.1291, allocations: 288.8 kB / 400.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.1291, allocations: 4 kB / 400.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1292, allocations: 0 / 400.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1292, allocations: 0 / 400.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003983/0.1296, allocations: 377.3 kB / 400.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1296, allocations: 8 kB / 400.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.1299, allocations: 67.89 kB / 400.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/0.1299, allocations: 3.938 kB / 400.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.13, allocations: 8 kB / 400.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.13, allocations: 3.984 kB / 400.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.13, allocations: 7.984 kB / 400.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006222/0.1306, allocations: 474.7 kB / 401.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.074e-05/0.1307, allocations: 116.5 kB / 401.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.097e-05/0.1307, allocations: 8 kB / 401.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.1309, allocations: 19.92 kB / 401.3 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.604e-05/0.1309, allocations: 15.97 kB / 401.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.1309, allocations: 8 kB / 401.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002421/0.1312, allocations: 271.2 kB / 401.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1312, allocations: 0 / 401.6 MB, free: 9.445 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003056/0.1315, allocations: 63.84 kB / 401.7 MB, free: 9.383 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.0001168/0.1316, allocations: 111.2 kB / 401.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.1321, allocations: 268.7 kB / 402.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1321, allocations: 0 / 402.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.1323, allocations: 115.8 kB / 402.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000351/0.1327, allocations: 41.55 kB / 402.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.1338, allocations: 0.8908 MB / 403.1 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/0.1342, allocations: 0.8229 MB / 403.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001751/0.1344, allocations: 83.03 kB / 404 MB, free: 7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.155e-05/0.1345, allocations: 31.44 kB / 404 MB, free: 6.969 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1345, allocations: 0 / 404 MB, free: 6.969 MB / 302.1 MB Notification: Performance of Templates: time 0.005761/0.1403, allocations: 2.127 MB / 406.2 MB, free: 4.844 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)