Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Sensors.Examples.Velocity,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.Velocity,fileNamePrefix="Buildings_9_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.001128/0.001128, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00121/0.001211, allocations: 187.9 kB / 16.25 MB, free: 6.645 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.339/1.339, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.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.144/2.144, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.91 kB / 0.8122 GB, free: 14.69 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4898/0.491, allocations: 140.4 MB / 0.9492 GB, free: 9.043 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.1515/0.6426, allocations: 165.1 MB / 1.111 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.00243/0.645, allocations: 1.547 MB / 1.112 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000337/0.6454, allocations: 7.938 kB / 1.112 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0004556/0.6459, allocations: 127.2 kB / 1.112 GB, free: 10.66 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.00151/0.6474, allocations: 0.6769 MB / 1.113 GB, free: 9.977 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.6488, allocations: 0.5564 MB / 1.113 GB, free: 9.422 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.0008168/0.6496, allocations: 0.7215 MB / 1.114 GB, free: 8.695 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.65, allocations: 229 kB / 1.114 GB, free: 8.469 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006337/0.6506, allocations: 342.7 kB / 1.115 GB, free: 8.133 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003085/0.6509, allocations: 239.1 kB / 1.115 GB, free: 7.898 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.651, allocations: 27.94 kB / 1.115 GB, free: 7.871 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001213/0.6522, allocations: 0.8961 MB / 1.116 GB, free: 6.973 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.6523, allocations: 115.6 kB / 1.116 GB, free: 6.859 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0001701/0.6525, allocations: 171.2 kB / 1.116 GB, free: 6.691 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.6536, allocations: 0.7791 MB / 1.117 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6536, allocations: 0 / 1.117 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6536, allocations: 0 / 1.117 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 9.027e-06/0.6536, allocations: 0 / 1.117 GB, free: 5.91 MB / 0.8731 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.0009261/0.6545, allocations: 0.6622 MB / 1.117 GB, free: 5.199 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.6546, allocations: 12.03 kB / 1.117 GB, free: 5.188 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.88e-05/0.6547, allocations: 66.53 kB / 1.117 GB, free: 5.113 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.6558, allocations: 155.4 kB / 1.118 GB, free: 4.961 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.6562, allocations: 310.6 kB / 1.118 GB, free: 4.621 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.6562, allocations: 20.5 kB / 1.118 GB, free: 4.598 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.6562, allocations: 27.94 kB / 1.118 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004651/0.6567, allocations: 285.9 kB / 1.118 GB, free: 4.27 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.6567, allocations: 0 / 1.118 GB, free: 4.27 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.267e-05/0.6568, allocations: 8 kB / 1.118 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.6568, allocations: 8 kB / 1.118 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.6572, allocations: 200.7 kB / 1.118 GB, free: 4.059 MB / 0.8731 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.001303/0.6585, allocations: 1.23 MB / 1.12 GB, free: 2.723 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.6588, allocations: 150.5 kB / 1.12 GB, free: 2.566 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.6589, allocations: 98.83 kB / 1.12 GB, free: 2.469 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005669/0.6595, allocations: 303.2 kB / 1.12 GB, free: 2.117 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.6596, allocations: 38.5 kB / 1.12 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=17): time 1.283e-06/0.6596, allocations: 0 / 1.12 GB, free: 2.07 MB / 0.8731 GB Notification: Performance of matching and sorting (n=17): time 0.0007196/0.6603, allocations: 293.4 kB / 1.12 GB, free: 1.777 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.14e-05/0.6603, allocations: 59.34 kB / 1.121 GB, free: 1.707 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.6606, allocations: 324.5 kB / 1.121 GB, free: 1.383 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.158e-05/0.6607, allocations: 25.7 kB / 1.121 GB, free: 1.352 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.6608, allocations: 188.2 kB / 1.121 GB, free: 1.164 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.6608, allocations: 59.11 kB / 1.121 GB, free: 1.105 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.285e-05/0.6609, allocations: 45.7 kB / 1.121 GB, free: 1.055 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000112/0.6611, allocations: 338.8 kB / 1.121 GB, free: 0.7148 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.6612, allocations: 75.94 kB / 1.122 GB, free: 0.6406 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001971/0.6614, allocations: 124.9 kB / 1.122 GB, free: 0.5 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003294/0.6618, allocations: 199.3 kB / 1.122 GB, free: 296 kB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6618, allocations: 0 / 1.122 GB, free: 296 kB / 0.8731 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004391/0.6622, allocations: 253.1 kB / 1.122 GB, free: 36 kB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.6623, allocations: 12 kB / 1.122 GB, free: 24 kB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.6623, allocations: 0 / 1.122 GB, free: 24 kB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.6623, allocations: 4 kB / 1.122 GB, free: 20 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002041/0.6625, allocations: 43.97 kB / 1.122 GB, free: 15.97 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.6625, allocations: 11.92 kB / 1.122 GB, free: 15.96 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.6627, allocations: 35.67 kB / 1.122 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.6628, allocations: 8 kB / 1.122 GB, free: 15.92 MB / 0.8887 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.0001349/0.6629, allocations: 157.7 kB / 1.122 GB, free: 15.76 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.28e-05/0.663, allocations: 31.77 kB / 1.122 GB, free: 15.73 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004474/0.6634, allocations: 234.3 kB / 1.123 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.6634, allocations: 4 kB / 1.123 GB, free: 15.49 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.6634, allocations: 3.984 kB / 1.123 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.6634, allocations: 0 / 1.123 GB, free: 15.48 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009688/0.6644, allocations: 0.7106 MB / 1.123 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.6644, allocations: 4.219 kB / 1.123 GB, free: 14.69 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.6646, allocations: 39.92 kB / 1.123 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.6646, allocations: 0 / 1.123 GB, free: 14.65 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/0.6646, allocations: 11.94 kB / 1.123 GB, free: 14.64 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.6646, allocations: 7.984 kB / 1.123 GB, free: 14.63 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.6646, allocations: 4 kB / 1.123 GB, free: 14.63 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006184/0.6653, allocations: 450.6 kB / 1.124 GB, free: 14.15 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.6654, allocations: 116.7 kB / 1.124 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.432e-05/0.6654, allocations: 15.94 kB / 1.124 GB, free: 14 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.6656, allocations: 23.83 kB / 1.124 GB, free: 13.98 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/0.6657, allocations: 23.91 kB / 1.124 GB, free: 13.96 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.6657, allocations: 8 kB / 1.124 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002036/0.6659, allocations: 227 kB / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6659, allocations: 0 / 1.124 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0003607/0.6663, allocations: 80 kB / 1.124 GB, free: 13.65 MB / 0.8887 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.001095/0.6674, allocations: 1.045 MB / 1.125 GB, free: 12.56 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0004084/0.6678, allocations: 189.7 kB / 1.126 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.6678, allocations: 0 / 1.126 GB, free: 12.38 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.668, allocations: 95.81 kB / 1.126 GB, free: 12.29 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008313/0.6689, allocations: 167.6 kB / 1.126 GB, free: 12.12 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003449/0.6723, allocations: 3.104 MB / 1.129 GB, free: 8.879 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.6727, allocations: 0.7795 MB / 1.13 GB, free: 8.07 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002235/0.6729, allocations: 58.94 kB / 1.13 GB, free: 8.012 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.673, allocations: 91.41 kB / 1.13 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of SimCode: time 2e-07/0.673, allocations: 0 / 1.13 GB, free: 7.922 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.363/3.036, allocations: 8.774 MB / 1.138 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/3.037, allocations: 230.7 kB / 1.138 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.466/6.502, allocations: 0 / 1.138 GB, free: 15.1 MB / 0.9044 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_Velocity.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Velocity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches