Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.009914/0.009914, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.002121/0.002121, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.266/2.266, allocations: 390.2 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 63.91 kB / 0.9504 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9122/0.9136, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.12/1.034, allocations: 112.7 MB / 1.197 GB, free: 3.621 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03462/1.068, allocations: 20.26 MB / 1.217 GB, free: 3.062 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007282/1.076, allocations: 105.1 kB / 1.217 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.005141/1.081, allocations: 1.276 MB / 1.219 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01417/1.095, allocations: 3.684 MB / 1.222 GB, free: 14.99 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.01027/1.105, allocations: 3.12 MB / 1.225 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01398/1.119, allocations: 7.219 MB / 1.232 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005892/1.125, allocations: 2.565 MB / 1.235 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008515/1.134, allocations: 2.894 MB / 1.238 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004742/1.139, allocations: 2.128 MB / 1.24 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001192/1.14, allocations: 256 kB / 1.24 GB, free: 1.762 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004986/1.145, allocations: 1.642 MB / 1.242 GB, free: 120 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001418/1.146, allocations: 0.6928 MB / 1.242 GB, free: 15.42 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.004068/1.15, allocations: 1.52 MB / 1.244 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.009597/1.16, allocations: 4.393 MB / 1.248 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.16, allocations: 0 / 1.248 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.162e-06/1.16, allocations: 0 / 1.248 GB, free: 9.488 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001667/1.16, allocations: 0 / 1.248 GB, free: 9.488 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.009012/1.169, allocations: 3.226 MB / 1.251 GB, free: 6.195 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/1.169, allocations: 12.03 kB / 1.251 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006096/1.17, allocations: 219.7 kB / 1.251 GB, free: 5.957 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/1.171, allocations: 328.4 kB / 1.252 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005757/1.177, allocations: 2.194 MB / 1.254 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/1.177, allocations: 134.9 kB / 1.254 GB, free: 3.234 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004223/1.177, allocations: 164 kB / 1.254 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003619/1.181, allocations: 1.604 MB / 1.256 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.903e-05/1.181, allocations: 3.984 kB / 1.256 GB, free: 1.402 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/1.181, allocations: 67.98 kB / 1.256 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.626e-05/1.181, allocations: 47.88 kB / 1.256 GB, free: 1.289 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00255/1.184, allocations: 1.147 MB / 1.257 GB, free: 140 kB / 0.9825 GB 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.01416/1.198, allocations: 7.924 MB / 1.265 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009236/1.199, allocations: 473.8 kB / 1.265 GB, free: 7.234 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005281/1.2, allocations: 326.9 kB / 1.265 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006641/1.2, allocations: 0.7524 MB / 1.266 GB, free: 5.996 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.067e-05/1.2, allocations: 47.11 kB / 1.266 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 3.557e-06/1.2, allocations: 0 / 1.266 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002433/1.203, allocations: 0.9842 MB / 1.267 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/1.203, allocations: 63.95 kB / 1.267 GB, free: 4.871 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004019/1.207, allocations: 2.335 MB / 1.27 GB, free: 2.523 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001681/1.207, allocations: 45.7 kB / 1.27 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001072/1.208, allocations: 1.145 MB / 1.271 GB, free: 1.316 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/1.208, allocations: 217 kB / 1.271 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004358/1.209, allocations: 262.5 kB / 1.271 GB, free: 0.8359 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001299/1.209, allocations: 349.9 kB / 1.271 GB, free: 500 kB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006887/1.21, allocations: 365.9 kB / 1.272 GB, free: 132 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009717/1.211, allocations: 0.7463 MB / 1.273 GB, free: 15.22 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/1.212, allocations: 0.9785 MB / 1.274 GB, free: 14.12 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.839e-06/1.212, allocations: 7.938 kB / 1.274 GB, free: 14.12 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002514/1.215, allocations: 1.292 MB / 1.275 GB, free: 12.82 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/1.215, allocations: 8 kB / 1.275 GB, free: 12.81 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/1.215, allocations: 8 kB / 1.275 GB, free: 12.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.213e-05/1.215, allocations: 15.98 kB / 1.275 GB, free: 12.79 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009554/1.216, allocations: 255.6 kB / 1.275 GB, free: 12.54 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.561e-05/1.216, allocations: 15.98 kB / 1.275 GB, free: 12.52 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/1.218, allocations: 174.6 kB / 1.275 GB, free: 12.35 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.961e-05/1.218, allocations: 51.98 kB / 1.275 GB, free: 12.3 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001363/1.219, allocations: 0.7602 MB / 1.276 GB, free: 11.53 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008997/1.22, allocations: 0.7369 MB / 1.277 GB, free: 10.64 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001291/1.221, allocations: 0.9522 MB / 1.278 GB, free: 9.57 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.811e-06/1.221, allocations: 4 kB / 1.278 GB, free: 9.566 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002405/1.224, allocations: 1.258 MB / 1.279 GB, free: 8.301 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.224, allocations: 8 kB / 1.279 GB, free: 8.293 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/1.224, allocations: 8 kB / 1.279 GB, free: 8.285 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/1.224, allocations: 16 kB / 1.279 GB, free: 8.27 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008981/1.225, allocations: 248.3 kB / 1.279 GB, free: 8.027 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.839e-05/1.225, allocations: 27.92 kB / 1.279 GB, free: 8 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001872/1.227, allocations: 123.2 kB / 1.279 GB, free: 7.879 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/1.227, allocations: 51.98 kB / 1.279 GB, free: 7.828 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (141): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003654/1.227, allocations: 251.8 kB / 1.28 GB, free: 7.574 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007896/1.228, allocations: 241 kB / 1.28 GB, free: 7.336 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00193/1.23, allocations: 0.8856 MB / 1.281 GB, free: 6.438 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/1.23, allocations: 8 kB / 1.281 GB, free: 6.43 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/1.23, allocations: 4 kB / 1.281 GB, free: 6.426 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001007/1.231, allocations: 0.6814 MB / 1.281 GB, free: 5.711 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/1.236, allocations: 2.586 MB / 1.284 GB, free: 3.055 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/1.236, allocations: 8.094 kB / 1.284 GB, free: 3.047 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005529/1.236, allocations: 131.8 kB / 1.284 GB, free: 2.918 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-05/1.236, allocations: 4 kB / 1.284 GB, free: 2.914 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.841e-05/1.236, allocations: 15.94 kB / 1.284 GB, free: 2.898 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/1.236, allocations: 4 kB / 1.284 GB, free: 2.895 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/1.236, allocations: 4 kB / 1.284 GB, free: 2.891 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002432/1.239, allocations: 1.321 MB / 1.285 GB, free: 1.539 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/1.24, allocations: 410.3 kB / 1.286 GB, free: 1.117 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004875/1.241, allocations: 16 kB / 1.286 GB, free: 1.102 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/1.242, allocations: 47.84 kB / 1.286 GB, free: 1.055 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/1.242, allocations: 52.42 kB / 1.286 GB, free: 1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-05/1.242, allocations: 31.98 kB / 1.286 GB, free: 0.9688 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002593/1.244, allocations: 1.569 MB / 1.287 GB, free: 15.39 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.81e-07/1.244, allocations: 0 / 1.287 GB, free: 15.39 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003135/1.248, allocations: 1.107 MB / 1.288 GB, free: 14.29 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * 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 (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003977/1.252, allocations: 2.503 MB / 1.291 GB, free: 11.88 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00254/1.254, allocations: 1.366 MB / 1.292 GB, free: 10.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/1.254, allocations: 3.938 kB / 1.292 GB, free: 10.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000527/1.255, allocations: 327 kB / 1.293 GB, free: 10.19 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006481/1.261, allocations: 1.399 MB / 1.294 GB, free: 8.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02529/1.286, allocations: 14.9 MB / 1.309 GB, free: 9.48 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001502/1.288, allocations: 1.59 MB / 1.31 GB, free: 7.855 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.002312/1.29, allocations: 0.4907 MB / 1.311 GB, free: 7.363 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/1.292, allocations: 0.9601 MB / 1.311 GB, free: 6.402 MB / 1.045 GB Notification: Performance of SimCode: time 1.492e-06/1.292, allocations: 0 / 1.311 GB, free: 6.402 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1131/1.405, allocations: 65.26 MB / 1.375 GB, free: 5.902 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/13.71, allocations: 16.73 kB / 1.375 GB, free: 5.891 MB / 1.107 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches