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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 192.4 kB / 16.53 MB, free: 6.664 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.491/1.491, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05883/0.05883, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.00165/0.00165, allocations: 71.89 kB / 340.6 MB, free: 23.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09903/0.1007, allocations: 49.01 MB / 389.7 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.003651/0.1044, allocations: 2.191 MB / 391.8 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001566/0.106, allocations: 0.6784 MB / 392.5 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003542/0.1064, allocations: 19.81 kB / 392.5 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1066, allocations: 55.39 kB / 392.6 MB, free: 3.195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.1069, allocations: 47.55 kB / 392.6 MB, free: 3.148 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000812/0.1077, allocations: 327.4 kB / 393 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008223/0.1086, allocations: 0.5702 MB / 393.5 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.1088, allocations: 101.2 kB / 393.6 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003384/0.1092, allocations: 203.3 kB / 393.8 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000335/0.1095, allocations: 203 kB / 394 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.48e-05/0.1096, allocations: 40 kB / 394.1 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.605e-05/0.1097, allocations: 32 kB / 394.1 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.1099, allocations: 139.6 kB / 394.2 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.11, allocations: 198.7 kB / 394.4 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004162/0.1105, allocations: 398.4 kB / 394.8 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1105, allocations: 4 kB / 394.8 MB, free: 0.957 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.1105, allocations: 0 / 394.8 MB, free: 0.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.327e-05/0.1105, allocations: 0 / 394.8 MB, free: 0.957 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.001536/0.1121, allocations: 0.7872 MB / 395.6 MB, free: 120 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.1121, allocations: 11.89 kB / 395.6 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.1122, allocations: 90.66 kB / 395.7 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.1124, allocations: 56.44 kB / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000615/0.113, allocations: 397.9 kB / 396.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.335e-05/0.1131, allocations: 84.97 kB / 396.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.775e-05/0.1132, allocations: 40.36 kB / 396.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007766/0.114, allocations: 464.9 kB / 396.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.114, allocations: 11.91 kB / 396.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/0.1141, allocations: 16 kB / 396.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.1141, allocations: 8 kB / 396.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006345/0.1147, allocations: 351.7 kB / 397.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002812/0.1175, allocations: 1.694 MB / 398.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008664/0.1184, allocations: 291.1 kB / 399.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.1187, allocations: 176.8 kB / 399.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.968e-05/0.1188, allocations: 12.27 kB / 399.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.1188, allocations: 38.78 kB / 399.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.793e-06/0.1188, allocations: 3.938 kB / 399.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008216/0.1196, allocations: 447.8 kB / 399.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.1197, allocations: 55.41 kB / 399.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004455/0.1201, allocations: 421.8 kB / 400.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.1202, allocations: 29.7 kB / 400.2 MB, free: 11.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.1204, allocations: 252 kB / 400.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.886e-05/0.1205, allocations: 126.2 kB / 400.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.1206, allocations: 86.12 kB / 400.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1208, allocations: 358.8 kB / 401.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002397/0.121, allocations: 128.9 kB / 401.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003253/0.1214, allocations: 250.7 kB / 401.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.1236, allocations: 0.8049 MB / 402.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1236, allocations: 0 / 402.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000805/0.1244, allocations: 0.5156 MB / 402.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.1245, allocations: 4.469 kB / 402.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.1245, allocations: 4 kB / 402.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/0.1245, allocations: 12 kB / 402.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.125, allocations: 123.8 kB / 402.9 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.125, allocations: 4 kB / 402.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000219/0.1253, allocations: 59.36 kB / 402.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.036e-05/0.1253, allocations: 20 kB / 403 MB, free: 8.426 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.0002751/0.1256, allocations: 207.5 kB / 403.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.865e-05/0.1257, allocations: 47.38 kB / 403.2 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007274/0.1264, allocations: 405.5 kB / 403.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.1264, allocations: 4 kB / 403.6 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1264, allocations: 3.938 kB / 403.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1264, allocations: 3.938 kB / 403.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005089/0.127, allocations: 441.2 kB / 404.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.127, allocations: 0 / 404.1 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000542/0.1275, allocations: 103.9 kB / 404.2 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.1275, allocations: 3.938 kB / 404.2 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.1276, allocations: 15.98 kB / 404.2 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.1276, allocations: 4 kB / 404.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1276, allocations: 0 / 404.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008692/0.1285, allocations: 0.6096 MB / 404.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.1286, allocations: 132.4 kB / 404.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.1287, allocations: 11.98 kB / 404.9 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.1288, allocations: 15.98 kB / 404.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.1289, allocations: 23.97 kB / 405 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.1289, allocations: 4 kB / 405 MB, free: 6.309 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003123/0.1293, allocations: 291.1 kB / 405.3 MB, free: 6.027 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1293, allocations: 0 / 405.3 MB, free: 6.027 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003723/0.1296, allocations: 79.75 kB / 405.3 MB, free: 5.949 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.00115/0.1308, allocations: 1.174 MB / 406.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006966/0.1315, allocations: 411.9 kB / 406.9 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1315, allocations: 4 kB / 406.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002595/0.1318, allocations: 167.5 kB / 407.1 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.1322, allocations: 57.77 kB / 407.1 MB, free: 4.129 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005051/0.1372, allocations: 4.15 MB / 411.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004365/0.1377, allocations: 0.8547 MB / 412.1 MB, free: 14.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002439/0.1379, allocations: 83.36 kB / 412.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.1382, allocations: 171.4 kB / 412.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1382, allocations: 0 / 412.4 MB, free: 14.67 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03839/0.1766, allocations: 7.266 MB / 419.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.665/7.842, allocations: 0 / 419.7 MB, free: 7.441 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1)