Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.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.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",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.005087/0.005087, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001273/0.001273, allocations: 200.3 kB / 16.68 MB, free: 5.934 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.064/0.064, allocations: 11.21 MB / 301.7 MB, free: 4.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00287/0.00287, allocations: 60.59 kB / 418.5 MB, free: 17.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1228, allocations: 51.98 MB / 470.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.03099/0.1538, allocations: 25.05 MB / 495.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.1643, allocations: 6.845 MB / 0.4906 GB, free: 13.83 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.1658, allocations: 47.62 kB / 0.4907 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.1673, allocations: 444.8 kB / 0.4911 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003157/0.1704, allocations: 1.134 MB / 0.4922 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003946/0.1744, allocations: 1.336 MB / 0.4935 GB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003585/0.178, allocations: 2.64 MB / 0.4961 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.1793, allocations: 0.7888 MB / 0.4969 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002048/0.1814, allocations: 1.078 MB / 0.4979 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.1828, allocations: 0.9064 MB / 0.4988 GB, free: 5.438 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002017/0.183, allocations: 100 kB / 0.4989 GB, free: 5.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.1841, allocations: 463.4 kB / 0.4993 GB, free: 4.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004111/0.1846, allocations: 386.8 kB / 0.4997 GB, free: 4.508 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007346/0.1853, allocations: 0.6529 MB / 0.5003 GB, free: 3.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002252/0.1876, allocations: 1.677 MB / 0.502 GB, free: 2.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1876, allocations: 0 / 0.502 GB, free: 2.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1876, allocations: 0 / 0.502 GB, free: 2.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.1876, allocations: 0 / 0.502 GB, free: 2.168 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.003123/0.1907, allocations: 1.661 MB / 0.5036 GB, free: 464 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.1908, allocations: 15.89 kB / 0.5036 GB, free: 448 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001984/0.191, allocations: 156.2 kB / 0.5038 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00044/0.1914, allocations: 171.9 kB / 0.5039 GB, free: 112 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2022/0.3936, allocations: 0.8723 MB / 0.5048 GB, free: 43.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.3938, allocations: 224.7 kB / 0.505 GB, free: 43.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001581/0.394, allocations: 92.31 kB / 0.5051 GB, free: 43.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/0.3962, allocations: 1.386 MB / 0.5064 GB, free: 43.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.07e-05/0.3962, allocations: 7.281 kB / 0.5065 GB, free: 43.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.3964, allocations: 43.66 kB / 0.5065 GB, free: 43.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.591e-05/0.3964, allocations: 58.27 kB / 0.5065 GB, free: 43.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001863/0.3983, allocations: 1.074 MB / 0.5076 GB, free: 43.37 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.006606/0.4049, allocations: 7.111 MB / 0.5145 GB, free: 38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/0.4065, allocations: 0.7957 MB / 0.5153 GB, free: 37.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006473/0.4072, allocations: 447 kB / 0.5157 GB, free: 37.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00212/0.4093, allocations: 2.315 MB / 0.518 GB, free: 35.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.295e-05/0.4093, allocations: 40.3 kB / 0.518 GB, free: 35.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=78): time 2.354e-06/0.4093, allocations: 3.719 kB / 0.518 GB, free: 35.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=83): time 0.006712/0.4161, allocations: 3.119 MB / 0.5211 GB, free: 33.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.4161, allocations: 137.7 kB / 0.5212 GB, free: 33.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.4173, allocations: 0.9406 MB / 0.5221 GB, free: 33.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.4173, allocations: 42.08 kB / 0.5222 GB, free: 33.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.4177, allocations: 0.614 MB / 0.5228 GB, free: 32.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.4178, allocations: 307.3 kB / 0.5231 GB, free: 32.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000323/0.4182, allocations: 250 kB / 0.5233 GB, free: 32.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.118e-05/0.4183, allocations: 354.9 kB / 0.5237 GB, free: 32.17 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006925/0.419, allocations: 428.4 kB / 0.5241 GB, free: 32.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008445/0.4198, allocations: 0.9298 MB / 0.525 GB, free: 31.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01013/0.43, allocations: 3.036 MB / 0.5279 GB, free: 29.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-05/0.43, allocations: 4.969 kB / 0.5279 GB, free: 29.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002716/0.4327, allocations: 1.623 MB / 0.5295 GB, free: 28.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.4328, allocations: 12.91 kB / 0.5295 GB, free: 28.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/0.4328, allocations: 19.88 kB / 0.5296 GB, free: 28.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008246/0.4336, allocations: 364.2 kB / 0.5299 GB, free: 28.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008572/0.4345, allocations: 280.3 kB / 0.5302 GB, free: 28.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002615/0.4371, allocations: 4.301 MB / 0.5344 GB, free: 24.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008488/0.438, allocations: 55.47 kB / 0.5344 GB, free: 24.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.578e-05/0.4381, allocations: 63.16 kB / 0.5345 GB, free: 24.3 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 20 (tank.inFlow[3],tank.inFlow[2],tank.inFlow[1],tank.regularFlow[3],tank.regularFlow[2],tank.regularFlow[1],PI_Valve.TS_in,PI_Level.TS_in,PI_Valve.satLOW_in,PI_Valve.satHIGH_in,PI_Valve.ATreq_in,sub.Yfp,sub.U2fp,sub.U1fp,div.Yfp,div.U2fp,div.U1fp,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 (152): * Single equations (assignments): 149 * 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.0005334/0.4386, allocations: 342.3 kB / 0.5348 GB, free: 24.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001775/0.4388, allocations: 126 kB / 0.5349 GB, free: 23.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/0.4413, allocations: 1.529 MB / 0.5364 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.4413, allocations: 8.594 kB / 0.5364 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.4413, allocations: 0 / 0.5364 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.4413, allocations: 6.281 kB / 0.5364 GB, free: 23.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003467/0.4448, allocations: 2.429 MB / 0.5388 GB, free: 20.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.4448, allocations: 0 / 0.5388 GB, free: 20.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007072/0.4455, allocations: 170.5 kB / 0.539 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006191/0.4462, allocations: 344.2 kB / 0.5393 GB, free: 20.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.4462, allocations: 24 kB / 0.5393 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002586/0.4488, allocations: 4.289 MB / 0.5435 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4488, allocations: 0 / 0.5435 GB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.4516, allocations: 1.936 MB / 0.5454 GB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000381/0.452, allocations: 292.1 kB / 0.5457 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.4521, allocations: 28 kB / 0.5457 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005566/0.4527, allocations: 36.84 kB / 0.5457 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.4529, allocations: 80.83 kB / 0.5458 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.845e-05/0.453, allocations: 39.97 kB / 0.5459 GB, free: 13.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006425/0.4536, allocations: 0.6333 MB / 0.5465 GB, free: 12.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4536, allocations: 0 / 0.5465 GB, free: 12.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001143/0.4548, allocations: 351.7 kB / 0.5468 GB, free: 12.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (PI_Level.Iaction,PI_Level.Fder,tank.level,tank.medium.T,actuator.y,PI_Valve.Iaction,PI_Valve.Fder) * Number of discrete variables: 6 (tank.regularFlow[1],tank.regularFlow[2],tank.regularFlow[3],tank.inFlow[1],tank.inFlow[2],tank.inFlow[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,9), (2,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003237/0.458, allocations: 2.687 MB / 0.5494 GB, free: 9.711 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.46, allocations: 1.393 MB / 0.5508 GB, free: 8.293 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.46, allocations: 256 / 0.5508 GB, free: 8.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.4611, allocations: 0.8035 MB / 0.5516 GB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.4631, allocations: 0.5004 MB / 0.5521 GB, free: 6.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01319/0.4763, allocations: 10.54 MB / 0.5624 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008913/0.4773, allocations: 1.134 MB / 0.5635 GB, free: 10.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001019/0.4783, allocations: 316.9 kB / 0.5638 GB, free: 10.37 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006794/0.479, allocations: 479.2 kB / 0.5642 GB, free: 9.898 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.479, allocations: 4 kB / 0.5642 GB, free: 9.895 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07931/0.5583, allocations: 34.05 MB / 0.5975 GB, free: 8.234 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.76, allocations: 448 / 0.5975 GB, free: 8.234 MB / 430.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl_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_CascadeLevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1)