Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV,fileNamePrefix="IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV",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.000943/0.0009431, allocations: 87.3 kB / 15.06 MB, free: 1.082 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.001377/0.001377, allocations: 176.7 kB / 15.96 MB, free: 196 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 240 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7709/0.7709, allocations: 132.3 MB / 423.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003097/0.0003097, allocations: 16 kB / 0.5035 GB, free: 4.148 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4361/0.4365, allocations: 81.57 MB / 0.5832 GB, free: 4.004 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV): time 0.02021/0.4567, allocations: 20.49 MB / 0.6032 GB, free: 5.469 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007438/0.4642, allocations: 4.906 MB / 0.608 GB, free: 1.512 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008359/0.4651, allocations: 20.62 kB / 0.608 GB, free: 1.5 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007464/0.4659, allocations: 224.5 kB / 0.6082 GB, free: 1.312 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002107/0.468, allocations: 0.6865 MB / 0.6089 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001623/0.4696, allocations: 0.5774 MB / 0.6094 GB, free: 368 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.4719, allocations: 1.623 MB / 0.611 GB, free: 15.38 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006885/0.4726, allocations: 383.2 kB / 0.6114 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.4738, allocations: 0.5176 MB / 0.6119 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006102/0.4744, allocations: 436.2 kB / 0.6123 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.25e-05/0.4745, allocations: 20.44 kB / 0.6123 GB, free: 14.61 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001157/0.4757, allocations: 0.5241 MB / 0.6128 GB, free: 14.33 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001543/0.4758, allocations: 109.9 kB / 0.6129 GB, free: 14.25 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001884/0.476, allocations: 154.3 kB / 0.6131 GB, free: 14.15 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009014/0.4769, allocations: 0.752 MB / 0.6138 GB, free: 13.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4769, allocations: 1.312 kB / 0.6138 GB, free: 13.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 8.857e-06/0.477, allocations: 4 kB / 0.6138 GB, free: 13.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.477, allocations: 3.938 kB / 0.6138 GB, free: 13.64 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001555/0.4785, allocations: 0.9456 MB / 0.6148 GB, free: 12.85 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.4786, allocations: 10.41 kB / 0.6148 GB, free: 12.85 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.649e-05/0.4787, allocations: 63.5 kB / 0.6148 GB, free: 12.79 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001304/0.4788, allocations: 78.41 kB / 0.6149 GB, free: 12.75 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008546/0.4797, allocations: 0.5316 MB / 0.6154 GB, free: 12.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.704e-05/0.4797, allocations: 29.12 kB / 0.6154 GB, free: 12.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.308e-05/0.4798, allocations: 38.09 kB / 0.6155 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006369/0.4805, allocations: 314.8 kB / 0.6158 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.4805, allocations: 0 / 0.6158 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.4805, allocations: 15.09 kB / 0.6158 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.43e-05/0.4806, allocations: 12.06 kB / 0.6158 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005631/0.4811, allocations: 266.6 kB / 0.6161 GB, free: 11.96 MB / 462.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.002607/0.4837, allocations: 1.576 MB / 0.6176 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003791/0.4841, allocations: 201.2 kB / 0.6178 GB, free: 10.51 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.4844, allocations: 99.72 kB / 0.6179 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003912/0.4848, allocations: 416.5 kB / 0.6183 GB, free: 9.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.4848, allocations: 35.73 kB / 0.6183 GB, free: 9.938 MB / 462.1 MB Notification: Performance of pre-optimization done (n=19): time 1.874e-06/0.4848, allocations: 0 / 0.6183 GB, free: 9.938 MB / 462.1 MB Notification: Performance of matching and sorting (n=19): time 0.0008667/0.4857, allocations: 343.3 kB / 0.6186 GB, free: 9.766 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.4857, allocations: 53.81 kB / 0.6187 GB, free: 9.703 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009001/0.4866, allocations: 0.6492 MB / 0.6193 GB, free: 9.309 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.788e-05/0.4867, allocations: 35.83 kB / 0.6194 GB, free: 9.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000266/0.487, allocations: 302.6 kB / 0.6197 GB, free: 9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.378e-05/0.487, allocations: 68.53 kB / 0.6197 GB, free: 8.941 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.31e-05/0.4871, allocations: 9.25 kB / 0.6197 GB, free: 8.934 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.4873, allocations: 376.8 kB / 0.6201 GB, free: 8.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/0.4876, allocations: 129.9 kB / 0.6202 GB, free: 8.508 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.4879, allocations: 214.1 kB / 0.6204 GB, free: 8.363 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.4883, allocations: 145.6 kB / 0.6206 GB, free: 8.301 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.4883, allocations: 4 kB / 0.6206 GB, free: 8.297 MB / 462.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007877/0.4891, allocations: 449.5 kB / 0.621 GB, free: 8.074 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.351e-05/0.4892, allocations: 120 kB / 0.6211 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4892, allocations: 1 kB / 0.6211 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.4892, allocations: 3.406 kB / 0.6211 GB, free: 7.945 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008192/0.49, allocations: 149.3 kB / 0.6212 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007897/0.4908, allocations: 1.188 MB / 0.6224 GB, free: 6.699 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000554/0.4914, allocations: 69.64 kB / 0.6225 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.4914, allocations: 16.19 kB / 0.6225 GB, free: 6.652 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.296e-06/0.4915, allocations: 4.031 kB / 0.6225 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007702/0.4922, allocations: 370.7 kB / 0.6228 GB, free: 6.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4923, allocations: 9.484 kB / 0.6229 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.461e-06/0.4923, allocations: 2.75 kB / 0.6229 GB, free: 6.473 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004526/0.4927, allocations: 115.2 kB / 0.623 GB, free: 6.445 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.4927, allocations: 6.391 kB / 0.623 GB, free: 6.441 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003724/0.4931, allocations: 60.2 kB / 0.623 GB, free: 6.406 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.355e-05/0.4932, allocations: 15.47 kB / 0.623 GB, free: 6.402 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002803/0.4934, allocations: 261 kB / 0.6233 GB, free: 6.168 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.639e-05/0.4935, allocations: 59.5 kB / 0.6234 GB, free: 6.137 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000677/0.4942, allocations: 341.7 kB / 0.6237 GB, free: 5.934 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.4943, allocations: 6.203 kB / 0.6237 GB, free: 5.93 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4943, allocations: 4.984 kB / 0.6237 GB, free: 5.926 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.4943, allocations: 0 / 0.6237 GB, free: 5.926 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.4956, allocations: 0.9159 MB / 0.6246 GB, free: 5.203 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.4956, allocations: 1.406 kB / 0.6246 GB, free: 5.203 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002882/0.4959, allocations: 54.44 kB / 0.6246 GB, free: 5.191 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.85e-06/0.4959, allocations: 2.188 kB / 0.6246 GB, free: 5.191 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.496, allocations: 11.77 kB / 0.6247 GB, free: 5.184 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006899/0.4967, allocations: 1.19 MB / 0.6258 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4967, allocations: 2.156 kB / 0.6258 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008222/0.4975, allocations: 0.5321 MB / 0.6263 GB, free: 3.613 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.4977, allocations: 179.9 kB / 0.6265 GB, free: 3.441 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.526e-05/0.4978, allocations: 11.23 kB / 0.6265 GB, free: 3.434 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003151/0.4981, allocations: 40.06 kB / 0.6266 GB, free: 3.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.4982, allocations: 16.05 kB / 0.6266 GB, free: 3.395 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.4982, allocations: 8 kB / 0.6266 GB, free: 3.387 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005453/0.4988, allocations: 451 kB / 0.627 GB, free: 2.949 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4988, allocations: 0 / 0.627 GB, free: 2.949 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008708/0.4997, allocations: 295.5 kB / 0.6273 GB, free: 2.66 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (valDyn.val.filter.s[1],valDyn.val.filter.s[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001431/0.5011, allocations: 1.204 MB / 0.6285 GB, free: 1.43 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001263/0.5024, allocations: 0.5193 MB / 0.629 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5024, allocations: 0 / 0.629 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.5027, allocations: 140 kB / 0.6291 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001362/0.5041, allocations: 293.3 kB / 0.6294 GB, free: 0.5 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005312/0.5094, allocations: 3.38 MB / 0.6327 GB, free: 13.05 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.5099, allocations: 0.8941 MB / 0.6336 GB, free: 12.13 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005384/0.5104, allocations: 112.8 kB / 0.6337 GB, free: 12.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002887/0.5107, allocations: 227.4 kB / 0.6339 GB, free: 11.8 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5107, allocations: 4 kB / 0.6339 GB, free: 11.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03406/0.5448, allocations: 16.52 MB / 0.65 GB, free: 11.66 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/0.5451, allocations: 252.8 kB / 0.6503 GB, free: 11.32 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.158/2.703, allocations: 0 / 0.6503 GB, free: 11.32 MB / 494.1 MB (rm -f IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Actuators_Valves_Examples_TwoWayValveTRV.fmu > IDEAS_IDEAS.Fluid.Actuators.Valves.Examples.TwoWayValveTRV.pipe 2>&1) Environment - environmentSimulation: