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 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.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.006807/0.006807, allocations: 97.5 kB / 15.73 MB, free: 5.547 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.001448/0.001448, allocations: 194.6 kB / 16.68 MB, free: 5.469 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.577/1.577, allocations: 205.1 MB / 222.5 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06441/0.06441, allocations: 10.74 MB / 280.7 MB, free: 1.27 MB / 222.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.002233/0.002233, allocations: 71.52 kB / 390.3 MB, free: 46.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09206/0.09429, allocations: 49.04 MB / 439.4 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_bias): time 0.003003/0.09729, allocations: 2.165 MB / 441.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.09896, allocations: 1.037 MB / 442.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001654/0.09913, allocations: 15.88 kB / 442.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.09937, allocations: 83.41 kB / 442.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001003/0.09947, allocations: 75.48 kB / 442.7 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007904/0.1003, allocations: 311.3 kB / 443 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004778/0.1007, allocations: 0.5826 MB / 443.6 MB, free: 24 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.101, allocations: 77.25 kB / 443.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.1012, allocations: 207.3 kB / 443.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003728/0.1016, allocations: 243 kB / 444.1 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-05/0.1017, allocations: 36 kB / 444.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.1019, allocations: 107.9 kB / 444.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000192/0.1021, allocations: 159.4 kB / 444.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002341/0.1023, allocations: 218.5 kB / 444.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006618/0.103, allocations: 0.5094 MB / 445.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.103, allocations: 3.984 kB / 445.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.103, allocations: 4 kB / 445.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.103, allocations: 0 / 445.2 MB, free: 14.47 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001581/0.1046, allocations: 0.8624 MB / 446 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.1046, allocations: 15.89 kB / 446 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.62e-05/0.1047, allocations: 78.72 kB / 446.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.1048, allocations: 64.52 kB / 446.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006582/0.1055, allocations: 438.1 kB / 446.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.632e-05/0.1055, allocations: 29.38 kB / 446.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.1057, allocations: 44.33 kB / 446.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008433/0.1065, allocations: 0.5085 MB / 447.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.1065, allocations: 7.984 kB / 447.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.1066, allocations: 16 kB / 447.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.1066, allocations: 12 kB / 447.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007333/0.1073, allocations: 399.6 kB / 447.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003087/0.1104, allocations: 1.779 MB / 449.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000623/0.111, allocations: 254.4 kB / 449.6 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002983/0.1113, allocations: 161.1 kB / 449.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.1114, allocations: 4 kB / 449.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004468/0.1118, allocations: 269 kB / 450.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 2.274e-06/0.1118, allocations: 0 / 450.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.001143/0.113, allocations: 0.578 MB / 450.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.113, allocations: 85.11 kB / 450.7 MB, free: 8.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005903/0.1136, allocations: 493.8 kB / 451.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.1137, allocations: 29.7 kB / 451.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.1139, allocations: 288.4 kB / 451.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.114, allocations: 138.9 kB / 451.7 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.1142, allocations: 106.2 kB / 451.8 MB, free: 7.574 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.1144, allocations: 370.7 kB / 452.1 MB, free: 7.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003099/0.1147, allocations: 173.1 kB / 452.3 MB, free: 7.027 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.1152, allocations: 337.6 kB / 452.6 MB, free: 6.629 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.1175, allocations: 1.066 MB / 453.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1175, allocations: 0 / 453.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001229/0.1188, allocations: 0.723 MB / 454.4 MB, free: 4.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.1188, allocations: 43.83 kB / 454.5 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/0.1188, allocations: 4 kB / 454.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.54e-05/0.1189, allocations: 8 kB / 454.5 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005314/0.1194, allocations: 131.8 kB / 454.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.1194, allocations: 11.94 kB / 454.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002786/0.1197, allocations: 71.56 kB / 454.7 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.583e-05/0.1197, allocations: 31.92 kB / 454.7 MB, free: 4.43 MB / 334.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: 23 * Number of states: 0 () * Number of discrete variables: 11 (Disturbance.nextEventScaled,Disturbance.nextEvent,$PRE.Disturbance.nextEvent,Disturbance.last,Disturbance.b,Disturbance.a,$whenCondition1,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 (70): * Single equations (assignments): 69 * 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.0004745/0.1202, allocations: 282.2 kB / 455 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.088e-05/0.1203, allocations: 55.67 kB / 455 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.1213, allocations: 0.5139 MB / 455.6 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.1213, allocations: 4 kB / 455.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1213, allocations: 0 / 455.6 MB, free: 3.559 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.1213, allocations: 3.984 kB / 455.6 MB, free: 3.555 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007095/0.122, allocations: 469.2 kB / 456 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.122, allocations: 0 / 456 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005133/0.1226, allocations: 91.88 kB / 456.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.1226, allocations: 0 / 456.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/0.1226, allocations: 19.98 kB / 456.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1226, allocations: 0 / 456.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1226, allocations: 0 / 456.1 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.1239, allocations: 0.7163 MB / 456.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.124, allocations: 124.7 kB / 457 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.411e-05/0.1241, allocations: 23.98 kB / 457 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.1243, allocations: 19.98 kB / 457 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.618e-05/0.1243, allocations: 23.97 kB / 457 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.771e-05/0.1244, allocations: 15.98 kB / 457 MB, free: 1.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004133/0.1248, allocations: 331.1 kB / 457.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1248, allocations: 0 / 457.4 MB, free: 1.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004521/0.1252, allocations: 115.8 kB / 457.5 MB, free: 1.539 MB / 334.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.001709/0.127, allocations: 1.313 MB / 458.8 MB, free: 196 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009733/0.1279, allocations: 0.5083 MB / 459.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1279, allocations: 0 / 459.3 MB, free: 15.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003601/0.1283, allocations: 243.3 kB / 459.5 MB, free: 15.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000402/0.1287, allocations: 53.16 kB / 459.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007413/0.1361, allocations: 4.927 MB / 464.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006354/0.1367, allocations: 0.8859 MB / 465.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003032/0.137, allocations: 108.1 kB / 465.5 MB, free: 9.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002655/0.1373, allocations: 183.4 kB / 465.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of SimCode: time 1.462e-06/0.1373, allocations: 0 / 465.7 MB, free: 9.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03913/0.1764, allocations: 8.994 MB / 474.7 MB, free: 96 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.146/9.323, allocations: 19.94 kB / 474.7 MB, free: 76 kB / 350.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)