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.004326/0.004326, allocations: 97 kB / 15.73 MB, free: 5.949 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.001133/0.001133, allocations: 193 kB / 16.67 MB, free: 5.871 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.324/1.324, allocations: 205.1 MB / 222.6 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05878/0.05878, allocations: 10.75 MB / 280.7 MB, free: 10.38 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.00142/0.00142, allocations: 75.19 kB / 390.4 MB, free: 5.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.227, allocations: 49.02 MB / 439.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPID_bias): time 0.002775/0.2298, allocations: 2.183 MB / 441.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.231, allocations: 0.6839 MB / 442.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001606/0.2312, allocations: 21.44 kB / 442.3 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.2314, allocations: 58.64 kB / 442.3 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.2316, allocations: 48.44 kB / 442.4 MB, free: 2.945 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006064/0.2322, allocations: 330.3 kB / 442.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005486/0.2328, allocations: 0.5719 MB / 443.3 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.2329, allocations: 94.53 kB / 443.4 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.2332, allocations: 211.2 kB / 443.6 MB, free: 2.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.2334, allocations: 205.1 kB / 443.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.2335, allocations: 32.47 kB / 443.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.476e-05/0.2336, allocations: 32.94 kB / 443.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.2337, allocations: 138.2 kB / 444 MB, free: 2.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001299/0.2338, allocations: 197.9 kB / 444.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003781/0.2342, allocations: 417.8 kB / 444.6 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2342, allocations: 4 kB / 444.6 MB, free: 1.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2342, allocations: 5.438 kB / 444.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.2342, allocations: 0 / 444.6 MB, free: 1.902 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001138/0.2354, allocations: 0.7863 MB / 445.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2354, allocations: 13.67 kB / 445.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.717e-05/0.2355, allocations: 75.77 kB / 445.4 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.642e-05/0.2356, allocations: 59.27 kB / 445.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005486/0.2362, allocations: 442 kB / 445.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.304e-05/0.2362, allocations: 81.64 kB / 446 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.092e-05/0.2363, allocations: 43.66 kB / 446.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006991/0.237, allocations: 472.2 kB / 446.5 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.2371, allocations: 2.375 kB / 446.5 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.596e-05/0.2371, allocations: 16.73 kB / 446.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.2371, allocations: 9.188 kB / 446.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006398/0.2378, allocations: 358.2 kB / 446.9 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002432/0.2402, allocations: 1.68 MB / 448.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008407/0.2411, allocations: 295.1 kB / 448.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002562/0.2413, allocations: 185.5 kB / 449 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.21e-05/0.2414, allocations: 3.375 kB / 449 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.737e-05/0.2414, allocations: 42.75 kB / 449.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=33): time 1.754e-06/0.2414, allocations: 3.938 kB / 449.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.0008217/0.2422, allocations: 451.9 kB / 449.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.2423, allocations: 57.94 kB / 449.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004/0.2427, allocations: 422.3 kB / 450 MB, free: 14.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.2427, allocations: 32.45 kB / 450 MB, free: 14.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.2429, allocations: 249.7 kB / 450.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.011e-05/0.243, allocations: 134.1 kB / 450.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.2431, allocations: 90.11 kB / 450.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.2432, allocations: 357.5 kB / 450.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002309/0.2435, allocations: 129 kB / 451 MB, free: 13.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002917/0.2438, allocations: 251.5 kB / 451.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002167/0.246, allocations: 0.7966 MB / 452 MB, free: 12.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.246, allocations: 1.219 kB / 452 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007868/0.2468, allocations: 0.5169 MB / 452.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2468, allocations: 6.531 kB / 452.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.2468, allocations: 3.938 kB / 452.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.2468, allocations: 6.906 kB / 452.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.2474, allocations: 119 kB / 452.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.2474, allocations: 14.66 kB / 452.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.2476, allocations: 60.33 kB / 452.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.2476, allocations: 18.47 kB / 452.8 MB, free: 12.45 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 (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.0002331/0.2479, allocations: 202.3 kB / 453 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.473e-05/0.248, allocations: 55 kB / 453 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006962/0.2487, allocations: 402.3 kB / 453.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.2487, allocations: 8.938 kB / 453.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2487, allocations: 0 / 453.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2487, allocations: 0 / 453.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004823/0.2492, allocations: 447.4 kB / 453.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2492, allocations: 0 / 453.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005697/0.2498, allocations: 97.38 kB / 453.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2498, allocations: 1.031 kB / 453.9 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.2498, allocations: 16.33 kB / 454 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.2498, allocations: 6.156 kB / 454 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2499, allocations: 3.938 kB / 454 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008514/0.2507, allocations: 0.6172 MB / 454.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.712e-05/0.2508, allocations: 130.8 kB / 454.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/0.2509, allocations: 8.188 kB / 454.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.2511, allocations: 18.61 kB / 454.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.2511, allocations: 22.95 kB / 454.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.2512, allocations: 14.75 kB / 454.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002727/0.2514, allocations: 287.2 kB / 455.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2514, allocations: 0 / 455.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003599/0.2518, allocations: 76.11 kB / 455.1 MB, free: 10.87 MB / 334.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.001091/0.2529, allocations: 1.178 MB / 456.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006014/0.2535, allocations: 364 kB / 456.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2535, allocations: 0.9375 kB / 456.7 MB, free: 9.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.2538, allocations: 169.4 kB / 456.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003699/0.2542, allocations: 47.16 kB / 456.9 MB, free: 9.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004704/0.2589, allocations: 4.121 MB / 461 MB, free: 6.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.2593, allocations: 0.8586 MB / 461.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.2595, allocations: 87.34 kB / 461.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/0.2598, allocations: 171.4 kB / 462.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2598, allocations: 0 / 462.1 MB, free: 5.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.2832, allocations: 7.408 MB / 469.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.167/8.45, allocations: 4.062 kB / 469.5 MB, free: 14.31 MB / 350.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)