Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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(Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization",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.0007632/0.0007628, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.004347/0.004347, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.19/1.19, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.467/2.467, allocations: 462.6 MB / 0.7364 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003283/0.0003283, allocations: 12.94 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2394, allocations: 159.6 MB / 1.059 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization): time 0.1262/0.3656, allocations: 151 MB / 1.206 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.03418/0.3999, allocations: 30.16 MB / 1.236 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003876/0.4038, allocations: 123.1 kB / 1.236 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002335/0.4061, allocations: 0.8155 MB / 1.237 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.008113/0.4143, allocations: 2.895 MB / 1.239 GB, free: 11.3 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005557/0.4198, allocations: 2.301 MB / 1.242 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.00657/0.4264, allocations: 7.395 MB / 1.249 GB, free: 1.613 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4524/0.8788, allocations: 1.847 MB / 1.251 GB, free: 43.17 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004664/0.8835, allocations: 2.37 MB / 1.253 GB, free: 43.17 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002082/0.8856, allocations: 1.905 MB / 1.255 GB, free: 43.17 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.8858, allocations: 98.19 kB / 1.255 GB, free: 43.17 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.8873, allocations: 0.9379 MB / 1.256 GB, free: 43.17 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003271/0.8876, allocations: 440.2 kB / 1.256 GB, free: 43.17 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008753/0.8885, allocations: 1.144 MB / 1.257 GB, free: 43.14 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.8912, allocations: 3.13 MB / 1.261 GB, free: 42.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.8912, allocations: 0 / 1.261 GB, free: 42.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8912, allocations: 1.094 kB / 1.261 GB, free: 42.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.784e-05/0.8913, allocations: 0 / 1.261 GB, free: 42.84 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 297 * Number of variables: 297 Notification: Performance of Generate backend data structure: time 0.003378/0.8946, allocations: 2.351 MB / 1.263 GB, free: 41.79 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.8947, allocations: 12.91 kB / 1.263 GB, free: 41.79 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000183/0.8949, allocations: 175.5 kB / 1.263 GB, free: 41.74 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002711/0.8952, allocations: 264.9 kB / 1.263 GB, free: 41.61 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.8968, allocations: 1.444 MB / 1.265 GB, free: 41.09 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.276e-05/0.8969, allocations: 107 kB / 1.265 GB, free: 41.09 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/0.8971, allocations: 137.8 kB / 1.265 GB, free: 41.09 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001766/0.8988, allocations: 1.165 MB / 1.266 GB, free: 41 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/0.8989, allocations: 0 / 1.266 GB, free: 41 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.911e-05/0.899, allocations: 52.47 kB / 1.266 GB, free: 41 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.931e-05/0.899, allocations: 30.8 kB / 1.266 GB, free: 41 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.9008, allocations: 1.02 MB / 1.267 GB, free: 40.99 MB / 0.9981 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.008042/0.9088, allocations: 6.34 MB / 1.273 GB, free: 38.36 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008797/0.9097, allocations: 0.5801 MB / 1.274 GB, free: 38.32 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006395/0.9104, allocations: 386.6 kB / 1.274 GB, free: 38.31 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/0.9106, allocations: 0.5065 MB / 1.275 GB, free: 37.75 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.9107, allocations: 42.5 kB / 1.275 GB, free: 37.71 MB / 0.9981 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001302/0.912, allocations: 333.2 kB / 1.275 GB, free: 37.64 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=58): time 2.144e-06/0.912, allocations: 0 / 1.275 GB, free: 37.64 MB / 0.9981 GB Notification: Performance of matching and sorting (n=58): time 0.001955/0.9139, allocations: 1.137 MB / 1.276 GB, free: 37.49 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.076e-05/0.914, allocations: 60.81 kB / 1.276 GB, free: 37.43 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00207/0.916, allocations: 1.898 MB / 1.278 GB, free: 37.19 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 7.437e-05/0.9161, allocations: 44.61 kB / 1.278 GB, free: 37.16 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005112/0.9166, allocations: 0.919 MB / 1.279 GB, free: 36.89 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.9168, allocations: 204.8 kB / 1.279 GB, free: 36.76 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.9169, allocations: 117.7 kB / 1.279 GB, free: 36.75 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.035e-05/0.917, allocations: 348.2 kB / 1.28 GB, free: 36.44 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006695/0.9177, allocations: 440.7 kB / 1.28 GB, free: 36.44 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008244/0.9185, allocations: 0.6735 MB / 1.281 GB, free: 36.22 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.9198, allocations: 0.9598 MB / 1.282 GB, free: 36.09 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.9199, allocations: 5.375 kB / 1.282 GB, free: 36.09 MB / 0.9981 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001927/0.9218, allocations: 1.387 MB / 1.283 GB, free: 35.94 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.758e-05/0.9219, allocations: 193.3 kB / 1.283 GB, free: 35.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.9219, allocations: 3.219 kB / 1.283 GB, free: 35.73 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.826e-05/0.9219, allocations: 12.88 kB / 1.283 GB, free: 35.73 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.923, allocations: 277.2 kB / 1.284 GB, free: 35.73 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.449e-05/0.923, allocations: 10.56 kB / 1.284 GB, free: 35.73 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.9244, allocations: 150.2 kB / 1.284 GB, free: 35.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.98e-05/0.9245, allocations: 54.91 kB / 1.284 GB, free: 35.71 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.082e-06/0.9245, allocations: 12.09 kB / 1.284 GB, free: 35.7 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001629/0.9261, allocations: 1.126 MB / 1.285 GB, free: 35.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.9261, allocations: 3.25 kB / 1.285 GB, free: 35.67 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.185e-06/0.9262, allocations: 8.812 kB / 1.285 GB, free: 35.67 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009996/0.9272, allocations: 276.6 kB / 1.285 GB, free: 35.67 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.9272, allocations: 11.72 kB / 1.285 GB, free: 35.67 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.9284, allocations: 145 kB / 1.285 GB, free: 35.65 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-05/0.9285, allocations: 55.39 kB / 1.285 GB, free: 35.65 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (144): * Single equations (assignments): 144 * 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.0005121/0.929, allocations: 443.8 kB / 1.286 GB, free: 35.46 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.9292, allocations: 202 kB / 1.286 GB, free: 35.35 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0017/0.9309, allocations: 1.086 MB / 1.287 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.9309, allocations: 7.5 kB / 1.287 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.299e-06/0.931, allocations: 1.062 kB / 1.287 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.931, allocations: 2.578 kB / 1.287 GB, free: 35.25 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.9338, allocations: 2.424 MB / 1.289 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.9339, allocations: 4.75 kB / 1.289 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005148/0.9344, allocations: 142.4 kB / 1.29 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.9344, allocations: 4.531 kB / 1.29 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.9344, allocations: 17.97 kB / 1.29 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.9344, allocations: 5.062 kB / 1.29 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.9344, allocations: 2.312 kB / 1.29 GB, free: 34.85 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.9357, allocations: 1.064 MB / 1.291 GB, free: 34.54 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004028/0.9361, allocations: 383 kB / 1.291 GB, free: 34.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.9363, allocations: 18.94 kB / 1.291 GB, free: 34.32 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008551/0.9371, allocations: 97.45 kB / 1.291 GB, free: 34.31 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.9372, allocations: 50.56 kB / 1.291 GB, free: 34.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.149e-05/0.9373, allocations: 27.48 kB / 1.291 GB, free: 34.3 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001346/0.9386, allocations: 1.258 MB / 1.292 GB, free: 34.16 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9386, allocations: 0 / 1.292 GB, free: 34.16 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001739/0.9404, allocations: 0.8809 MB / 1.293 GB, free: 34.05 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (77): * Single equations (assignments): 74 * 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.001763/0.9421, allocations: 1.856 MB / 1.295 GB, free: 33.18 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002104/0.9443, allocations: 1.58 MB / 1.297 GB, free: 33.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.9443, allocations: 0 / 1.297 GB, free: 33.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004942/0.9448, allocations: 403.9 kB / 1.297 GB, free: 33.16 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005267/0.95, allocations: 1.144 MB / 1.298 GB, free: 33.09 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01797/0.968, allocations: 15.73 MB / 1.313 GB, free: 26.18 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005996/0.9686, allocations: 1.411 MB / 1.315 GB, free: 25.43 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001494/0.9701, allocations: 395.5 kB / 1.315 GB, free: 25.36 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007854/0.9709, allocations: 0.8305 MB / 1.316 GB, free: 25.36 MB / 0.9981 GB Notification: Performance of SimCode: time 3.91e-07/0.9709, allocations: 0 / 1.316 GB, free: 25.36 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.775/5.746, allocations: 53.85 MB / 1.369 GB, free: 9.039 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002932/5.747, allocations: 280.3 kB / 1.369 GB, free: 8.656 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.799/9.546, allocations: 2.25 kB / 1.369 GB, free: 8.656 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Validation_ThreeWayValveParameterization.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Validation.ThreeWayValveParameterization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches