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.008176/0.008176, allocations: 98.28 kB / 15.73 MB, free: 6.059 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.001982/0.001982, allocations: 189.9 kB / 16.67 MB, free: 5.98 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.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.1575/0.1575, allocations: 11.18 MB / 301.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 67.89 kB / 418.5 MB, free: 4.895 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2191/0.221, allocations: 51.97 MB / 470.5 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.LevelControl): time 0.01626/0.2373, allocations: 21.94 MB / 492.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00898/0.2463, allocations: 6.564 MB / 499 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007359/0.2471, allocations: 36.44 kB / 499 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009597/0.2481, allocations: 405.7 kB / 499.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002213/0.2503, allocations: 1.076 MB / 0.4888 GB, free: 9.066 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.253, allocations: 1.187 MB / 0.4899 GB, free: 8.176 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002736/0.2557, allocations: 2.444 MB / 0.4923 GB, free: 6.773 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00095/0.2567, allocations: 0.7258 MB / 0.493 GB, free: 6.277 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001522/0.2582, allocations: 0.9961 MB / 0.494 GB, free: 5.328 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001103/0.2593, allocations: 0.8523 MB / 0.4948 GB, free: 4.473 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001733/0.2595, allocations: 92 kB / 0.4949 GB, free: 4.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001126/0.2607, allocations: 491.3 kB / 0.4954 GB, free: 3.902 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003849/0.2611, allocations: 370.9 kB / 0.4957 GB, free: 3.539 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006521/0.2617, allocations: 0.5869 MB / 0.4963 GB, free: 2.949 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.2638, allocations: 1.598 MB / 0.4979 GB, free: 1.348 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2638, allocations: 4 kB / 0.4979 GB, free: 1.344 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2638, allocations: 0 / 0.4979 GB, free: 1.344 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.708e-05/0.2638, allocations: 4 kB / 0.4979 GB, free: 1.34 MB / 366.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.002887/0.2667, allocations: 1.519 MB / 0.4994 GB, free: 15.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.2668, allocations: 8.031 kB / 0.4994 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001729/0.267, allocations: 135.4 kB / 0.4995 GB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004121/0.2674, allocations: 156.1 kB / 0.4997 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001162/0.2685, allocations: 0.7733 MB / 0.5004 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002517/0.2688, allocations: 219 kB / 0.5006 GB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.2689, allocations: 84.06 kB / 0.5007 GB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002033/0.271, allocations: 1.26 MB / 0.5019 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.271, allocations: 7.938 kB / 0.5019 GB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.2711, allocations: 43.97 kB / 0.502 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.464e-05/0.2712, allocations: 49.98 kB / 0.502 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001851/0.2731, allocations: 0.995 MB / 0.503 GB, free: 11.86 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.006851/0.2799, allocations: 6.051 MB / 0.5089 GB, free: 5.477 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.2813, allocations: 0.722 MB / 0.5096 GB, free: 4.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006773/0.282, allocations: 394.6 kB / 0.51 GB, free: 4.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00244/0.2844, allocations: 2.261 MB / 0.5122 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009511/0.2854, allocations: 0.5368 MB / 0.5127 GB, free: 1.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=71): time 4.068e-06/0.2854, allocations: 0 / 0.5127 GB, free: 1.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.00653/0.2919, allocations: 3.007 MB / 0.5157 GB, free: 14.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001521/0.2921, allocations: 240 kB / 0.5159 GB, free: 13.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001034/0.2932, allocations: 0.834 MB / 0.5167 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.442e-05/0.2932, allocations: 41.7 kB / 0.5167 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004279/0.2937, allocations: 0.5387 MB / 0.5173 GB, free: 12.37 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.2939, allocations: 273.7 kB / 0.5175 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003431/0.2943, allocations: 242.8 kB / 0.5178 GB, free: 11.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.2945, allocations: 357.9 kB / 0.5181 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007662/0.2952, allocations: 394.4 kB / 0.5185 GB, free: 11.11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.2964, allocations: 0.8996 MB / 0.5194 GB, free: 9.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/0.3066, allocations: 2.863 MB / 0.5222 GB, free: 6.898 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.745e-06/0.3066, allocations: 4 kB / 0.5222 GB, free: 6.895 MB / 398.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003009/0.3096, allocations: 1.566 MB / 0.5237 GB, free: 5.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.3096, allocations: 12 kB / 0.5237 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.3097, allocations: 16.88 kB / 0.5237 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008319/0.3105, allocations: 366.3 kB / 0.5241 GB, free: 4.914 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008123/0.3113, allocations: 251.5 kB / 0.5243 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00382/0.3152, allocations: 4.301 MB / 0.5285 GB, free: 68 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007949/0.316, allocations: 64.09 kB / 0.5286 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/0.3161, allocations: 63.98 kB / 0.5286 GB, free: 15.94 MB / 414.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.0006273/0.3167, allocations: 346.9 kB / 0.529 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002015/0.317, allocations: 107.3 kB / 0.5291 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003047/0.32, allocations: 1.458 MB / 0.5305 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.32, allocations: 8 kB / 0.5305 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.32, allocations: 0 / 0.5305 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.3201, allocations: 3.984 kB / 0.5305 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004181/0.3242, allocations: 2.328 MB / 0.5328 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.3243, allocations: 0 / 0.5328 GB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005348/0.3248, allocations: 127.8 kB / 0.5329 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007718/0.3256, allocations: 342.4 kB / 0.5332 GB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.564e-05/0.3257, allocations: 23.98 kB / 0.5332 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003891/0.3296, allocations: 4.297 MB / 0.5374 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3296, allocations: 0 / 0.5374 GB, free: 6.5 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003433/0.333, allocations: 1.847 MB / 0.5392 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004498/0.3335, allocations: 276.3 kB / 0.5395 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.3337, allocations: 23.98 kB / 0.5395 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006441/0.3343, allocations: 43.91 kB / 0.5396 GB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/0.3345, allocations: 84.53 kB / 0.5396 GB, free: 4.172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.984e-05/0.3346, allocations: 35.98 kB / 0.5397 GB, free: 4.137 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0008205/0.3354, allocations: 0.5744 MB / 0.5402 GB, free: 3.551 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3354, allocations: 96 / 0.5402 GB, free: 3.551 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001205/0.3366, allocations: 355.6 kB / 0.5406 GB, free: 3.203 MB / 414.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.004361/0.341, allocations: 2.595 MB / 0.5431 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002462/0.3435, allocations: 1.329 MB / 0.5444 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.3435, allocations: 3.938 kB / 0.5444 GB, free: 15.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001348/0.3449, allocations: 0.7709 MB / 0.5452 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.3468, allocations: 494.1 kB / 0.5456 GB, free: 13.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.3614, allocations: 9.644 MB / 0.5551 GB, free: 3.688 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000791/0.3622, allocations: 1.085 MB / 0.5561 GB, free: 2.57 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008798/0.3631, allocations: 289.1 kB / 0.5564 GB, free: 2.297 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005432/0.3636, allocations: 399.3 kB / 0.5568 GB, free: 1.906 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3636, allocations: 4 kB / 0.5568 GB, free: 1.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07027/0.4339, allocations: 32.56 MB / 0.5886 GB, free: 1.625 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.8, allocations: 3.094 kB / 0.5886 GB, free: 1.625 MB / 462.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl_fmu --startTime=0 --stopTime=4500 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Applications_ProcessControl_LevelControl.fmu > IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.LevelControl.pipe 2>&1)