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.002402/0.002403, allocations: 108 kB / 15.6 MB, free: 132 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.002738/0.002738, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.75/3.75, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1453/0.1453, allocations: 10.74 MB / 280.5 MB, free: 10.53 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.003129/0.003129, allocations: 67.83 kB / 340.6 MB, free: 23.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1961, allocations: 49.02 MB / 389.7 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestD_bias): time 0.006688/0.2029, allocations: 2.167 MB / 391.8 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00316/0.2061, allocations: 1.033 MB / 392.9 MB, free: 2.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002991/0.2065, allocations: 15.88 kB / 392.9 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004196/0.207, allocations: 79.42 kB / 393 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.2072, allocations: 67.5 kB / 393 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.2086, allocations: 315.3 kB / 393.3 MB, free: 2.48 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009065/0.2095, allocations: 0.5903 MB / 393.9 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.2098, allocations: 89.27 kB / 394 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003564/0.2102, allocations: 207.3 kB / 394.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004592/0.2106, allocations: 235.1 kB / 394.4 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.461e-05/0.2107, allocations: 32 kB / 394.5 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000302/0.2111, allocations: 107.9 kB / 394.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.2113, allocations: 163.5 kB / 394.7 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003062/0.2116, allocations: 218.6 kB / 394.9 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007581/0.2124, allocations: 498.2 kB / 395.4 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.2124, allocations: 0 / 395.4 MB, free: 368 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2124, allocations: 0 / 395.4 MB, free: 368 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.2125, allocations: 0 / 395.4 MB, free: 368 kB / 286.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.002625/0.2151, allocations: 0.8473 MB / 396.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001085/0.2152, allocations: 15.89 kB / 396.3 MB, free: 15.44 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001927/0.2154, allocations: 78.72 kB / 396.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005118/0.216, allocations: 56.28 kB / 396.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.2174, allocations: 417.7 kB / 396.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.022e-05/0.2175, allocations: 33.31 kB / 396.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001856/0.2177, allocations: 48.36 kB / 396.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001759/0.2195, allocations: 0.5007 MB / 397.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-05/0.2196, allocations: 11.89 kB / 397.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.059e-05/0.2197, allocations: 16 kB / 397.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/0.2197, allocations: 12 kB / 397.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.221, allocations: 395.6 kB / 397.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01091/0.2319, allocations: 1.791 MB / 399.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009663/0.2329, allocations: 278.3 kB / 399.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.2334, allocations: 184.8 kB / 400.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.724e-05/0.2335, allocations: 7.938 kB / 400.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006929/0.2342, allocations: 253 kB / 400.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 5.75e-06/0.2342, allocations: 0 / 400.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.001715/0.236, allocations: 0.5779 MB / 400.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001/0.2361, allocations: 81.38 kB / 401 MB, free: 10.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008933/0.237, allocations: 489.8 kB / 401.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.855e-05/0.2371, allocations: 33.7 kB / 401.5 MB, free: 10 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005595/0.2377, allocations: 279.8 kB / 401.8 MB, free: 9.727 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002738/0.238, allocations: 134.2 kB / 401.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/0.2383, allocations: 106.2 kB / 402 MB, free: 9.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003931/0.2387, allocations: 374.7 kB / 402.4 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004886/0.2392, allocations: 161.1 kB / 402.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007402/0.24, allocations: 329.8 kB / 402.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003543/0.2436, allocations: 1.082 MB / 403.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/0.2436, allocations: 4 kB / 403.9 MB, free: 7.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001858/0.2455, allocations: 0.7188 MB / 404.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.637e-05/0.2456, allocations: 45.81 kB / 404.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.2456, allocations: 4 kB / 404.7 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.046e-05/0.2457, allocations: 8 kB / 404.7 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008191/0.2465, allocations: 131.8 kB / 404.9 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.354e-05/0.2466, allocations: 15.92 kB / 404.9 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.247, allocations: 71.31 kB / 404.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.315e-05/0.2471, allocations: 24 kB / 405 MB, free: 6.352 MB / 302.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.0006636/0.2478, allocations: 278.5 kB / 405.2 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.2479, allocations: 55.34 kB / 405.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.2494, allocations: 0.5176 MB / 405.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.2494, allocations: 4 kB / 405.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.2494, allocations: 0 / 405.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.2494, allocations: 0 / 405.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.2504, allocations: 492.8 kB / 406.3 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.2505, allocations: 4 kB / 406.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007737/0.2513, allocations: 83.88 kB / 406.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.808e-06/0.2513, allocations: 0 / 406.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.7e-05/0.2514, allocations: 19.98 kB / 406.4 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.327e-06/0.2514, allocations: 4 kB / 406.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.2514, allocations: 0 / 406.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.2531, allocations: 0.7039 MB / 407.1 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001967/0.2534, allocations: 132.6 kB / 407.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.2535, allocations: 12 kB / 407.2 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002876/0.2538, allocations: 19.97 kB / 407.3 MB, free: 3.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.254, allocations: 19.97 kB / 407.3 MB, free: 3.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.108e-05/0.2541, allocations: 16 kB / 407.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006682/0.2548, allocations: 331.1 kB / 407.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.367e-06/0.2548, allocations: 0 / 407.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009083/0.2557, allocations: 115.7 kB / 407.7 MB, free: 3.457 MB / 302.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.002801/0.2585, allocations: 1.301 MB / 409 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002053/0.2606, allocations: 0.5945 MB / 409.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.2606, allocations: 0 / 409.6 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.2613, allocations: 279.1 kB / 409.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.2619, allocations: 47.78 kB / 409.9 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.2737, allocations: 4.976 MB / 414.9 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008501/0.2746, allocations: 0.8897 MB / 415.8 MB, free: 11.06 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005998/0.2752, allocations: 108.1 kB / 415.9 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.2757, allocations: 179.4 kB / 416.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of SimCode: time 1.462e-06/0.2757, allocations: 0 / 416.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1464/0.4221, allocations: 8.823 MB / 424.9 MB, free: 1.992 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.54/18.96, allocations: 10.97 kB / 424.9 MB, free: 1.984 MB / 318.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)