Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.TestD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_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.007481/0.007481, allocations: 101.9 kB / 15.73 MB, free: 6.023 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.001402/0.001402, allocations: 196.3 kB / 16.68 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.48/1.48, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06504/0.06504, allocations: 11.21 MB / 301.7 MB, free: 4.039 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001886/0.001886, allocations: 67.81 kB / 417.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09668, allocations: 51.98 MB / 469.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_bias): time 0.004248/0.101, allocations: 2.231 MB / 471.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.1031, allocations: 1.025 MB / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000215/0.1034, allocations: 11.88 kB / 472.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003254/0.1037, allocations: 87.34 kB / 472.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001436/0.1039, allocations: 71.5 kB / 472.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.1049, allocations: 339.2 kB / 473.1 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007343/0.1056, allocations: 0.6145 MB / 473.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002226/0.1059, allocations: 81.06 kB / 473.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003013/0.1062, allocations: 227.2 kB / 474 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003745/0.1065, allocations: 239 kB / 474.2 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.535e-05/0.1066, allocations: 36 kB / 474.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.1069, allocations: 115.9 kB / 474.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001848/0.1071, allocations: 163.5 kB / 474.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002324/0.1073, allocations: 230.5 kB / 474.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006971/0.108, allocations: 0.5253 MB / 475.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.108, allocations: 0 / 475.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.108, allocations: 0 / 475.3 MB, free: 9.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.108, allocations: 0 / 475.3 MB, free: 9.102 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001547/0.1096, allocations: 0.8934 MB / 476.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.1096, allocations: 11.89 kB / 476.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001035/0.1098, allocations: 86.7 kB / 476.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.1099, allocations: 68.52 kB / 476.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006298/0.1105, allocations: 450.1 kB / 476.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/0.1106, allocations: 33.38 kB / 476.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.1e-05/0.1107, allocations: 52.33 kB / 476.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009172/0.1116, allocations: 0.547 MB / 477.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.1116, allocations: 15.95 kB / 477.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.1117, allocations: 23.88 kB / 477.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.1117, allocations: 12 kB / 477.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007308/0.1124, allocations: 415.6 kB / 477.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003247/0.1157, allocations: 2.151 MB / 480 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005752/0.1163, allocations: 275.7 kB / 480.3 MB, free: 3.852 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002979/0.1166, allocations: 180.8 kB / 480.5 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.649e-05/0.1167, allocations: 4 kB / 480.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004344/0.1171, allocations: 264.9 kB / 480.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.294e-06/0.1171, allocations: 0 / 480.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001119/0.1182, allocations: 0.5785 MB / 481.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.991e-05/0.1183, allocations: 85.11 kB / 481.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006337/0.119, allocations: 0.5135 MB / 481.9 MB, free: 2.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.882e-05/0.119, allocations: 33.7 kB / 481.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000269/0.1193, allocations: 296.4 kB / 482.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001374/0.1194, allocations: 146.7 kB / 482.4 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001905/0.1196, allocations: 114.2 kB / 482.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002044/0.1198, allocations: 370.8 kB / 482.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003205/0.1202, allocations: 169.1 kB / 483 MB, free: 1.035 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/0.1206, allocations: 361.9 kB / 483.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002338/0.123, allocations: 1.101 MB / 484.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.123, allocations: 4 kB / 484.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00125/0.1243, allocations: 0.7459 MB / 485.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.452e-05/0.1243, allocations: 45.69 kB / 485.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.1243, allocations: 4.094 kB / 485.3 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.764e-05/0.1244, allocations: 19.88 kB / 485.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005248/0.1249, allocations: 132.5 kB / 485.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.837e-05/0.1249, allocations: 15.94 kB / 485.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002821/0.1252, allocations: 71.5 kB / 485.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.707e-05/0.1253, allocations: 28 kB / 485.5 MB, free: 14.31 MB / 366.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: 27 * Number of states: 0 () * Number of discrete variables: 15 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,R_Bias.TS_in,R.TS_in,R_Bias.satLOW_in,R_Bias.satHIGH_in,R_Bias.ATreq_in,R.satLOW_in,R.satHIGH_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0004286/0.1257, allocations: 278.5 kB / 485.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.142e-05/0.1258, allocations: 55.61 kB / 485.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009609/0.1268, allocations: 0.5263 MB / 486.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.1268, allocations: 7.938 kB / 486.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1268, allocations: 0 / 486.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1268, allocations: 3.984 kB / 486.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006037/0.1274, allocations: 485.2 kB / 486.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1275, allocations: 0 / 486.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.128, allocations: 87.88 kB / 487 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.128, allocations: 0 / 487 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.992e-05/0.1281, allocations: 19.98 kB / 487 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1281, allocations: 7.875 kB / 487 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1281, allocations: 8 kB / 487 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.1293, allocations: 0.7083 MB / 487.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.1294, allocations: 136.6 kB / 487.8 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.118e-05/0.1295, allocations: 15.98 kB / 487.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001597/0.1297, allocations: 23.92 kB / 487.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.951e-05/0.1297, allocations: 23.97 kB / 487.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.1298, allocations: 16 kB / 487.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00041/0.1302, allocations: 346.8 kB / 488.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1302, allocations: 0 / 488.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004495/0.1307, allocations: 119.8 kB / 488.4 MB, free: 11.36 MB / 366.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.00161/0.1323, allocations: 1.304 MB / 489.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009752/0.1333, allocations: 0.5594 MB / 490.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1333, allocations: 0 / 490.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003738/0.1337, allocations: 279.4 kB / 490.5 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.134, allocations: 61.33 kB / 490.6 MB, free: 9.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006687/0.1407, allocations: 5.076 MB / 495.6 MB, free: 3.777 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005554/0.1413, allocations: 0.882 MB / 496.5 MB, free: 2.871 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002894/0.1416, allocations: 112.3 kB / 496.6 MB, free: 2.758 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.1419, allocations: 195.4 kB / 496.8 MB, free: 2.566 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1419, allocations: 0 / 496.8 MB, free: 2.566 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03528/0.1772, allocations: 9.239 MB / 0.4942 GB, free: 9.492 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.055/9.232, allocations: 15.94 kB / 0.4942 GB, free: 9.477 MB / 382.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_bias.pipe 2>&1)