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.008514/0.008514, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002183/0.002183, allocations: 200.1 kB / 16.68 MB, free: 5.969 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1586/0.1586, allocations: 11.18 MB / 301.7 MB, free: 1.297 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 67.89 kB / 418.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2103/0.2122, allocations: 51.96 MB / 470.5 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.01977/0.2321, allocations: 25.06 MB / 495.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.2425, allocations: 6.841 MB / 0.4906 GB, free: 7.512 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.2437, allocations: 50.56 kB / 0.4907 GB, free: 7.488 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001193/0.245, allocations: 443.6 kB / 0.4911 GB, free: 7.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002873/0.2478, allocations: 1.141 MB / 0.4922 GB, free: 6.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003336/0.2512, allocations: 1.328 MB / 0.4935 GB, free: 5.172 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003456/0.2547, allocations: 2.636 MB / 0.4961 GB, free: 3.207 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001198/0.2559, allocations: 0.7966 MB / 0.4969 GB, free: 2.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001896/0.2578, allocations: 1.07 MB / 0.4979 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001306/0.2591, allocations: 0.9064 MB / 0.4988 GB, free: 424 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000197/0.2593, allocations: 100 kB / 0.4989 GB, free: 324 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001217/0.2605, allocations: 467.5 kB / 0.4993 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003857/0.2609, allocations: 386.7 kB / 0.4997 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006943/0.2616, allocations: 0.6451 MB / 0.5003 GB, free: 14.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002295/0.2639, allocations: 1.682 MB / 0.502 GB, free: 13.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.264, allocations: 0 / 0.502 GB, free: 13.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.264, allocations: 0 / 0.502 GB, free: 13.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.144e-05/0.264, allocations: 0 / 0.502 GB, free: 13.14 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.003033/0.267, allocations: 1.669 MB / 0.5036 GB, free: 11.42 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.2671, allocations: 11.89 kB / 0.5036 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001827/0.2673, allocations: 152.2 kB / 0.5038 GB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004282/0.2677, allocations: 172 kB / 0.5039 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.2691, allocations: 0.8822 MB / 0.5048 GB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.2693, allocations: 215.1 kB / 0.505 GB, free: 9.922 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001448/0.2694, allocations: 100.1 kB / 0.5051 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.2716, allocations: 1.391 MB / 0.5064 GB, free: 8.297 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.743e-05/0.2716, allocations: 3.938 kB / 0.5064 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001068/0.2717, allocations: 47.98 kB / 0.5065 GB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.136e-05/0.2718, allocations: 61.92 kB / 0.5066 GB, free: 8.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001821/0.2736, allocations: 1.069 MB / 0.5076 GB, free: 7.117 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.007981/0.2816, allocations: 7.109 MB / 0.5145 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.2833, allocations: 0.7912 MB / 0.5153 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006898/0.284, allocations: 456.2 kB / 0.5157 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00263/0.2866, allocations: 2.316 MB / 0.518 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.416e-05/0.2867, allocations: 43.22 kB / 0.5181 GB, free: 11.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 1.924e-06/0.2867, allocations: 0 / 0.5181 GB, free: 11.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.006553/0.2932, allocations: 3.113 MB / 0.5211 GB, free: 8.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.628e-05/0.2933, allocations: 145.5 kB / 0.5212 GB, free: 8.316 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001182/0.2945, allocations: 0.9354 MB / 0.5221 GB, free: 7.363 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.894e-05/0.2946, allocations: 49.7 kB / 0.5222 GB, free: 7.309 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000471/0.2951, allocations: 0.6091 MB / 0.5228 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/0.2953, allocations: 309.5 kB / 0.5231 GB, free: 6.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003523/0.2957, allocations: 250.8 kB / 0.5233 GB, free: 6.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.2959, allocations: 361.9 kB / 0.5237 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007143/0.2966, allocations: 422.4 kB / 0.5241 GB, free: 5.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.2978, allocations: 0.9243 MB / 0.525 GB, free: 4.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01077/0.3086, allocations: 3.037 MB / 0.5279 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.3086, allocations: 4 kB / 0.5279 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002901/0.3115, allocations: 1.624 MB / 0.5295 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.3116, allocations: 15.94 kB / 0.5295 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.3116, allocations: 16 kB / 0.5296 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008814/0.3125, allocations: 362.8 kB / 0.5299 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009842/0.3135, allocations: 291.5 kB / 0.5302 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004019/0.3175, allocations: 4.297 MB / 0.5344 GB, free: 10.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007987/0.3183, allocations: 48.12 kB / 0.5344 GB, free: 9.965 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.3185, allocations: 72.02 kB / 0.5345 GB, free: 9.895 MB / 414.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.0006275/0.3191, allocations: 343.8 kB / 0.5348 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002626/0.3194, allocations: 131.1 kB / 0.5349 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.3224, allocations: 1.524 MB / 0.5364 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.519e-05/0.3225, allocations: 8 kB / 0.5364 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3225, allocations: 3.938 kB / 0.5364 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3225, allocations: 3.984 kB / 0.5364 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/0.3265, allocations: 2.424 MB / 0.5388 GB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3265, allocations: 4 kB / 0.5388 GB, free: 5.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007781/0.3273, allocations: 163.8 kB / 0.539 GB, free: 5.211 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008072/0.3281, allocations: 358.4 kB / 0.5393 GB, free: 4.852 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.526e-05/0.3282, allocations: 23.94 kB / 0.5393 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003944/0.3321, allocations: 4.27 MB / 0.5435 GB, free: 252 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3322, allocations: 4 kB / 0.5435 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003528/0.3357, allocations: 1.936 MB / 0.5454 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006028/0.3363, allocations: 292.1 kB / 0.5457 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001985/0.3365, allocations: 19.94 kB / 0.5457 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.3372, allocations: 39.97 kB / 0.5457 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002078/0.3374, allocations: 92.81 kB / 0.5458 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.757e-05/0.3375, allocations: 35.98 kB / 0.5459 GB, free: 13.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000943/0.3384, allocations: 0.6294 MB / 0.5465 GB, free: 13.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3384, allocations: 4 kB / 0.5465 GB, free: 13.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001319/0.3398, allocations: 347.8 kB / 0.5468 GB, free: 12.79 MB / 430.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.004208/0.344, allocations: 2.683 MB / 0.5494 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00251/0.3465, allocations: 1.395 MB / 0.5508 GB, free: 8.648 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.3465, allocations: 7.938 kB / 0.5508 GB, free: 8.641 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.3479, allocations: 0.8044 MB / 0.5516 GB, free: 7.812 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.3501, allocations: 494.1 kB / 0.5521 GB, free: 7.336 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01583/0.3659, allocations: 10.55 MB / 0.5624 GB, free: 12.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000908/0.3669, allocations: 1.141 MB / 0.5635 GB, free: 11 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001016/0.3679, allocations: 313.3 kB / 0.5638 GB, free: 10.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006654/0.3686, allocations: 475.3 kB / 0.5642 GB, free: 10.24 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3686, allocations: 0 / 0.5642 GB, free: 10.24 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2427/0.6113, allocations: 34.05 MB / 0.5975 GB, free: 114.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/13.17, allocations: 8.016 kB / 0.5975 GB, free: 114.8 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl_fmu --startTime=0 --stopTime=4500 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1)