Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPD_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPD_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.002271/0.002271, 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.003242/0.003242, allocations: 195.2 kB / 16.54 MB, free: 6.672 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.502/3.502, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08953/0.08953, allocations: 10.75 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.002204/0.002205, allocations: 63.91 kB / 340.6 MB, free: 23.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.175, allocations: 49.02 MB / 389.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_bias): time 0.007285/0.1824, allocations: 2.182 MB / 391.8 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00359/0.186, allocations: 1.029 MB / 392.9 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004424/0.1865, allocations: 15.88 kB / 392.9 MB, free: 2.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005246/0.1871, allocations: 91.33 kB / 393 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.1874, allocations: 63.52 kB / 393 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001898/0.1893, allocations: 327.3 kB / 393.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001467/0.1908, allocations: 0.5864 MB / 393.9 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003373/0.1912, allocations: 89.28 kB / 394 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005302/0.1917, allocations: 211.3 kB / 394.2 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005344/0.1923, allocations: 239 kB / 394.5 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1924, allocations: 36 kB / 394.5 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000296/0.1927, allocations: 103.9 kB / 394.6 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.193, allocations: 155.5 kB / 394.8 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003574/0.1934, allocations: 222.5 kB / 395 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008904/0.1943, allocations: 0.4905 MB / 395.5 MB, free: 300 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.1943, allocations: 4 kB / 395.5 MB, free: 296 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.399e-05/0.1943, allocations: 0 / 395.5 MB, free: 296 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.1944, allocations: 3.938 kB / 395.5 MB, free: 292 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.008908/0.2033, allocations: 0.8512 MB / 396.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.256e-05/0.2034, allocations: 11.89 kB / 396.3 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001621/0.2036, allocations: 82.7 kB / 396.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002293/0.2038, allocations: 60.19 kB / 396.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.2049, allocations: 409.9 kB / 396.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-05/0.205, allocations: 33.38 kB / 396.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001548/0.2052, allocations: 52.16 kB / 397 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/0.2068, allocations: 0.5085 MB / 397.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.289e-05/0.2068, allocations: 11.84 kB / 397.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.036e-05/0.2069, allocations: 16 kB / 397.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.207, allocations: 8 kB / 397.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001452/0.2084, allocations: 391.7 kB / 397.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.2141, allocations: 1.802 MB / 399.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.2153, allocations: 273.5 kB / 400 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005224/0.2158, allocations: 184.8 kB / 400.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.163e-05/0.2159, allocations: 0 / 400.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.217, allocations: 256.9 kB / 400.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=36): time 5.149e-06/0.217, allocations: 0 / 400.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=36): time 0.001908/0.219, allocations: 0.5782 MB / 401 MB, free: 10.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.2191, allocations: 85.11 kB / 401 MB, free: 10.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.2202, allocations: 0.4939 MB / 401.5 MB, free: 9.938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.783e-05/0.2203, allocations: 33.7 kB / 401.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004172/0.2207, allocations: 276 kB / 401.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.221, allocations: 138.1 kB / 402 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000261/0.2213, allocations: 102.2 kB / 402.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00028/0.2216, allocations: 370.7 kB / 402.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.222, allocations: 165.1 kB / 402.6 MB, free: 8.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007283/0.2228, allocations: 337.8 kB / 402.9 MB, free: 8.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003453/0.2262, allocations: 1.074 MB / 404 MB, free: 7.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.926e-06/0.2263, allocations: 0 / 404 MB, free: 7.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.002068/0.2284, allocations: 0.726 MB / 404.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.222e-05/0.2285, allocations: 45.69 kB / 404.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.2285, allocations: 4 kB / 404.8 MB, free: 6.492 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.2286, allocations: 8 kB / 404.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007809/0.2293, allocations: 132.4 kB / 404.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.047e-05/0.2294, allocations: 8 kB / 404.9 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.2299, allocations: 75.34 kB / 405 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.431e-05/0.23, allocations: 28 kB / 405 MB, free: 6.246 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.0006128/0.2306, allocations: 274.5 kB / 405.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.2308, allocations: 47.44 kB / 405.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0016/0.2324, allocations: 0.5254 MB / 405.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.2324, allocations: 4 kB / 405.9 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.2325, allocations: 3.984 kB / 405.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.2325, allocations: 0 / 405.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.2336, allocations: 480.8 kB / 406.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.2337, allocations: 0 / 406.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007291/0.2344, allocations: 87.83 kB / 406.4 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-05/0.2344, allocations: 3.984 kB / 406.4 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.405e-05/0.2345, allocations: 19.98 kB / 406.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.571e-06/0.2345, allocations: 0 / 406.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.2345, allocations: 8 kB / 406.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001706/0.2362, allocations: 0.704 MB / 407.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.2365, allocations: 124.5 kB / 407.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.2366, allocations: 19.98 kB / 407.3 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/0.237, allocations: 19.92 kB / 407.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2371, allocations: 19.97 kB / 407.3 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.938e-05/0.2372, allocations: 12 kB / 407.4 MB, free: 3.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007432/0.2379, allocations: 346.8 kB / 407.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.92e-07/0.2379, allocations: 0 / 407.7 MB, free: 3.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009509/0.2389, allocations: 107.8 kB / 407.8 MB, free: 3.352 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.002844/0.2418, allocations: 1.308 MB / 409.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001953/0.2437, allocations: 0.5821 MB / 409.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.2438, allocations: 1.312 kB / 409.7 MB, free: 1.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006864/0.2445, allocations: 283.1 kB / 410 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007124/0.2452, allocations: 55.72 kB / 410 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/0.2578, allocations: 4.998 MB / 415 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009585/0.2588, allocations: 0.882 MB / 415.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005188/0.2594, allocations: 112.1 kB / 416 MB, free: 10.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.2597, allocations: 179.4 kB / 416.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of SimCode: time 1.223e-06/0.2598, allocations: 0 / 416.2 MB, free: 10.64 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1602/0.42, allocations: 8.888 MB / 425.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.08/19.5, allocations: 15.55 kB / 425.1 MB, free: 1.785 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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_TestPD_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_bias.pipe 2>&1)