Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_latest_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.00741/0.00741, allocations: 102.1 kB / 15.73 MB, free: 6.492 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.001568/0.001568, allocations: 191.7 kB / 16.67 MB, free: 6.379 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.392/1.392, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.757/2.757, allocations: 461.9 MB / 0.7348 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 63.91 kB / 1.054 GB, free: 7.691 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3276, allocations: 157.4 MB / 1.207 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.767/1.095, allocations: 112.7 MB / 1.317 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.0315/1.126, allocations: 20.25 MB / 1.337 GB, free: 15.76 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004903/1.131, allocations: 108.9 kB / 1.337 GB, free: 15.72 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.004255/1.135, allocations: 1.28 MB / 1.338 GB, free: 14.92 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.01128/1.147, allocations: 3.679 MB / 1.342 GB, free: 12.75 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.008439/1.155, allocations: 3.134 MB / 1.345 GB, free: 11.04 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.01138/1.167, allocations: 7.194 MB / 1.352 GB, free: 7.566 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004412/1.171, allocations: 2.581 MB / 1.355 GB, free: 6.332 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008195/1.179, allocations: 2.895 MB / 1.357 GB, free: 4.766 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005147/1.185, allocations: 2.125 MB / 1.36 GB, free: 3.477 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.00102/1.186, allocations: 254 kB / 1.36 GB, free: 3.477 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006008/1.192, allocations: 1.648 MB / 1.361 GB, free: 2.66 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.001405/1.193, allocations: 0.6873 MB / 1.362 GB, free: 2.121 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.004392/1.197, allocations: 1.512 MB / 1.364 GB, free: 1.09 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.009553/1.207, allocations: 4.392 MB / 1.368 GB, free: 14.04 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/1.207, allocations: 3.938 kB / 1.368 GB, free: 14.03 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.114e-06/1.207, allocations: 1.094 kB / 1.368 GB, free: 14.03 MB / 1.061 GB Notification: Performance of Transformations before backend: time 0.0001501/1.207, allocations: 4 kB / 1.368 GB, free: 14.03 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.007724/1.215, allocations: 3.22 MB / 1.371 GB, free: 11.66 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/1.215, allocations: 10.12 kB / 1.371 GB, free: 11.66 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003181/1.215, allocations: 220.6 kB / 1.371 GB, free: 11.48 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/1.216, allocations: 323.6 kB / 1.371 GB, free: 11.32 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004749/1.221, allocations: 2.205 MB / 1.374 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/1.221, allocations: 123.5 kB / 1.374 GB, free: 9.609 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003008/1.222, allocations: 163.8 kB / 1.374 GB, free: 9.559 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003297/1.225, allocations: 1.615 MB / 1.375 GB, free: 8.551 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.637e-05/1.225, allocations: 9.453 kB / 1.376 GB, free: 8.543 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001454/1.225, allocations: 62.22 kB / 1.376 GB, free: 8.496 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.473e-05/1.225, allocations: 48.03 kB / 1.376 GB, free: 8.488 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002337/1.228, allocations: 1.146 MB / 1.377 GB, free: 7.906 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.0122/1.24, allocations: 7.913 MB / 1.384 GB, free: 1.137 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008528/1.241, allocations: 471.7 kB / 1.385 GB, free: 0.8984 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005228/1.241, allocations: 323 kB / 1.385 GB, free: 0.7344 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006886/1.242, allocations: 0.7572 MB / 1.386 GB, free: 15.86 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.999e-05/1.242, allocations: 51.12 kB / 1.386 GB, free: 15.8 MB / 1.076 GB Notification: Performance of pre-optimization done (n=60): time 2.675e-06/1.242, allocations: 0 / 1.386 GB, free: 15.8 MB / 1.076 GB Notification: Performance of matching and sorting (n=60): time 0.002354/1.244, allocations: 0.98 MB / 1.387 GB, free: 15.31 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/1.244, allocations: 64.12 kB / 1.387 GB, free: 15.24 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003944/1.248, allocations: 2.338 MB / 1.389 GB, free: 14 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.000221/1.249, allocations: 46.45 kB / 1.389 GB, free: 13.96 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001084/1.25, allocations: 1.151 MB / 1.39 GB, free: 12.94 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002981/1.25, allocations: 214.8 kB / 1.391 GB, free: 12.75 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005383/1.251, allocations: 257.2 kB / 1.391 GB, free: 12.6 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001437/1.251, allocations: 346.6 kB / 1.391 GB, free: 12.27 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007058/1.251, allocations: 363.3 kB / 1.392 GB, free: 12.08 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/1.252, allocations: 0.7547 MB / 1.392 GB, free: 11.41 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001547/1.254, allocations: 0.9768 MB / 1.393 GB, free: 10.69 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/1.254, allocations: 2.781 kB / 1.393 GB, free: 10.69 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002812/1.257, allocations: 1.291 MB / 1.395 GB, free: 9.77 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.234e-05/1.257, allocations: 12.16 kB / 1.395 GB, free: 9.758 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/1.257, allocations: 12 kB / 1.395 GB, free: 9.746 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.495e-05/1.257, allocations: 12.14 kB / 1.395 GB, free: 9.734 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009776/1.258, allocations: 251.6 kB / 1.395 GB, free: 9.488 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.211e-05/1.258, allocations: 19.94 kB / 1.395 GB, free: 9.469 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002055/1.26, allocations: 166.3 kB / 1.395 GB, free: 9.305 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001282/1.26, allocations: 55.95 kB / 1.395 GB, free: 9.25 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001509/1.262, allocations: 0.7603 MB / 1.396 GB, free: 8.484 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009255/1.263, allocations: 0.7387 MB / 1.397 GB, free: 7.59 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001316/1.264, allocations: 0.9523 MB / 1.397 GB, free: 6.52 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.454e-06/1.264, allocations: 0 / 1.397 GB, free: 6.52 MB / 1.076 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002518/1.267, allocations: 1.262 MB / 1.399 GB, free: 5.246 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/1.267, allocations: 8 kB / 1.399 GB, free: 5.238 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/1.267, allocations: 8 kB / 1.399 GB, free: 5.23 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/1.267, allocations: 16 kB / 1.399 GB, free: 5.215 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008847/1.268, allocations: 255.6 kB / 1.399 GB, free: 4.965 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/1.268, allocations: 15.94 kB / 1.399 GB, free: 4.949 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/1.269, allocations: 123.3 kB / 1.399 GB, free: 4.828 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/1.27, allocations: 55.98 kB / 1.399 GB, free: 4.773 MB / 1.076 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.0003487/1.27, allocations: 247.8 kB / 1.399 GB, free: 4.523 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008783/1.271, allocations: 233.1 kB / 1.4 GB, free: 4.293 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/1.273, allocations: 0.8896 MB / 1.4 GB, free: 3.391 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/1.273, allocations: 8 kB / 1.4 GB, free: 3.383 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/1.273, allocations: 0 / 1.4 GB, free: 3.383 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009844/1.274, allocations: 0.6814 MB / 1.401 GB, free: 2.672 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005065/1.279, allocations: 2.586 MB / 1.404 GB, free: 8 kB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/1.279, allocations: 4 kB / 1.404 GB, free: 4 kB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/1.28, allocations: 131.7 kB / 1.404 GB, free: 15.88 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/1.28, allocations: 4 kB / 1.404 GB, free: 15.87 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.687e-05/1.28, allocations: 15.98 kB / 1.404 GB, free: 15.86 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/1.28, allocations: 4 kB / 1.404 GB, free: 15.85 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/1.28, allocations: 8.031 kB / 1.404 GB, free: 15.84 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/1.282, allocations: 1.309 MB / 1.405 GB, free: 14.5 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/1.283, allocations: 421.9 kB / 1.406 GB, free: 14.07 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005684/1.284, allocations: 12.23 kB / 1.406 GB, free: 14.06 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/1.285, allocations: 47.89 kB / 1.406 GB, free: 14.01 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/1.285, allocations: 44.44 kB / 1.406 GB, free: 13.97 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-05/1.285, allocations: 39.95 kB / 1.406 GB, free: 13.93 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.002568/1.288, allocations: 1.569 MB / 1.407 GB, free: 12.36 MB / 1.092 GB Notification: Performance of sort global known variables: time 2.81e-07/1.288, allocations: 4 kB / 1.407 GB, free: 12.35 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.003679/1.291, allocations: 1.103 MB / 1.408 GB, free: 11.25 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.004207/1.296, allocations: 2.515 MB / 1.411 GB, free: 8.84 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.002432/1.298, allocations: 1.355 MB / 1.412 GB, free: 7.492 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/1.298, allocations: 0.75 kB / 1.412 GB, free: 7.492 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0005504/1.299, allocations: 335 kB / 1.412 GB, free: 7.164 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006813/1.305, allocations: 1.392 MB / 1.414 GB, free: 5.82 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02597/1.331, allocations: 14.9 MB / 1.428 GB, free: 6.449 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001399/1.333, allocations: 1.594 MB / 1.43 GB, free: 4.824 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.002124/1.335, allocations: 498.7 kB / 1.43 GB, free: 4.332 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/1.336, allocations: 0.9601 MB / 1.431 GB, free: 3.371 MB / 1.107 GB Notification: Performance of SimCode: time 1.123e-06/1.336, allocations: 0 / 1.431 GB, free: 3.371 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1057/1.442, allocations: 65.28 MB / 1.495 GB, free: 2.789 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.56, allocations: 6.281 kB / 1.495 GB, free: 2.785 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches