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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 209.9 kB / 22.25 MB, free: 5.086 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06478/0.06478, allocations: 11.34 MB / 323.8 MB, free: 8.262 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 67.91 kB / 452.3 MB, free: 9.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1067, allocations: 56.06 MB / 0.4964 GB, free: 1.117 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2626/0.3693, allocations: 25.65 MB / 0.5215 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00853/0.3778, allocations: 6.897 MB / 0.5282 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.3791, allocations: 72.34 kB / 0.5283 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001155/0.3802, allocations: 449 kB / 0.5287 GB, free: 6.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002873/0.3831, allocations: 1.184 MB / 0.5299 GB, free: 5.586 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003691/0.3868, allocations: 1.363 MB / 0.5312 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003916/0.3907, allocations: 2.659 MB / 0.5338 GB, free: 4.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.392, allocations: 0.6904 MB / 0.5345 GB, free: 4.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002941/0.3949, allocations: 1.119 MB / 0.5356 GB, free: 4.426 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002501/0.3974, allocations: 0.9606 MB / 0.5365 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002848/0.3977, allocations: 104.6 kB / 0.5366 GB, free: 4.148 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.3993, allocations: 0.4979 MB / 0.5371 GB, free: 4.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003865/0.3997, allocations: 408.1 kB / 0.5375 GB, free: 3.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006317/0.4003, allocations: 0.644 MB / 0.5381 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002918/0.4033, allocations: 1.709 MB / 0.5398 GB, free: 2.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.4033, allocations: 0 / 0.5398 GB, free: 2.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4033, allocations: 1.375 kB / 0.5398 GB, free: 2.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.4033, allocations: 0 / 0.5398 GB, free: 2.754 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.003598/0.4069, allocations: 1.598 MB / 0.5413 GB, free: 1.766 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.908e-05/0.4069, allocations: 9.375 kB / 0.5414 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002084/0.4072, allocations: 152.1 kB / 0.5415 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005251/0.4077, allocations: 163 kB / 0.5417 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.4092, allocations: 0.789 MB / 0.5424 GB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002076/0.4095, allocations: 303.1 kB / 0.5427 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.4096, allocations: 94.38 kB / 0.5428 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.4119, allocations: 1.4 MB / 0.5442 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.791e-05/0.4119, allocations: 10.95 kB / 0.5442 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.412, allocations: 48.47 kB / 0.5442 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.618e-05/0.4121, allocations: 54.95 kB / 0.5443 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.414, allocations: 1.074 MB / 0.5453 GB, free: 15.42 MB / 398.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.009061/0.4231, allocations: 7.025 MB / 0.5522 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.4248, allocations: 0.748 MB / 0.5529 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007158/0.4255, allocations: 417.1 kB / 0.5533 GB, free: 8.574 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002527/0.428, allocations: 1.157 MB / 0.5545 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.428, allocations: 48.12 kB / 0.5545 GB, free: 7.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 3.095e-06/0.428, allocations: 0 / 0.5545 GB, free: 7.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.007/0.435, allocations: 2.815 MB / 0.5572 GB, free: 6.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.4352, allocations: 142.2 kB / 0.5574 GB, free: 5.934 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.4366, allocations: 0.935 MB / 0.5583 GB, free: 5.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.4367, allocations: 47.05 kB / 0.5583 GB, free: 5.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005982/0.4373, allocations: 0.6068 MB / 0.5589 GB, free: 4.805 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003329/0.4376, allocations: 311.9 kB / 0.5592 GB, free: 4.535 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000355/0.438, allocations: 248.8 kB / 0.5595 GB, free: 4.395 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.4382, allocations: 358.2 kB / 0.5598 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007688/0.439, allocations: 426.1 kB / 0.5602 GB, free: 3.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.4402, allocations: 0.9326 MB / 0.5611 GB, free: 2.938 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/0.4511, allocations: 3.031 MB / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.4511, allocations: 5.094 kB / 0.5641 GB, free: 1.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003189/0.4543, allocations: 1.615 MB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.4543, allocations: 12 kB / 0.5657 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/0.4543, allocations: 23.92 kB / 0.5657 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009145/0.4552, allocations: 366.5 kB / 0.5661 GB, free: 15.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.4562, allocations: 284.3 kB / 0.5663 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004206/0.4604, allocations: 4.091 MB / 0.5703 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.4614, allocations: 49.34 kB / 0.5704 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.4616, allocations: 67.98 kB / 0.5704 GB, free: 10.85 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.0007178/0.4623, allocations: 335 kB / 0.5707 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002249/0.4625, allocations: 127.2 kB / 0.5709 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003262/0.4658, allocations: 1.532 MB / 0.5724 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.4658, allocations: 12 kB / 0.5724 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4658, allocations: 0 / 0.5724 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.4658, allocations: 11.92 kB / 0.5724 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00445/0.4703, allocations: 2.402 MB / 0.5747 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.4703, allocations: 4 kB / 0.5747 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007996/0.4711, allocations: 159.8 kB / 0.5749 GB, free: 6.203 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008269/0.4719, allocations: 352 kB / 0.5752 GB, free: 5.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.64e-05/0.472, allocations: 23.98 kB / 0.5753 GB, free: 5.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004034/0.476, allocations: 4.076 MB / 0.5792 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.476, allocations: 4.031 kB / 0.5792 GB, free: 1.496 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003848/0.4798, allocations: 1.94 MB / 0.5811 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000671/0.4805, allocations: 211.1 kB / 0.5813 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001571/0.4807, allocations: 19.98 kB / 0.5814 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006098/0.4813, allocations: 37.05 kB / 0.5814 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002092/0.4815, allocations: 92.78 kB / 0.5815 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.902e-05/0.4816, allocations: 39.97 kB / 0.5815 GB, free: 15.12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009998/0.4826, allocations: 0.6294 MB / 0.5821 GB, free: 14.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4826, allocations: 0 / 0.5821 GB, free: 14.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001646/0.4842, allocations: 355.7 kB / 0.5825 GB, free: 14.14 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.004717/0.4889, allocations: 2.655 MB / 0.5851 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002821/0.4918, allocations: 1.337 MB / 0.5864 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.4918, allocations: 4.188 kB / 0.5864 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001415/0.4932, allocations: 0.7683 MB / 0.5871 GB, free: 9.273 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.4958, allocations: 0.4929 MB / 0.5876 GB, free: 8.797 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/0.5134, allocations: 10.56 MB / 0.5979 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009865/0.5143, allocations: 1.137 MB / 0.599 GB, free: 12.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001331/0.5157, allocations: 319.8 kB / 0.5993 GB, free: 12.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007365/0.5164, allocations: 475.3 kB / 0.5998 GB, free: 11.68 MB / 446.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5164, allocations: 0 / 0.5998 GB, free: 11.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09074/0.6071, allocations: 35.29 MB / 0.6342 GB, free: 8.688 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.01/15.61, allocations: 3.75 kB / 0.6342 GB, free: 8.688 MB / 478.1 MB " [Timeout remaining time 644] (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 --stepSize=1.8 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.513289398048073] Failed to read output from testmodel.py, exit status != 0: 15.75943060987629 15.786195485 15.377852560000001 Calling exit ...