Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_10_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.006225/0.006225, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001317/0.001317, allocations: 199.1 kB / 16.68 MB, free: 5.93 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.5/2.5, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002216/0.002216, allocations: 64.36 kB / 1.018 GB, free: 9.879 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.883/0.8852, allocations: 151.6 MB / 1.166 GB, free: 3.855 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1118/0.997, allocations: 112.7 MB / 1.276 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03065/1.028, allocations: 20.23 MB / 1.296 GB, free: 14.54 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004901/1.033, allocations: 107.3 kB / 1.296 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.00456/1.037, allocations: 1.312 MB / 1.297 GB, free: 13.11 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.01443/1.052, allocations: 3.873 MB / 1.301 GB, free: 9.223 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.008862/1.061, allocations: 3.132 MB / 1.304 GB, free: 6.129 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01072/1.071, allocations: 7.228 MB / 1.311 GB, free: 14.88 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004753/1.076, allocations: 2.583 MB / 1.314 GB, free: 12.23 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007461/1.084, allocations: 2.886 MB / 1.317 GB, free: 9.348 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004124/1.088, allocations: 2.139 MB / 1.319 GB, free: 7.199 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0009615/1.089, allocations: 252 kB / 1.319 GB, free: 6.953 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004654/1.093, allocations: 1.646 MB / 1.32 GB, free: 5.305 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.00122/1.095, allocations: 0.6889 MB / 1.321 GB, free: 4.613 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.003074/1.098, allocations: 1.516 MB / 1.323 GB, free: 3.09 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.007873/1.106, allocations: 4.393 MB / 1.327 GB, free: 14.68 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/1.106, allocations: 0 / 1.327 GB, free: 14.68 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.864e-06/1.106, allocations: 4 kB / 1.327 GB, free: 14.68 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001549/1.106, allocations: 0 / 1.327 GB, free: 14.68 MB / 1.061 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.008201/1.114, allocations: 3.222 MB / 1.33 GB, free: 11.39 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/1.114, allocations: 12.62 kB / 1.33 GB, free: 11.38 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005936/1.115, allocations: 219.7 kB / 1.33 GB, free: 11.15 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/1.116, allocations: 328.4 kB / 1.331 GB, free: 10.83 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004761/1.121, allocations: 2.194 MB / 1.333 GB, free: 8.562 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000121/1.121, allocations: 123 kB / 1.333 GB, free: 8.441 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004341/1.121, allocations: 176 kB / 1.333 GB, free: 8.27 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003521/1.125, allocations: 1.608 MB / 1.335 GB, free: 6.598 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.818e-05/1.125, allocations: 7.906 kB / 1.335 GB, free: 6.59 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001732/1.125, allocations: 64 kB / 1.335 GB, free: 6.527 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-05/1.125, allocations: 43.94 kB / 1.335 GB, free: 6.484 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002356/1.128, allocations: 1.147 MB / 1.336 GB, free: 5.332 MB / 1.061 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.01223/1.14, allocations: 7.908 MB / 1.344 GB, free: 12.91 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008302/1.141, allocations: 485.9 kB / 1.344 GB, free: 12.43 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005003/1.141, allocations: 323 kB / 1.344 GB, free: 12.11 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006367/1.142, allocations: 0.7563 MB / 1.345 GB, free: 11.19 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.903e-05/1.142, allocations: 43.06 kB / 1.345 GB, free: 11.14 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.996e-06/1.142, allocations: 0 / 1.345 GB, free: 11.14 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002201/1.144, allocations: 0.9882 MB / 1.346 GB, free: 10.14 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/1.144, allocations: 59.97 kB / 1.346 GB, free: 10.07 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003765/1.148, allocations: 2.339 MB / 1.348 GB, free: 7.723 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001647/1.148, allocations: 49.7 kB / 1.348 GB, free: 7.668 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001127/1.149, allocations: 1.146 MB / 1.35 GB, free: 6.512 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002508/1.15, allocations: 216.9 kB / 1.35 GB, free: 6.297 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004521/1.15, allocations: 258.6 kB / 1.35 GB, free: 6.035 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001489/1.15, allocations: 349.9 kB / 1.35 GB, free: 5.688 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006743/1.151, allocations: 357.9 kB / 1.351 GB, free: 5.336 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/1.152, allocations: 0.7502 MB / 1.351 GB, free: 4.43 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/1.153, allocations: 0.9785 MB / 1.352 GB, free: 3.336 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.719e-06/1.153, allocations: 3.938 kB / 1.352 GB, free: 3.332 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002477/1.156, allocations: 1.291 MB / 1.354 GB, free: 2.031 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/1.156, allocations: 8 kB / 1.354 GB, free: 2.023 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/1.156, allocations: 12 kB / 1.354 GB, free: 2.012 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.376e-05/1.156, allocations: 12 kB / 1.354 GB, free: 2 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009782/1.157, allocations: 247.6 kB / 1.354 GB, free: 1.758 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.049e-05/1.157, allocations: 23.92 kB / 1.354 GB, free: 1.734 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/1.159, allocations: 166.8 kB / 1.354 GB, free: 1.57 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/1.159, allocations: 47.98 kB / 1.354 GB, free: 1.523 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001286/1.16, allocations: 0.7641 MB / 1.355 GB, free: 0.7539 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009427/1.161, allocations: 0.7348 MB / 1.356 GB, free: 15.86 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001345/1.162, allocations: 0.9563 MB / 1.357 GB, free: 14.79 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.025e-06/1.162, allocations: 0 / 1.357 GB, free: 14.79 MB / 1.092 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002329/1.165, allocations: 1.269 MB / 1.358 GB, free: 13.51 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/1.165, allocations: 8 kB / 1.358 GB, free: 13.5 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/1.165, allocations: 11.94 kB / 1.358 GB, free: 13.49 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/1.165, allocations: 16 kB / 1.358 GB, free: 13.48 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008618/1.166, allocations: 248.2 kB / 1.358 GB, free: 13.23 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.209e-05/1.166, allocations: 19.92 kB / 1.358 GB, free: 13.21 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/1.167, allocations: 131.1 kB / 1.358 GB, free: 13.09 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/1.167, allocations: 47.98 kB / 1.358 GB, free: 13.04 MB / 1.092 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.0003059/1.168, allocations: 251.9 kB / 1.359 GB, free: 12.79 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005452/1.168, allocations: 233.1 kB / 1.359 GB, free: 12.55 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001749/1.17, allocations: 0.8896 MB / 1.36 GB, free: 11.64 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/1.17, allocations: 8 kB / 1.36 GB, free: 11.64 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/1.17, allocations: 0 / 1.36 GB, free: 11.64 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009825/1.171, allocations: 0.6853 MB / 1.36 GB, free: 10.92 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004251/1.175, allocations: 2.586 MB / 1.363 GB, free: 8.262 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/1.175, allocations: 0 / 1.363 GB, free: 8.262 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/1.176, allocations: 135.9 kB / 1.363 GB, free: 8.129 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.255e-05/1.176, allocations: 4 kB / 1.363 GB, free: 8.125 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-05/1.176, allocations: 12 kB / 1.363 GB, free: 8.113 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.215e-06/1.176, allocations: 4 kB / 1.363 GB, free: 8.109 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/1.176, allocations: 0 / 1.363 GB, free: 8.109 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002301/1.178, allocations: 1.317 MB / 1.364 GB, free: 6.762 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009713/1.179, allocations: 417.9 kB / 1.365 GB, free: 6.332 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005285/1.18, allocations: 15.94 kB / 1.365 GB, free: 6.316 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/1.181, allocations: 43.94 kB / 1.365 GB, free: 6.273 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/1.181, allocations: 48.44 kB / 1.365 GB, free: 6.223 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-05/1.181, allocations: 35.98 kB / 1.365 GB, free: 6.188 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002638/1.184, allocations: 1.566 MB / 1.366 GB, free: 4.617 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.4e-07/1.184, allocations: 0 / 1.366 GB, free: 4.617 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003393/1.187, allocations: 1.111 MB / 1.367 GB, free: 3.504 MB / 1.092 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.004441/1.192, allocations: 2.52 MB / 1.37 GB, free: 1.055 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002898/1.194, allocations: 1.355 MB / 1.371 GB, free: 15.7 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.194, allocations: 0 / 1.371 GB, free: 15.7 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.0005489/1.195, allocations: 331 kB / 1.371 GB, free: 15.38 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005941/1.201, allocations: 1.393 MB / 1.373 GB, free: 14.02 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/1.227, allocations: 14.89 MB / 1.387 GB, free: 14.66 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001459/1.228, allocations: 1.594 MB / 1.389 GB, free: 13.04 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.002135/1.23, allocations: 498.7 kB / 1.389 GB, free: 12.54 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/1.232, allocations: 0.964 MB / 1.39 GB, free: 11.58 MB / 1.123 GB Notification: Performance of SimCode: time 4.81e-07/1.232, allocations: 0 / 1.39 GB, free: 11.58 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1115/1.343, allocations: 64.29 MB / 1.453 GB, free: 11.89 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/13.63, allocations: 24.97 kB / 1.453 GB, free: 11.88 MB / 1.186 GB (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches