Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Applications.ProcessControl.LevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.LevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl",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.005657/0.005657, allocations: 98.27 kB / 15.73 MB, free: 6.012 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.00132/0.001321, allocations: 196.9 kB / 16.68 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06569/0.06569, allocations: 11.21 MB / 301.7 MB, free: 4.031 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001856/0.001857, allocations: 60.3 kB / 418.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08912/0.09099, allocations: 51.99 MB / 470.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.02457/0.1156, allocations: 21.94 MB / 492.4 MB, free: 7.875 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009351/0.125, allocations: 6.553 MB / 499 MB, free: 1.305 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009546/0.126, allocations: 39.69 kB / 499 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001097/0.1272, allocations: 401.2 kB / 499.4 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002498/0.1297, allocations: 1.076 MB / 0.4888 GB, free: 15.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002962/0.1326, allocations: 1.194 MB / 0.4899 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002929/0.1356, allocations: 2.448 MB / 0.4923 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001027/0.1366, allocations: 0.7244 MB / 0.493 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.1383, allocations: 1 MB / 0.494 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.1397, allocations: 0.8522 MB / 0.4948 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.1399, allocations: 92 kB / 0.4949 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001255/0.1412, allocations: 491.3 kB / 0.4954 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004023/0.1416, allocations: 366.9 kB / 0.4957 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006437/0.1422, allocations: 0.5869 MB / 0.4963 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002104/0.1443, allocations: 1.6 MB / 0.4979 GB, free: 6.418 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1444, allocations: 0 / 0.4979 GB, free: 6.418 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1444, allocations: 0 / 0.4979 GB, free: 6.418 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.1444, allocations: 0 / 0.4979 GB, free: 6.418 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002972/0.1474, allocations: 1.53 MB / 0.4994 GB, free: 4.828 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.1474, allocations: 8.031 kB / 0.4994 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001949/0.1476, allocations: 143.4 kB / 0.4995 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004311/0.1481, allocations: 148.1 kB / 0.4997 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.1493, allocations: 0.7655 MB / 0.5004 GB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002627/0.1495, allocations: 215 kB / 0.5006 GB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.1497, allocations: 80.12 kB / 0.5007 GB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002098/0.1518, allocations: 1.272 MB / 0.5019 GB, free: 2.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.655e-05/0.1518, allocations: 3.984 kB / 0.5019 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.152, allocations: 43.98 kB / 0.502 GB, free: 1.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.129e-05/0.152, allocations: 49.92 kB / 0.502 GB, free: 1.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.154, allocations: 0.9951 MB / 0.503 GB, free: 0.9297 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2367/0.3907, allocations: 6.052 MB / 0.5089 GB, free: 39.58 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.3921, allocations: 0.7193 MB / 0.5096 GB, free: 39.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006438/0.3928, allocations: 394.7 kB / 0.51 GB, free: 39.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002202/0.395, allocations: 2.257 MB / 0.5122 GB, free: 37.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009216/0.3959, allocations: 0.5409 MB / 0.5127 GB, free: 37.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 2.395e-06/0.3959, allocations: 0 / 0.5127 GB, free: 37.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.006385/0.4023, allocations: 2.999 MB / 0.5156 GB, free: 36.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.4024, allocations: 247.3 kB / 0.5159 GB, free: 35.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.4034, allocations: 0.8302 MB / 0.5167 GB, free: 35.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.887e-05/0.4035, allocations: 45.2 kB / 0.5167 GB, free: 35.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003015/0.4038, allocations: 0.5404 MB / 0.5173 GB, free: 35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.404, allocations: 267.8 kB / 0.5175 GB, free: 34.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003413/0.4044, allocations: 238.7 kB / 0.5177 GB, free: 34.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.658e-05/0.4045, allocations: 358 kB / 0.5181 GB, free: 34.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008496/0.4053, allocations: 401 kB / 0.5185 GB, free: 34.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.4066, allocations: 0.8941 MB / 0.5193 GB, free: 33.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0106/0.4172, allocations: 2.865 MB / 0.5221 GB, free: 32.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.441e-05/0.4172, allocations: 4.75 kB / 0.5221 GB, free: 32.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003187/0.4204, allocations: 1.562 MB / 0.5237 GB, free: 31.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.4205, allocations: 21 kB / 0.5237 GB, free: 31.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.4205, allocations: 17.3 kB / 0.5237 GB, free: 31.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000873/0.4214, allocations: 367.4 kB / 0.5241 GB, free: 31.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008536/0.4223, allocations: 257.7 kB / 0.5243 GB, free: 31.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002809/0.4251, allocations: 4.292 MB / 0.5285 GB, free: 27.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001027/0.4261, allocations: 59.73 kB / 0.5286 GB, free: 27.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.4263, allocations: 66.64 kB / 0.5286 GB, free: 27.54 MB / 382.1 MB Warning: Assuming fixed start value for the following 8 variables: PI_Level.cs:DISCRETE(fixed = true ) "Pre-biased Control Signal" type: Real PI_Level.satin:DISCRETE(fixed = true ) "input of the saturation block" type: Real sub.Yfp:DISCRETE(fixed = true ) "floating point converted output" type: Integer tank.level:VARIABLE(min = 0.0 start = tank.level_start_eps unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank.medium.T:VARIABLE(min = 1.0 max = 1e4 start = tank.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real actuator.y:VARIABLE(flow=false min = 0.0 max = 1.0 start = actuator.y_start fixed = true ) "Connector of Real output signal" type: Real PI_Level.CS:DISCRETE(flow=false fixed = true ) "Control signal" type: Real div.Yfp:DISCRETE(fixed = true ) "floating point converted output" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 27 (PI_Level.FBout,$PRE.PI_Level.FBout,$PRE.PI_Level.cs,PI_Level.cs,$PRE.PI_Level.satin,PI_Level.satin,$whenCondition1,$PRE.sub.Yfp,sub.Yfp,div.U1fp,$PRE.PI_Level.CS,sub.U1fp,tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Level.CS,PI_Level.TS_in,$PRE.div.Yfp,div.U2fp,div.Yfp,sub.U2fp,PI_Level.satLOW_in,PI_Level.satHIGH_in,PI_Level.ATreq_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,7), (2,1), (2,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005994/0.4269, allocations: 338.7 kB / 0.5289 GB, free: 27.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.427, allocations: 116.2 kB / 0.5291 GB, free: 27.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002727/0.4298, allocations: 1.451 MB / 0.5305 GB, free: 26.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.4298, allocations: 9.844 kB / 0.5305 GB, free: 26.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.4298, allocations: 7.875 kB / 0.5305 GB, free: 26.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4298, allocations: 7.172 kB / 0.5305 GB, free: 26.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003723/0.4336, allocations: 2.328 MB / 0.5328 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.4336, allocations: 0 / 0.5328 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005145/0.4341, allocations: 126.4 kB / 0.5329 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006844/0.4348, allocations: 348.1 kB / 0.5332 GB, free: 24.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.169e-05/0.4349, allocations: 23.92 kB / 0.5332 GB, free: 24.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002602/0.4375, allocations: 4.284 MB / 0.5374 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4375, allocations: 0 / 0.5374 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003127/0.4406, allocations: 1.851 MB / 0.5392 GB, free: 19.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005574/0.4412, allocations: 275.3 kB / 0.5395 GB, free: 19.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.4414, allocations: 19.94 kB / 0.5395 GB, free: 19.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006542/0.4421, allocations: 53.02 kB / 0.5396 GB, free: 19.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002441/0.4423, allocations: 80.86 kB / 0.5396 GB, free: 19.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.681e-05/0.4424, allocations: 34.38 kB / 0.5397 GB, free: 19.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000793/0.4432, allocations: 0.5763 MB / 0.5402 GB, free: 18.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4432, allocations: 3.938 kB / 0.5402 GB, free: 18.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00145/0.4447, allocations: 345.4 kB / 0.5406 GB, free: 18.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (tank.level,tank.medium.T,actuator.y) * Number of discrete variables: 15 ($whenCondition1,PI_Level.CS,PI_Level.FBout,PI_Level.cs,PI_Level.satin,tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3],div.U1fp,div.Yfp,sub.U1fp,sub.Yfp) * Number of discrete states: 2 (PI_Level.FBout,PI_Level.cs) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003538/0.4482, allocations: 2.601 MB / 0.5431 GB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002317/0.4505, allocations: 1.329 MB / 0.5444 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/0.4506, allocations: 0 / 0.5444 GB, free: 14.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001109/0.4517, allocations: 0.7705 MB / 0.5452 GB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002214/0.4539, allocations: 478.8 kB / 0.5456 GB, free: 13.19 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.4652, allocations: 9.652 MB / 0.555 GB, free: 2.957 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.4656, allocations: 1.082 MB / 0.5561 GB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008902/0.4665, allocations: 305 kB / 0.5564 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.4669, allocations: 399.3 kB / 0.5568 GB, free: 1.168 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4669, allocations: 0 / 0.5568 GB, free: 1.168 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08064/0.5476, allocations: 32.53 MB / 0.5885 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.04/14.59, allocations: 21.67 kB / 0.5886 GB, free: 0.9766 MB / 414.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl_res.csv --start-time 0 --stop-time 4500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.8 IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1)