Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestP_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestP_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.007912/0.007912, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001487/0.001487, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.352/1.352, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0611/0.0611, allocations: 10.75 MB / 280.7 MB, free: 10.41 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.001422/0.001422, allocations: 63.84 kB / 390.3 MB, free: 5.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2932, allocations: 49.02 MB / 439.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_bias): time 0.003426/0.2967, allocations: 2.102 MB / 441.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000888/0.2976, allocations: 407.9 kB / 441.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.2977, allocations: 13.91 kB / 441.9 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.298, allocations: 51.3 kB / 441.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.2981, allocations: 32.64 kB / 442 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005007/0.2986, allocations: 191.7 kB / 442.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005297/0.2991, allocations: 467.9 kB / 442.6 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.2993, allocations: 86.92 kB / 442.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001738/0.2995, allocations: 153.1 kB / 442.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000225/0.2997, allocations: 161.9 kB / 443 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.42e-05/0.2998, allocations: 31.5 kB / 443 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.057e-05/0.2999, allocations: 26.12 kB / 443.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.3, allocations: 128.8 kB / 443.2 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.3002, allocations: 164.8 kB / 443.3 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004417/0.3006, allocations: 351.1 kB / 443.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3006, allocations: 0 / 443.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3006, allocations: 1 kB / 443.7 MB, free: 2.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.3007, allocations: 0 / 443.7 MB, free: 2.422 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001059/0.3017, allocations: 0.7114 MB / 444.4 MB, free: 1.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3018, allocations: 14.02 kB / 444.4 MB, free: 1.852 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.052e-05/0.3019, allocations: 78.17 kB / 444.5 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.177e-05/0.3019, allocations: 47.25 kB / 444.5 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004803/0.3024, allocations: 382.7 kB / 444.9 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.3024, allocations: 22 kB / 444.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.113e-05/0.3025, allocations: 39.31 kB / 445 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006131/0.3031, allocations: 400.5 kB / 445.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.3032, allocations: 12.34 kB / 445.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/0.3032, allocations: 15.09 kB / 445.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3032, allocations: 7.406 kB / 445.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005473/0.3038, allocations: 295.3 kB / 445.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002283/0.3061, allocations: 1.495 MB / 447.2 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004417/0.3065, allocations: 187.8 kB / 447.4 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.3067, allocations: 107.8 kB / 447.5 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.3068, allocations: 3.156 kB / 447.5 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.3068, allocations: 36.94 kB / 447.5 MB, free: 8 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.3068, allocations: 0 / 447.5 MB, free: 8 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007232/0.3075, allocations: 320.6 kB / 447.8 MB, free: 15.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.3076, allocations: 58.75 kB / 447.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004489/0.308, allocations: 397.2 kB / 448.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.3081, allocations: 29.7 kB / 448.3 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.3082, allocations: 243.3 kB / 448.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.3083, allocations: 82.77 kB / 448.6 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.3084, allocations: 75.06 kB / 448.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.3086, allocations: 357 kB / 449 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001821/0.3088, allocations: 94.44 kB / 449.1 MB, free: 14.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.309, allocations: 208.8 kB / 449.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.3104, allocations: 0.5784 MB / 449.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3104, allocations: 1.938 kB / 449.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005981/0.311, allocations: 421.4 kB / 450.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.311, allocations: 10.56 kB / 450.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.311, allocations: 2.688 kB / 450.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.3111, allocations: 7 kB / 450.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003376/0.3114, allocations: 90.59 kB / 450.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.491e-05/0.3114, allocations: 9.188 kB / 450.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.3116, allocations: 46.97 kB / 450.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.3116, allocations: 16.03 kB / 450.5 MB, free: 13.91 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 (45): * Single equations (assignments): 45 * 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.0002445/0.3119, allocations: 187.8 kB / 450.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.021e-05/0.312, allocations: 44.12 kB / 450.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005811/0.3126, allocations: 291.9 kB / 451 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3126, allocations: 6.828 kB / 451 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3126, allocations: 4 kB / 451 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.3126, allocations: 1.625 kB / 451 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004135/0.313, allocations: 378.5 kB / 451.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.313, allocations: 1.156 kB / 451.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003191/0.3134, allocations: 61.27 kB / 451.4 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.386e-06/0.3134, allocations: 9 kB / 451.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.3134, allocations: 12.2 kB / 451.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3134, allocations: 1 kB / 451.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3134, allocations: 0 / 451.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006466/0.3141, allocations: 475.3 kB / 451.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.291e-05/0.3142, allocations: 115.8 kB / 452 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.16e-05/0.3142, allocations: 12.11 kB / 452.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.3144, allocations: 13.48 kB / 452.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.3144, allocations: 10.86 kB / 452.1 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.3145, allocations: 9.5 kB / 452.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.3147, allocations: 273.6 kB / 452.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3147, allocations: 4 kB / 452.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003555/0.3151, allocations: 68.73 kB / 452.4 MB, free: 12.55 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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 (23): * Single equations (assignments): 23 * 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.0009411/0.316, allocations: 1.012 MB / 453.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005325/0.3166, allocations: 275.2 kB / 453.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3166, allocations: 0 / 453.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.3168, allocations: 109.6 kB / 453.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.3172, allocations: 37.98 kB / 453.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004419/0.3216, allocations: 3.531 MB / 457.4 MB, free: 8.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.3221, allocations: 0.8285 MB / 458.2 MB, free: 8.227 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.3223, allocations: 77.03 kB / 458.3 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.3225, allocations: 134.3 kB / 458.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3225, allocations: 5.25 kB / 458.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.3498, allocations: 6.114 MB / 464.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.586/8.936, allocations: 4.5 kB / 464.5 MB, free: 3.305 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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_TestP_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_bias.pipe 2>&1)