Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.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.Sensors.Examples.Velocity,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity",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.001428/0.001428, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001622/0.001622, allocations: 191.9 kB / 16.14 MB, free: 6.711 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.303/1.303, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.661/2.661, allocations: 461.9 MB / 0.7342 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 66.23 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2979, allocations: 157.4 MB / 1.052 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1786/0.4765, allocations: 165.2 MB / 1.213 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002801/0.4793, allocations: 1.574 MB / 1.215 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005331/0.4799, allocations: 15.88 kB / 1.215 GB, free: 0.8594 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000619/0.4805, allocations: 119.2 kB / 1.215 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001956/0.4825, allocations: 0.6691 MB / 1.216 GB, free: 72 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001512/0.4841, allocations: 0.5407 MB / 1.216 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001102/0.4852, allocations: 0.9906 MB / 1.217 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.4857, allocations: 197.2 kB / 1.217 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008601/0.4865, allocations: 322.7 kB / 1.218 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.487, allocations: 243 kB / 1.218 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 7.267e-05/0.4871, allocations: 16 kB / 1.218 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001655/0.4887, allocations: 1.013 MB / 1.219 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.4889, allocations: 95.7 kB / 1.219 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.4892, allocations: 175.1 kB / 1.219 GB, free: 12.49 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.4905, allocations: 0.7751 MB / 1.22 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4905, allocations: 0 / 1.22 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.302e-06/0.4905, allocations: 0 / 1.22 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.126e-05/0.4905, allocations: 0 / 1.22 GB, free: 11.71 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001029/0.4916, allocations: 0.6546 MB / 1.221 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.4916, allocations: 15.91 kB / 1.221 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.578e-05/0.4917, allocations: 58.48 kB / 1.221 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/0.4929, allocations: 163.3 kB / 1.221 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004065/0.4933, allocations: 310.7 kB / 1.221 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.4933, allocations: 16.5 kB / 1.221 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.4934, allocations: 27.98 kB / 1.221 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/0.4939, allocations: 289.8 kB / 1.222 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4939, allocations: 0 / 1.222 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.4939, allocations: 8 kB / 1.222 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.4939, allocations: 8 kB / 1.222 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.4944, allocations: 200.9 kB / 1.222 GB, free: 9.867 MB / 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.001353/0.4957, allocations: 1.234 MB / 1.223 GB, free: 8.527 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.496, allocations: 142.5 kB / 1.223 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001825/0.4962, allocations: 98.5 kB / 1.223 GB, free: 8.281 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000643/0.4969, allocations: 303.2 kB / 1.223 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.4969, allocations: 38.55 kB / 1.224 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=17): time 1.493e-06/0.4969, allocations: 0 / 1.224 GB, free: 7.883 MB / 0.9825 GB Notification: Performance of matching and sorting (n=17): time 0.0007627/0.4977, allocations: 301.3 kB / 1.224 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.4977, allocations: 51.41 kB / 1.224 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.4981, allocations: 320.5 kB / 1.224 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.412e-05/0.4981, allocations: 29.7 kB / 1.224 GB, free: 7.16 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.4982, allocations: 184.1 kB / 1.224 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.445e-05/0.4983, allocations: 55.2 kB / 1.224 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.543e-05/0.4983, allocations: 53.61 kB / 1.224 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.4985, allocations: 346.8 kB / 1.225 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.4986, allocations: 63.95 kB / 1.225 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.4989, allocations: 125.1 kB / 1.225 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003558/0.4992, allocations: 200.9 kB / 1.225 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.4992, allocations: 0 / 1.225 GB, free: 6.098 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004633/0.4997, allocations: 251 kB / 1.225 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.4997, allocations: 13.34 kB / 1.225 GB, free: 5.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4997, allocations: 3.984 kB / 1.225 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.4998, allocations: 4 kB / 1.225 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.5, allocations: 47.91 kB / 1.225 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.5, allocations: 3.938 kB / 1.225 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.5002, allocations: 31.83 kB / 1.225 GB, free: 5.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.5002, allocations: 12 kB / 1.226 GB, free: 5.734 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (24): * Single equations (assignments): 24 * 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.000141/0.5004, allocations: 157.7 kB / 1.226 GB, free: 5.57 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.645e-05/0.5005, allocations: 35.61 kB / 1.226 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004747/0.5009, allocations: 228.6 kB / 1.226 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.501, allocations: 4 kB / 1.226 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.501, allocations: 0 / 1.226 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.501, allocations: 0 / 1.226 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.502, allocations: 0.7029 MB / 1.227 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.502, allocations: 224 / 1.227 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.5022, allocations: 43.91 kB / 1.227 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.5022, allocations: 4 kB / 1.227 GB, free: 4.473 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.5022, allocations: 12.03 kB / 1.227 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.5022, allocations: 3.938 kB / 1.227 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.5022, allocations: 4 kB / 1.227 GB, free: 4.453 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006333/0.5029, allocations: 450.3 kB / 1.227 GB, free: 3.977 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.503, allocations: 124.6 kB / 1.227 GB, free: 3.836 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.726e-05/0.503, allocations: 12 kB / 1.227 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.5032, allocations: 19.98 kB / 1.227 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.966e-05/0.5033, allocations: 7.984 kB / 1.227 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.5033, allocations: 8 kB / 1.227 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002099/0.5035, allocations: 231 kB / 1.227 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5035, allocations: 7.938 kB / 1.227 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003783/0.5039, allocations: 83.94 kB / 1.228 GB, free: 3.477 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 1 (senDyn.d) * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.001146/0.5051, allocations: 1.04 MB / 1.229 GB, free: 2.395 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0004109/0.5055, allocations: 183.7 kB / 1.229 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5055, allocations: 0 / 1.229 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.5057, allocations: 95.77 kB / 1.229 GB, free: 2.121 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008593/0.5066, allocations: 169.8 kB / 1.229 GB, free: 1.965 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.5101, allocations: 3.097 MB / 1.232 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004207/0.5106, allocations: 0.7797 MB / 1.233 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002186/0.5108, allocations: 66.92 kB / 1.233 GB, free: 13.85 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.5109, allocations: 95.41 kB / 1.233 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of SimCode: time 3.21e-07/0.5109, allocations: 0 / 1.233 GB, free: 13.75 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.5303, allocations: 8.538 MB / 1.241 GB, free: 5.398 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/0.5306, allocations: 238.2 kB / 1.242 GB, free: 5.141 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.45, allocations: 0 / 1.242 GB, free: 5.141 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_Velocity.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Velocity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches