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.00817/0.008171, allocations: 95.38 kB / 15.73 MB, free: 6.043 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.00204/0.002041, allocations: 206.6 kB / 16.68 MB, free: 5.965 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.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05965/0.05965, allocations: 10.73 MB / 280.6 MB, free: 1.289 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.001714/0.001714, allocations: 69.25 kB / 390.3 MB, free: 46.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07862/0.08035, allocations: 49.03 MB / 439.4 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_bias): time 0.00328/0.08368, allocations: 2.161 MB / 441.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.08535, allocations: 1.037 MB / 442.6 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000341/0.08573, allocations: 19.88 kB / 442.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.08612, allocations: 83.42 kB / 442.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.08637, allocations: 67.5 kB / 442.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.08738, allocations: 315.3 kB / 443 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006074/0.08801, allocations: 0.5904 MB / 443.6 MB, free: 144 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.08821, allocations: 89.27 kB / 443.7 MB, free: 52 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003662/0.08859, allocations: 203.3 kB / 443.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004193/0.08902, allocations: 247.1 kB / 444.2 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.08914, allocations: 35.94 kB / 444.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002275/0.08938, allocations: 111.9 kB / 444.3 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.08959, allocations: 147.6 kB / 444.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.08985, allocations: 226.5 kB / 444.7 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006955/0.09056, allocations: 0.5056 MB / 445.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.09057, allocations: 0 / 445.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.09059, allocations: 0 / 445.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.09061, allocations: 0 / 445.2 MB, free: 14.59 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.001648/0.09227, allocations: 0.8701 MB / 446 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.864e-05/0.09233, allocations: 11.89 kB / 446 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001174/0.09245, allocations: 82.7 kB / 446.1 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001288/0.09259, allocations: 64.52 kB / 446.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007124/0.09331, allocations: 434.2 kB / 446.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.09336, allocations: 29.38 kB / 446.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.733e-05/0.09346, allocations: 48.31 kB / 446.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008629/0.09433, allocations: 0.5046 MB / 447.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.706e-05/0.09438, allocations: 4 kB / 447.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.873e-05/0.09443, allocations: 20 kB / 447.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.09445, allocations: 11.98 kB / 447.2 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000688/0.09514, allocations: 395.7 kB / 447.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003004/0.09816, allocations: 1.779 MB / 449.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000543/0.09874, allocations: 284.5 kB / 449.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.09904, allocations: 181 kB / 449.9 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.09909, allocations: 4 kB / 449.9 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000393/0.09949, allocations: 257.1 kB / 450.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of pre-optimization done (n=36): time 2.765e-06/0.09951, allocations: 0 / 450.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=36): time 0.00102/0.1005, allocations: 0.578 MB / 450.7 MB, free: 8.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.1006, allocations: 85.11 kB / 450.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005795/0.1012, allocations: 493.7 kB / 451.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.838e-05/0.1013, allocations: 29.7 kB / 451.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.1015, allocations: 288.4 kB / 451.6 MB, free: 7.902 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.1016, allocations: 138.9 kB / 451.7 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.1018, allocations: 106.2 kB / 451.8 MB, free: 7.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1019, allocations: 374.7 kB / 452.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002972/0.1023, allocations: 165.1 kB / 452.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.1026, allocations: 333.7 kB / 452.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002166/0.1048, allocations: 1.074 MB / 453.7 MB, free: 5.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.1048, allocations: 4 kB / 453.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001169/0.106, allocations: 0.7191 MB / 454.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.999e-05/0.1061, allocations: 45.62 kB / 454.5 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.1061, allocations: 4 kB / 454.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.937e-05/0.1062, allocations: 8 kB / 454.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005374/0.1067, allocations: 131.8 kB / 454.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/0.1067, allocations: 15.92 kB / 454.7 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/0.1071, allocations: 63.56 kB / 454.7 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.354e-05/0.1071, allocations: 28 kB / 454.7 MB, free: 4.516 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.0004211/0.1076, allocations: 286.4 kB / 455 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1077, allocations: 51.67 kB / 455.1 MB, free: 4.172 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008631/0.1085, allocations: 0.5178 MB / 455.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1086, allocations: 4 kB / 455.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.1086, allocations: 0 / 455.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1086, allocations: 0 / 455.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000526/0.1091, allocations: 477.1 kB / 456.1 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1091, allocations: 4 kB / 456.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005358/0.1097, allocations: 83.94 kB / 456.1 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.1097, allocations: 3.984 kB / 456.1 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.386e-05/0.1098, allocations: 15.98 kB / 456.2 MB, free: 3.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.1098, allocations: 3.938 kB / 456.2 MB, free: 3.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.1098, allocations: 4 kB / 456.2 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.1109, allocations: 0.7164 MB / 456.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/0.111, allocations: 128.7 kB / 457 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.698e-05/0.1111, allocations: 16 kB / 457 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1113, allocations: 19.98 kB / 457 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.952e-05/0.1114, allocations: 23.95 kB / 457.1 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.1114, allocations: 15.94 kB / 457.1 MB, free: 2.051 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003447/0.1117, allocations: 331.1 kB / 457.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1118, allocations: 0 / 457.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004609/0.1122, allocations: 111.8 kB / 457.5 MB, free: 1.621 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.001459/0.1137, allocations: 1.305 MB / 458.8 MB, free: 288 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008995/0.1146, allocations: 0.5585 MB / 459.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1146, allocations: 0 / 459.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003215/0.115, allocations: 279.1 kB / 459.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004149/0.1154, allocations: 57.16 kB / 459.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006536/0.1219, allocations: 4.928 MB / 464.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004763/0.1225, allocations: 0.8781 MB / 465.5 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003139/0.1228, allocations: 108.1 kB / 465.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.1231, allocations: 183.1 kB / 465.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.1231, allocations: 0 / 465.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03225/0.1553, allocations: 8.984 MB / 474.8 MB, free: 120 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.806/8.961, allocations: 8 kB / 474.8 MB, free: 112 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)