Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPI_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_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.005902/0.005902, allocations: 101.5 kB / 15.73 MB, free: 5.965 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.001387/0.001387, allocations: 188.6 kB / 16.67 MB, free: 5.887 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.593/1.593, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06404/0.06404, allocations: 10.74 MB / 280.7 MB, free: 10.39 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.00214/0.00214, allocations: 74.66 kB / 390.4 MB, free: 5.508 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3045, allocations: 49.02 MB / 439.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.004016/0.3085, allocations: 2.122 MB / 441.5 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00147/0.31, allocations: 0.5395 MB / 442 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.3102, allocations: 10.66 kB / 442 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002913/0.3105, allocations: 56.92 kB / 442.1 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.3106, allocations: 41.02 kB / 442.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006862/0.3113, allocations: 259.7 kB / 442.4 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000635/0.3119, allocations: 0.5047 MB / 442.9 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.3121, allocations: 61.53 kB / 443 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.3124, allocations: 170.8 kB / 443.1 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.3126, allocations: 190.8 kB / 443.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.64e-05/0.3127, allocations: 29.5 kB / 443.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.528e-05/0.3128, allocations: 27.62 kB / 443.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001521/0.3129, allocations: 129.8 kB / 443.5 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001546/0.3131, allocations: 171.5 kB / 443.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004973/0.3136, allocations: 378.5 kB / 444 MB, free: 2.059 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.3136, allocations: 1.219 kB / 444 MB, free: 2.059 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3136, allocations: 0 / 444 MB, free: 2.059 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.3136, allocations: 0 / 444 MB, free: 2.059 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001257/0.3148, allocations: 0.7256 MB / 444.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.3149, allocations: 17.72 kB / 444.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.065e-05/0.315, allocations: 70.47 kB / 444.8 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.488e-05/0.3151, allocations: 51.73 kB / 444.9 MB, free: 1.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.3156, allocations: 393.4 kB / 445.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.3156, allocations: 27.67 kB / 445.3 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.678e-05/0.3157, allocations: 39.2 kB / 445.3 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.3165, allocations: 427.2 kB / 445.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.3165, allocations: 6.781 kB / 445.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.3166, allocations: 15.23 kB / 445.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.3166, allocations: 8.531 kB / 445.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006199/0.3172, allocations: 306.5 kB / 446.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.3196, allocations: 1.527 MB / 447.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008092/0.3204, allocations: 225.2 kB / 447.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/0.3207, allocations: 113.8 kB / 447.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.3207, allocations: 3.219 kB / 447.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.3207, allocations: 40 kB / 448 MB, free: 15.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.683e-06/0.3207, allocations: 4 kB / 448 MB, free: 15.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.0007772/0.3215, allocations: 357.8 kB / 448.3 MB, free: 15.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.3216, allocations: 53.69 kB / 448.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005213/0.3221, allocations: 403.1 kB / 448.8 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.3221, allocations: 29.7 kB / 448.8 MB, free: 15.01 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002196/0.3223, allocations: 240.9 kB / 449.1 MB, free: 14.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.238e-05/0.3224, allocations: 103.4 kB / 449.2 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.3225, allocations: 87.86 kB / 449.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.3227, allocations: 350.4 kB / 449.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.3229, allocations: 103.9 kB / 449.7 MB, free: 14.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.3233, allocations: 222.7 kB / 449.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/0.3252, allocations: 0.675 MB / 450.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.3252, allocations: 1.594 kB / 450.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0008544/0.3261, allocations: 455.6 kB / 451 MB, free: 13.38 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.3261, allocations: 7.656 kB / 451 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.3261, allocations: 3.156 kB / 451 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.082e-05/0.3262, allocations: 5.844 kB / 451 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004269/0.3266, allocations: 106.1 kB / 451.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.354e-05/0.3266, allocations: 5.906 kB / 451.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002118/0.3268, allocations: 55.55 kB / 451.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.3268, allocations: 17.31 kB / 451.2 MB, free: 13.31 MB / 334.1 MB Warning: Assuming fixed start value for the following 9 variables: ProcessBias.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessBias.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessBias.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 4 (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 (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * 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.0003194/0.3272, allocations: 200.4 kB / 451.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/0.3272, allocations: 48.84 kB / 451.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007172/0.328, allocations: 333.9 kB / 451.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.328, allocations: 4.125 kB / 451.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.328, allocations: 4 kB / 451.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.328, allocations: 3.984 kB / 451.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005729/0.3285, allocations: 394.6 kB / 452.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3285, allocations: 0 / 452.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004563/0.329, allocations: 83.92 kB / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.329, allocations: 5.359 kB / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.329, allocations: 7.25 kB / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.329, allocations: 2.219 kB / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3291, allocations: 0 / 452.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009057/0.33, allocations: 0.5233 MB / 452.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.3301, allocations: 122.1 kB / 452.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.042e-05/0.3301, allocations: 11.16 kB / 452.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.3303, allocations: 14.06 kB / 452.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.3304, allocations: 21.34 kB / 453 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.994e-05/0.3304, allocations: 10.53 kB / 453 MB, free: 12.06 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003575/0.3307, allocations: 278.6 kB / 453.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3307, allocations: 1.188 kB / 453.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003953/0.3311, allocations: 72.28 kB / 453.3 MB, free: 11.86 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 11 (R.FBout,R_Bias.FBout,ProcessCtrl.Y[3],ProcessCtrl.U[2],ProcessCtrl.w,processNoCtrl.Y[3],processNoCtrl.U[2],processNoCtrl.w,ProcessBias.Y[3],ProcessBias.U[2],ProcessBias.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * 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.001237/0.3324, allocations: 1.075 MB / 454.4 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000599/0.333, allocations: 285.5 kB / 454.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.333, allocations: 1.25 kB / 454.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.3332, allocations: 132.4 kB / 454.8 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003869/0.3336, allocations: 42.42 kB / 454.8 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005213/0.3388, allocations: 3.746 MB / 458.6 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.3394, allocations: 0.8411 MB / 459.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002467/0.3396, allocations: 81.06 kB / 459.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.3398, allocations: 145.8 kB / 459.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3398, allocations: 1.125 kB / 459.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.3736, allocations: 6.587 MB / 466.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.477/8.85, allocations: 15.88 kB / 466.3 MB, free: 1.461 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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_TestPI_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe 2>&1)