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.001849/0.001848, allocations: 108 kB / 15.61 MB, free: 152 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.0032/0.0032, allocations: 193.6 kB / 16.53 MB, free: 6.699 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.51/3.51, allocations: 205.1 MB / 222.4 MB, free: 4.621 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1037/0.1037, allocations: 10.74 MB / 280.5 MB, free: 10.52 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.003373/0.003373, allocations: 68.45 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2244/0.2278, allocations: 49.01 MB / 389.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_bias): time 0.00623/0.2341, allocations: 2.116 MB / 391.8 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.2364, allocations: 0.5336 MB / 392.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006466/0.2371, allocations: 11.94 kB / 392.3 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005169/0.2378, allocations: 55.45 kB / 392.4 MB, free: 3.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003241/0.2381, allocations: 39.48 kB / 392.4 MB, free: 3.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.2395, allocations: 251.5 kB / 392.7 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009871/0.2405, allocations: 0.5115 MB / 393.2 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004507/0.245, allocations: 84.94 kB / 393.3 MB, free: 2.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005607/0.2456, allocations: 167.4 kB / 393.4 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004668/0.2461, allocations: 191.1 kB / 393.6 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.952e-05/0.2462, allocations: 28 kB / 393.6 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.271e-05/0.2463, allocations: 28 kB / 393.7 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002773/0.2466, allocations: 123.7 kB / 393.8 MB, free: 2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000312/0.247, allocations: 182.8 kB / 394 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007292/0.2477, allocations: 358.7 kB / 394.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.2e-05/0.2477, allocations: 0 / 394.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.568e-06/0.2478, allocations: 0 / 394.3 MB, free: 1.469 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.2478, allocations: 4 kB / 394.3 MB, free: 1.465 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.001987/0.2498, allocations: 0.7133 MB / 395 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.281e-05/0.2499, allocations: 11.89 kB / 395 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001315/0.25, allocations: 74.72 kB / 395.1 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001444/0.2502, allocations: 52.38 kB / 395.2 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000754/0.251, allocations: 359.7 kB / 395.5 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.345e-05/0.251, allocations: 29.38 kB / 395.5 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.2512, allocations: 36.38 kB / 395.6 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.2524, allocations: 420.5 kB / 396 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.419e-05/0.2525, allocations: 15.84 kB / 396 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.19e-05/0.2525, allocations: 15.98 kB / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.588e-05/0.2526, allocations: 8 kB / 396 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.2536, allocations: 314.3 kB / 396.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008542/0.2622, allocations: 1.535 MB / 397.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.2636, allocations: 238.4 kB / 398.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000428/0.264, allocations: 120.8 kB / 398.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.078e-05/0.2641, allocations: 4 kB / 398.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.2642, allocations: 38.5 kB / 398.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 4.759e-06/0.2642, allocations: 0 / 398.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.001468/0.2657, allocations: 358 kB / 398.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.2657, allocations: 59.41 kB / 398.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008134/0.2666, allocations: 401.5 kB / 399.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.589e-05/0.2666, allocations: 33.7 kB / 399.1 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.2669, allocations: 240 kB / 399.3 MB, free: 12.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/0.2671, allocations: 94.61 kB / 399.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000202/0.2673, allocations: 77.59 kB / 399.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002221/0.2676, allocations: 350.8 kB / 399.8 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000394/0.268, allocations: 108.4 kB / 399.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000569/0.2686, allocations: 220.2 kB / 400.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003821/0.2724, allocations: 0.684 MB / 400.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.087e-05/0.2725, allocations: 0 / 400.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.005821/0.2783, allocations: 452.4 kB / 401.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.2784, allocations: 8 kB / 401.3 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.598e-05/0.2785, allocations: 4 kB / 401.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.122e-05/0.2785, allocations: 4 kB / 401.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00086/0.2794, allocations: 108.3 kB / 401.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.804e-05/0.2794, allocations: 8 kB / 401.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004705/0.2799, allocations: 55.42 kB / 401.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.373e-05/0.28, allocations: 16 kB / 401.5 MB, free: 9.906 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 (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.0005367/0.2806, allocations: 203.6 kB / 401.7 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002173/0.2808, allocations: 39.47 kB / 401.7 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.2821, allocations: 333.4 kB / 402 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.2821, allocations: 4 kB / 402 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.2821, allocations: 0 / 402 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.2822, allocations: 0 / 402 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009363/0.2831, allocations: 401.2 kB / 402.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.2831, allocations: 3.938 kB / 402.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007767/0.2839, allocations: 79.89 kB / 402.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/0.284, allocations: 0 / 402.5 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.635e-05/0.284, allocations: 15.98 kB / 402.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.2841, allocations: 0 / 402.5 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2841, allocations: 4 kB / 402.5 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.2857, allocations: 0.5196 MB / 403.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.2859, allocations: 128.4 kB / 403.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.286, allocations: 8 kB / 403.2 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003155/0.2864, allocations: 15.98 kB / 403.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.2865, allocations: 15.97 kB / 403.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.2866, allocations: 12 kB / 403.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006541/0.2872, allocations: 271.1 kB / 403.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2873, allocations: 0 / 403.5 MB, free: 7.781 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007683/0.288, allocations: 71.84 kB / 403.6 MB, free: 7.711 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 (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.002005/0.2901, allocations: 1.068 MB / 404.6 MB, free: 6.617 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.2914, allocations: 335.6 kB / 405 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.2914, allocations: 0.9375 kB / 405 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004373/0.2919, allocations: 139.8 kB / 405.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007447/0.2926, allocations: 48.34 kB / 405.2 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009001/0.3017, allocations: 3.754 MB / 408.9 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008911/0.3026, allocations: 0.838 MB / 409.7 MB, free: 1.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000466/0.3031, allocations: 79.22 kB / 409.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004061/0.3036, allocations: 151.4 kB / 410 MB, free: 1.094 MB / 302.1 MB Notification: Performance of SimCode: time 1.783e-06/0.3036, allocations: 0 / 410 MB, free: 1.094 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1771/0.4807, allocations: 6.437 MB / 416.4 MB, free: 10.69 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.8/18.28, allocations: 11.44 kB / 416.4 MB, free: 10.68 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 & 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)