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.0009275/0.0009276, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001192/0.001192, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.235/1.235, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05204/0.05204, allocations: 10.75 MB / 281.1 MB, free: 10.55 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.0004288/0.0004288, allocations: 12 kB / 341.7 MB, free: 23.75 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07107/0.07151, allocations: 50 MB / 391.7 MB, free: 5.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.002013/0.07356, allocations: 1.742 MB / 393.5 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009443/0.07453, allocations: 0.5183 MB / 394 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.07466, allocations: 11.88 kB / 394 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.07482, allocations: 39.66 kB / 394 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.524e-05/0.0749, allocations: 19.8 kB / 394.1 MB, free: 3.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004611/0.07537, allocations: 207.6 kB / 394.3 MB, free: 3.133 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004201/0.0758, allocations: 451.7 kB / 394.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.07595, allocations: 64.66 kB / 394.8 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.0761, allocations: 155.3 kB / 394.9 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000205/0.07631, allocations: 167.2 kB / 395.1 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.07636, allocations: 12 kB / 395.1 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.244e-05/0.07639, allocations: 12 kB / 395.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.07651, allocations: 107.6 kB / 395.2 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.742e-05/0.07658, allocations: 81.45 kB / 395.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002063/0.07679, allocations: 247.7 kB / 395.5 MB, free: 1.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.0768, allocations: 7.938 kB / 395.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.07681, allocations: 0 / 395.5 MB, free: 1.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.82e-06/0.07682, allocations: 0 / 395.5 MB, free: 1.844 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.0008816/0.07771, allocations: 0.651 MB / 396.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.07775, allocations: 12.03 kB / 396.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.171e-05/0.07783, allocations: 70.53 kB / 396.3 MB, free: 1.051 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.074e-05/0.07789, allocations: 47.39 kB / 396.3 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.07829, allocations: 350.7 kB / 396.7 MB, free: 0.625 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.07833, allocations: 29 kB / 396.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.251e-05/0.0784, allocations: 43.98 kB / 396.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.079, allocations: 419.9 kB / 397.1 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.07903, allocations: 7.906 kB / 397.1 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.07906, allocations: 19.94 kB / 397.2 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.07907, allocations: 8 kB / 397.2 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005231/0.0796, allocations: 318.3 kB / 397.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.08154, allocations: 1.539 MB / 399 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006224/0.08218, allocations: 246.6 kB / 399.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001952/0.08239, allocations: 125.7 kB / 399.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.08242, allocations: 7.984 kB / 399.4 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.08245, allocations: 42.55 kB / 399.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.263e-06/0.08246, allocations: 0 / 399.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.0006178/0.08308, allocations: 365.4 kB / 399.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.08312, allocations: 51.41 kB / 399.8 MB, free: 13.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.08349, allocations: 405.5 kB / 400.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.08352, allocations: 25.7 kB / 400.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.08366, allocations: 243.9 kB / 400.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.225e-05/0.08373, allocations: 98.61 kB / 400.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.08375, allocations: 4 kB / 400.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.08388, allocations: 354.8 kB / 401 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.08407, allocations: 112.4 kB / 401.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.08433, allocations: 220.5 kB / 401.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.08458, allocations: 165.1 kB / 401.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.08459, allocations: 0 / 401.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006281/0.08523, allocations: 456.4 kB / 401.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.08525, allocations: 8 kB / 401.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.08527, allocations: 4 kB / 401.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.08528, allocations: 7.938 kB / 401.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/0.08566, allocations: 112.3 kB / 402 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.08568, allocations: 8 kB / 402 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.08584, allocations: 47.52 kB / 402.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.08587, allocations: 20 kB / 402.1 MB, free: 10.96 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] ProcessCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] ProcessCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] ProcessCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processNoCtrl.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processNoCtrl.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processNoCtrl.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002098/0.08609, allocations: 199.5 kB / 402.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.269e-05/0.08615, allocations: 35.53 kB / 402.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005837/0.08674, allocations: 349.8 kB / 402.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.08675, allocations: 4 kB / 402.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.08676, allocations: 0 / 402.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.08677, allocations: 0 / 402.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003885/0.08717, allocations: 397.2 kB / 403 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.08718, allocations: 0 / 403 MB, free: 9.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004058/0.08759, allocations: 87.95 kB / 403.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.0876, allocations: 0 / 403.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.08763, allocations: 11.98 kB / 403.1 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.08764, allocations: 3.938 kB / 403.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.08765, allocations: 0 / 403.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006832/0.08834, allocations: 0.5353 MB / 403.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.392e-05/0.08842, allocations: 120.5 kB / 403.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.08847, allocations: 12 kB / 403.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.08862, allocations: 19.92 kB / 403.8 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.391e-05/0.08867, allocations: 15.97 kB / 403.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.0887, allocations: 16 kB / 403.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.08894, allocations: 267.1 kB / 404.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08895, allocations: 0 / 404.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.08927, allocations: 67.84 kB / 404.2 MB, free: 8.742 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009032/0.09018, allocations: 1.08 MB / 405.3 MB, free: 7.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004839/0.09068, allocations: 320.6 kB / 405.6 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.09069, allocations: 4 kB / 405.6 MB, free: 7.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.09089, allocations: 131.9 kB / 405.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.09121, allocations: 37.77 kB / 405.8 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.09436, allocations: 2.557 MB / 408.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.09474, allocations: 0.8382 MB / 409.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001943/0.09494, allocations: 79.22 kB / 409.2 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.09513, allocations: 155.4 kB / 409.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.09514, allocations: 0 / 409.4 MB, free: 3.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01493/0.1101, allocations: 6.273 MB / 415.7 MB, free: 13.23 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001887/0.1103, allocations: 200.5 kB / 415.8 MB, free: 13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/1.891, allocations: 3.938 kB / 415.9 MB, free: 12.99 MB / 318.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Controllers_Examples_TestPI_bias.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_bias.pipe 2>&1) Environment - environmentSimulation: