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.001278/0.001278, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001421/0.001421, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.403/1.403, allocations: 230.6 MB / 256.8 MB, free: 8.016 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.06234/0.06234, allocations: 11.35 MB / 324.6 MB, free: 8.254 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_CascadeLevelControl",fmuType="cs",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.001909/0.001909, allocations: 63.91 kB / 453.1 MB, free: 9.281 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1035, allocations: 56.07 MB / 0.4972 GB, free: 1.105 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.CascadeLevelControl): time 0.2433/0.3468, allocations: 25.65 MB / 0.5223 GB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008277/0.3551, allocations: 6.905 MB / 0.529 GB, free: 6.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.3563, allocations: 73.41 kB / 0.5291 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.3574, allocations: 446.4 kB / 0.5295 GB, free: 6.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002905/0.3603, allocations: 1.182 MB / 0.5307 GB, free: 5.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003522/0.3639, allocations: 1.368 MB / 0.532 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003542/0.3674, allocations: 2.657 MB / 0.5346 GB, free: 4.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.3687, allocations: 0.6911 MB / 0.5353 GB, free: 4.664 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.3709, allocations: 1.115 MB / 0.5363 GB, free: 4.395 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001629/0.3725, allocations: 0.9655 MB / 0.5373 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002933/0.3728, allocations: 99.94 kB / 0.5374 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.3743, allocations: 0.5043 MB / 0.5379 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004018/0.3747, allocations: 400.7 kB / 0.5383 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007058/0.3754, allocations: 0.6457 MB / 0.5389 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.3779, allocations: 1.717 MB / 0.5406 GB, free: 2.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.3779, allocations: 0 / 0.5406 GB, free: 2.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3779, allocations: 0 / 0.5406 GB, free: 2.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.414e-05/0.3779, allocations: 1.156 kB / 0.5406 GB, free: 2.723 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.003457/0.3814, allocations: 1.59 MB / 0.5421 GB, free: 1.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.3814, allocations: 9.562 kB / 0.5421 GB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.636e-05/0.3815, allocations: 24.41 kB / 0.5422 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.3817, allocations: 157.8 kB / 0.5423 GB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005425/0.3822, allocations: 169.6 kB / 0.5425 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.3837, allocations: 0.7904 MB / 0.5432 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001571/0.3839, allocations: 300.8 kB / 0.5435 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001511/0.384, allocations: 100.6 kB / 0.5436 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/0.3859, allocations: 1.386 MB / 0.545 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.172e-05/0.386, allocations: 7.781 kB / 0.545 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.3861, allocations: 43.02 kB / 0.545 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.212e-05/0.3862, allocations: 55.58 kB / 0.5451 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.388, allocations: 1.081 MB / 0.5461 GB, free: 15.43 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.008355/0.3964, allocations: 7.024 MB / 0.553 GB, free: 9.164 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.398, allocations: 0.7437 MB / 0.5537 GB, free: 8.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006777/0.3987, allocations: 413.7 kB / 0.5541 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002219/0.4009, allocations: 1.166 MB / 0.5552 GB, free: 7.727 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.4009, allocations: 47.94 kB / 0.5553 GB, free: 7.676 MB / 398.1 MB Notification: Performance of pre-optimization done (n=78): time 1.983e-06/0.4009, allocations: 1.125 kB / 0.5553 GB, free: 7.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=83): time 0.006581/0.4075, allocations: 2.808 MB / 0.558 GB, free: 6.098 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.735e-05/0.4076, allocations: 141.8 kB / 0.5582 GB, free: 5.938 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.4088, allocations: 0.9381 MB / 0.5591 GB, free: 5.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.851e-05/0.4088, allocations: 43.55 kB / 0.5591 GB, free: 5.355 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004672/0.4093, allocations: 0.6064 MB / 0.5597 GB, free: 4.809 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002831/0.4096, allocations: 312.8 kB / 0.56 GB, free: 4.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003549/0.4099, allocations: 247.5 kB / 0.5603 GB, free: 4.398 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.4101, allocations: 363.5 kB / 0.5606 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007111/0.4108, allocations: 425 kB / 0.561 GB, free: 3.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.4119, allocations: 0.9296 MB / 0.5619 GB, free: 2.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/0.4223, allocations: 3.037 MB / 0.5649 GB, free: 1.027 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.4223, allocations: 5.375 kB / 0.5649 GB, free: 1.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002944/0.4252, allocations: 1.618 MB / 0.5665 GB, free: 15.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.4253, allocations: 19.92 kB / 0.5665 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.4253, allocations: 20.09 kB / 0.5665 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008735/0.4262, allocations: 355.1 kB / 0.5668 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009503/0.4271, allocations: 288.3 kB / 0.5671 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003718/0.4308, allocations: 4.088 MB / 0.5711 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009745/0.4318, allocations: 52.03 kB / 0.5712 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.4319, allocations: 67.98 kB / 0.5712 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.0007213/0.4326, allocations: 344 kB / 0.5716 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002325/0.4329, allocations: 131.1 kB / 0.5717 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003012/0.4359, allocations: 1.522 MB / 0.5732 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.381e-05/0.4359, allocations: 8 kB / 0.5732 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.4359, allocations: 7.938 kB / 0.5732 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.4359, allocations: 3.984 kB / 0.5732 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004013/0.4399, allocations: 2.4 MB / 0.5755 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.4399, allocations: 0 / 0.5755 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007691/0.4407, allocations: 168 kB / 0.5757 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007679/0.4415, allocations: 344 kB / 0.576 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.948e-05/0.4415, allocations: 31.92 kB / 0.576 GB, free: 5.828 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003655/0.4452, allocations: 4.075 MB / 0.58 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4452, allocations: 4 kB / 0.58 GB, free: 1.496 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003513/0.4487, allocations: 1.936 MB / 0.5819 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006778/0.4494, allocations: 207.1 kB / 0.5821 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/0.4496, allocations: 31.94 kB / 0.5821 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005681/0.4501, allocations: 27.98 kB / 0.5822 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.4503, allocations: 88.78 kB / 0.5823 GB, free: 15.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.54e-05/0.4504, allocations: 39.97 kB / 0.5823 GB, free: 15.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009161/0.4513, allocations: 0.6294 MB / 0.5829 GB, free: 14.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4513, allocations: 0 / 0.5829 GB, free: 14.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001528/0.4529, allocations: 351.7 kB / 0.5832 GB, free: 14.15 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.004245/0.4571, allocations: 2.668 MB / 0.5859 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002624/0.4597, allocations: 1.333 MB / 0.5872 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.4597, allocations: 4 kB / 0.5872 GB, free: 10.07 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.4611, allocations: 0.7689 MB / 0.5879 GB, free: 9.277 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.4636, allocations: 0.5026 MB / 0.5884 GB, free: 8.797 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01631/0.4799, allocations: 10.54 MB / 0.5987 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000822/0.4807, allocations: 1.141 MB / 0.5998 GB, free: 12.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001082/0.4818, allocations: 324.1 kB / 0.6001 GB, free: 12.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.4824, allocations: 471.3 kB / 0.6006 GB, free: 11.69 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4824, allocations: 0 / 0.6006 GB, free: 11.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07842/0.5609, allocations: 35.32 MB / 0.6351 GB, free: 8.676 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.3/14.86, allocations: 6.25 kB / 0.6351 GB, free: 8.672 MB / 478.1 MB " [Timeout remaining time 645] (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: 17.663805017014965] Failed to read output from testmodel.py, exit status != 0: 15.060670971986838 15.076913695 14.695856308 Calling exit ...