Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_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.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_bias",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Examples.TestPID_bias,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPID_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.002081/0.002081, allocations: 108 kB / 15.61 MB, free: 148 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.00255/0.00255, allocations: 191.9 kB / 16.53 MB, free: 6.664 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.544/3.544, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1004/0.1004, allocations: 10.74 MB / 280.5 MB, free: 10.47 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.002683/0.002683, allocations: 63.91 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.239, allocations: 49.01 MB / 389.7 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.006634/0.2458, allocations: 2.198 MB / 391.9 MB, free: 3.938 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.2488, allocations: 0.6784 MB / 392.5 MB, free: 3.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005174/0.2494, allocations: 19.81 kB / 392.6 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006477/0.2502, allocations: 51.41 kB / 392.6 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005257/0.2507, allocations: 47.53 kB / 392.6 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001961/0.2527, allocations: 335.3 kB / 393 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001298/0.254, allocations: 0.5663 MB / 393.5 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004195/0.2545, allocations: 93.28 kB / 393.6 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007294/0.2552, allocations: 207.3 kB / 393.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005411/0.2558, allocations: 203 kB / 394 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.2559, allocations: 32 kB / 394.1 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.806e-05/0.256, allocations: 39.94 kB / 394.1 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.2563, allocations: 147.5 kB / 394.2 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003152/0.2566, allocations: 194.8 kB / 394.4 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009141/0.2576, allocations: 398.5 kB / 394.8 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.2576, allocations: 0 / 394.8 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.649e-06/0.2576, allocations: 0 / 394.8 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2576, allocations: 0 / 394.8 MB, free: 0.9492 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002148/0.2598, allocations: 0.7911 MB / 395.6 MB, free: 108 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.268e-05/0.2599, allocations: 11.89 kB / 395.6 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001436/0.26, allocations: 74.72 kB / 395.7 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.2603, allocations: 64.39 kB / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009339/0.2612, allocations: 401.9 kB / 396.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.2614, allocations: 88.97 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001216/0.2616, allocations: 36.38 kB / 396.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.2628, allocations: 464.9 kB / 396.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.073e-05/0.2628, allocations: 7.906 kB / 396.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.505e-05/0.2629, allocations: 12 kB / 396.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.924e-05/0.2629, allocations: 16 kB / 396.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009794/0.2639, allocations: 351.7 kB / 397.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.2683, allocations: 1.69 MB / 398.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.2699, allocations: 303.1 kB / 399.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.2704, allocations: 168.8 kB / 399.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.667e-05/0.2704, allocations: 4.281 kB / 399.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.029e-05/0.2705, allocations: 46.78 kB / 399.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 9.287e-06/0.2705, allocations: 0 / 399.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001408/0.2719, allocations: 451.8 kB / 399.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.224e-05/0.272, allocations: 55.41 kB / 399.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000857/0.2729, allocations: 421.8 kB / 400.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.448e-05/0.273, allocations: 37.7 kB / 400.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003034/0.2733, allocations: 244 kB / 400.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001588/0.2734, allocations: 126.2 kB / 400.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.2736, allocations: 90.11 kB / 400.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002525/0.2739, allocations: 354.8 kB / 401.1 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.2743, allocations: 132.9 kB / 401.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005016/0.2748, allocations: 250.7 kB / 401.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003379/0.2782, allocations: 0.801 MB / 402.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.2782, allocations: 0 / 402.2 MB, free: 9.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001381/0.2796, allocations: 0.5117 MB / 402.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.822e-05/0.2797, allocations: 8 kB / 402.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.552e-05/0.2797, allocations: 4 kB / 402.8 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.589e-05/0.2797, allocations: 7.938 kB / 402.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007619/0.2805, allocations: 128.3 kB / 402.9 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-05/0.2805, allocations: 8 kB / 402.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.2809, allocations: 55.42 kB / 402.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.643e-05/0.281, allocations: 23.98 kB / 403 MB, free: 8.414 MB / 302.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 (61): * Single equations (assignments): 61 * 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.0005083/0.2815, allocations: 203.5 kB / 403.2 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.2817, allocations: 47.38 kB / 403.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001202/0.2829, allocations: 405.5 kB / 403.6 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.139e-05/0.2829, allocations: 4 kB / 403.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.2829, allocations: 7.938 kB / 403.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/0.2829, allocations: 3.984 kB / 403.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000792/0.2837, allocations: 445.1 kB / 404.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2837, allocations: 0 / 404.1 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.285, allocations: 103.9 kB / 404.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.285, allocations: 0 / 404.2 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.047e-05/0.2851, allocations: 23.94 kB / 404.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.2851, allocations: 0 / 404.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2851, allocations: 4 kB / 404.2 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001362/0.2865, allocations: 0.6057 MB / 404.8 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.2866, allocations: 136.3 kB / 404.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-05/0.2867, allocations: 8 kB / 404.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.287, allocations: 19.98 kB / 405 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/0.2872, allocations: 19.97 kB / 405 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.581e-05/0.2872, allocations: 12 kB / 405 MB, free: 6.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005017/0.2877, allocations: 295 kB / 405.3 MB, free: 6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2877, allocations: 0 / 405.3 MB, free: 6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006834/0.2884, allocations: 79.75 kB / 405.4 MB, free: 5.922 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (R.Iaction,R.Fder,R_Bias.Iaction,R_Bias.Fder,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 (37): * Single equations (assignments): 37 * 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.002243/0.2907, allocations: 1.171 MB / 406.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001746/0.2924, allocations: 408.5 kB / 406.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.2925, allocations: 4 kB / 406.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005331/0.293, allocations: 171.5 kB / 407.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008136/0.2939, allocations: 49.48 kB / 407.1 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.3048, allocations: 4.15 MB / 411.3 MB, free: 15.78 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009611/0.3059, allocations: 0.8547 MB / 412.1 MB, free: 14.9 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005916/0.3065, allocations: 87.34 kB / 412.2 MB, free: 14.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004662/0.307, allocations: 163.4 kB / 412.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of SimCode: time 1.804e-06/0.307, allocations: 0 / 412.4 MB, free: 14.66 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1858/0.4928, allocations: 7.263 MB / 419.7 MB, free: 7.43 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19/19.49, allocations: 8.062 kB / 419.7 MB, free: 7.422 MB / 318.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_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_TestPID_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPID_bias.pipe 2>&1)