Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves",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.0009785/0.0009786, allocations: 93.5 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 185.1 kB / 16.92 MB, free: 6.934 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.278/1.278, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6526/0.6526, allocations: 115.5 MB / 407.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.000288, allocations: 15.98 kB / 496 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1299, allocations: 77.53 MB / 0.5601 GB, free: 8.926 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.2876/0.4176, allocations: 28.89 MB / 0.5883 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.4281, allocations: 8.129 MB / 0.5962 GB, free: 9.957 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.4293, allocations: 26.94 kB / 0.5962 GB, free: 9.957 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.4303, allocations: 342.1 kB / 0.5966 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003319/0.4337, allocations: 1.237 MB / 0.5978 GB, free: 9.574 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002805/0.4365, allocations: 1.036 MB / 0.5988 GB, free: 9.496 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.005198/0.4417, allocations: 4.197 MB / 0.6029 GB, free: 9.055 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.4437, allocations: 1.165 MB / 0.604 GB, free: 8.953 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002752/0.4464, allocations: 1.494 MB / 0.6055 GB, free: 8.562 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002223/0.4486, allocations: 1.594 MB / 0.607 GB, free: 8.188 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002666/0.4489, allocations: 63.97 kB / 0.6071 GB, free: 8.188 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00191/0.4508, allocations: 0.9332 MB / 0.608 GB, free: 7.941 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003388/0.4512, allocations: 341.2 kB / 0.6083 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007036/0.4519, allocations: 0.7054 MB / 0.609 GB, free: 7.465 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001905/0.4538, allocations: 2.096 MB / 0.6111 GB, free: 6.574 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.4538, allocations: 11.98 kB / 0.6111 GB, free: 6.562 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4538, allocations: 0 / 0.6111 GB, free: 6.562 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.451e-05/0.4539, allocations: 1.188 kB / 0.6111 GB, free: 6.562 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002151/0.456, allocations: 1.328 MB / 0.6124 GB, free: 21.54 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.4561, allocations: 13.5 kB / 0.6124 GB, free: 21.53 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.188e-05/0.4562, allocations: 102.2 kB / 0.6125 GB, free: 21.44 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002865/0.4565, allocations: 152.4 kB / 0.6126 GB, free: 21.38 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.4578, allocations: 0.8907 MB / 0.6135 GB, free: 20.72 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.268e-05/0.4578, allocations: 79.94 kB / 0.6136 GB, free: 20.69 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/0.4581, allocations: 121.1 kB / 0.6137 GB, free: 20.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009366/0.459, allocations: 0.6428 MB / 0.6143 GB, free: 20.25 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.459, allocations: 0 / 0.6143 GB, free: 20.25 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.564e-05/0.4591, allocations: 24.94 kB / 0.6143 GB, free: 20.23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/0.4591, allocations: 14.69 kB / 0.6143 GB, free: 20.23 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008168/0.4599, allocations: 483.3 kB / 0.6148 GB, free: 20.01 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.003672/0.4636, allocations: 2.871 MB / 0.6176 GB, free: 17.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.4642, allocations: 331.9 kB / 0.6179 GB, free: 17.54 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000276/0.4645, allocations: 150.3 kB / 0.6181 GB, free: 17.48 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002091/0.4647, allocations: 346.5 kB / 0.6184 GB, free: 17.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.4647, allocations: 41.17 kB / 0.6184 GB, free: 17.04 MB / 462.1 MB Notification: Performance of pre-optimization done (n=33): time 1.552e-06/0.4647, allocations: 0 / 0.6184 GB, free: 17.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=33): time 0.001111/0.4658, allocations: 0.553 MB / 0.619 GB, free: 16.78 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/0.4659, allocations: 59.28 kB / 0.619 GB, free: 16.71 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009056/0.4668, allocations: 0.9018 MB / 0.6199 GB, free: 16.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.4669, allocations: 54.2 kB / 0.62 GB, free: 16.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/0.4673, allocations: 0.5339 MB / 0.6205 GB, free: 15.72 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.541e-05/0.4673, allocations: 123.7 kB / 0.6206 GB, free: 15.61 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.331e-05/0.4674, allocations: 59.56 kB / 0.6207 GB, free: 15.57 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.879e-05/0.4675, allocations: 330.8 kB / 0.621 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.4679, allocations: 197.7 kB / 0.6212 GB, free: 15.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.4691, allocations: 1.16 MB / 0.6223 GB, free: 13.93 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008155/0.4699, allocations: 468.2 kB / 0.6228 GB, free: 13.67 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4699, allocations: 0 / 0.6228 GB, free: 13.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001265/0.4712, allocations: 0.6641 MB / 0.6234 GB, free: 13.36 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.951e-05/0.4713, allocations: 147.8 kB / 0.6235 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.4713, allocations: 2.281 kB / 0.6235 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.4713, allocations: 5.562 kB / 0.6235 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/0.4727, allocations: 244 kB / 0.6238 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.4742, allocations: 2.957 MB / 0.6267 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003314/0.4775, allocations: 0.7543 MB / 0.6274 GB, free: 9.777 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.431e-05/0.4776, allocations: 24.48 kB / 0.6274 GB, free: 9.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.4776, allocations: 6.094 kB / 0.6274 GB, free: 9.77 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009386/0.4786, allocations: 0.5036 MB / 0.6279 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.4786, allocations: 3.156 kB / 0.6279 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.601e-06/0.4786, allocations: 3.344 kB / 0.6279 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006275/0.4792, allocations: 159.8 kB / 0.6281 GB, free: 9.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.4793, allocations: 10.77 kB / 0.6281 GB, free: 9.496 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003181/0.4825, allocations: 0.7351 MB / 0.6288 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.75e-05/0.4825, allocations: 25.45 kB / 0.6288 GB, free: 9.164 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005585/0.4831, allocations: 337.2 kB / 0.6292 GB, free: 8.891 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001415/0.4832, allocations: 94.97 kB / 0.6292 GB, free: 8.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.4844, allocations: 0.5325 MB / 0.6298 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.4844, allocations: 8.625 kB / 0.6298 GB, free: 8.539 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4844, allocations: 4 kB / 0.6298 GB, free: 8.535 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4844, allocations: 1.375 kB / 0.6298 GB, free: 8.535 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/0.4863, allocations: 1.264 MB / 0.631 GB, free: 7.637 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.4863, allocations: 1.375 kB / 0.631 GB, free: 7.637 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/0.4868, allocations: 119.8 kB / 0.6311 GB, free: 7.605 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.4868, allocations: 1.125 kB / 0.6311 GB, free: 7.605 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.4868, allocations: 9.406 kB / 0.6311 GB, free: 7.602 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/0.4881, allocations: 2.948 MB / 0.634 GB, free: 4.605 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4881, allocations: 3.281 kB / 0.634 GB, free: 4.605 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000784/0.4889, allocations: 0.5851 MB / 0.6346 GB, free: 4.227 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.4892, allocations: 222.2 kB / 0.6348 GB, free: 4.023 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.315e-05/0.4893, allocations: 7.094 kB / 0.6348 GB, free: 4.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005307/0.4898, allocations: 65.44 kB / 0.6349 GB, free: 3.988 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.4899, allocations: 27.89 kB / 0.6349 GB, free: 3.973 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.4899, allocations: 13.94 kB / 0.6349 GB, free: 3.969 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007044/0.4906, allocations: 0.6159 MB / 0.6355 GB, free: 3.613 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4907, allocations: 0 / 0.6355 GB, free: 3.613 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001367/0.492, allocations: 0.5419 MB / 0.636 GB, free: 3.496 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001569/0.4936, allocations: 1.338 MB / 0.6374 GB, free: 2.508 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.4962, allocations: 0.8605 MB / 0.6382 GB, free: 1.965 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.4962, allocations: 0 / 0.6382 GB, free: 1.965 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006922/0.4969, allocations: 244 kB / 0.6384 GB, free: 1.727 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003161/0.5001, allocations: 488.7 kB / 0.6389 GB, free: 1.258 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009899/0.51, allocations: 7.28 MB / 0.646 GB, free: 9.691 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005167/0.5105, allocations: 1.029 MB / 0.647 GB, free: 8.629 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009264/0.5115, allocations: 225.7 kB / 0.6472 GB, free: 8.406 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/0.5119, allocations: 359.3 kB / 0.6476 GB, free: 8.055 MB / 478.1 MB Notification: Performance of SimCode: time 4.2e-07/0.5119, allocations: 0 / 0.6476 GB, free: 8.055 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05565/0.5675, allocations: 32.48 MB / 0.6793 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.5678, allocations: 285.8 kB / 0.6796 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.13, allocations: 3.625 kB / 0.6796 GB, free: 7.805 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValves.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1)