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: translateModel(Buildings.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity") translateModel(Buildings.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.001206/0.001206, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.471/2.471, allocations: 442.6 MB / 0.7165 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 64.03 kB / 0.8773 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3032, allocations: 153 MB / 1.027 GB, free: 2.102 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Velocity): time 0.7166/1.02, allocations: 167.4 MB / 1.19 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002759/1.023, allocations: 1.569 MB / 1.192 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002531/1.023, allocations: 11.41 kB / 1.192 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.000483/1.023, allocations: 146.9 kB / 1.192 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.001615/1.025, allocations: 0.7014 MB / 1.193 GB, free: 11.61 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.001419/1.027, allocations: 0.6107 MB / 1.193 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007969/1.027, allocations: 0.7155 MB / 1.194 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003553/1.028, allocations: 230.9 kB / 1.194 GB, free: 10.61 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005669/1.028, allocations: 347.6 kB / 1.194 GB, free: 10.42 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002768/1.029, allocations: 229.2 kB / 1.195 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 4.489e-05/1.029, allocations: 23.84 kB / 1.195 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001393/1.03, allocations: 0.8689 MB / 1.196 GB, free: 9.789 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/1.03, allocations: 108.8 kB / 1.196 GB, free: 9.715 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001968/1.03, allocations: 180.3 kB / 1.196 GB, free: 9.602 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001031/1.031, allocations: 0.7254 MB / 1.196 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/1.031, allocations: 0 / 1.196 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.444e-06/1.031, allocations: 1.375 kB / 1.196 GB, free: 9.172 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.823e-06/1.032, allocations: 4 kB / 1.197 GB, free: 9.168 MB / 0.9044 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.0009345/1.032, allocations: 0.6606 MB / 1.197 GB, free: 8.582 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/1.032, allocations: 9.906 kB / 1.197 GB, free: 8.582 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/1.034, allocations: 156.8 kB / 1.197 GB, free: 8.508 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005887/1.034, allocations: 324.4 kB / 1.198 GB, free: 8.211 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/1.034, allocations: 17.72 kB / 1.198 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/1.034, allocations: 27.03 kB / 1.198 GB, free: 8.191 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/1.035, allocations: 288.7 kB / 1.198 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/1.035, allocations: 0 / 1.198 GB, free: 7.996 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/1.035, allocations: 10.44 kB / 1.198 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/1.035, allocations: 5.781 kB / 1.198 GB, free: 7.988 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/1.035, allocations: 202.3 kB / 1.198 GB, free: 7.898 MB / 0.9044 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.001401/1.037, allocations: 1.231 MB / 1.199 GB, free: 6.762 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/1.037, allocations: 148.8 kB / 1.199 GB, free: 6.676 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/1.037, allocations: 94.27 kB / 1.2 GB, free: 6.629 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005438/1.038, allocations: 306.8 kB / 1.2 GB, free: 6.316 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/1.038, allocations: 36.72 kB / 1.2 GB, free: 6.277 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=17): time 1.423e-06/1.038, allocations: 0 / 1.2 GB, free: 6.277 MB / 0.9044 GB Notification: Performance of matching and sorting (n=17): time 0.0007259/1.039, allocations: 294.7 kB / 1.2 GB, free: 6.129 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/1.039, allocations: 54.75 kB / 1.2 GB, free: 6.066 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/1.039, allocations: 324 kB / 1.201 GB, free: 5.852 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/1.039, allocations: 36.3 kB / 1.201 GB, free: 5.812 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/1.039, allocations: 188 kB / 1.201 GB, free: 5.637 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.319e-05/1.039, allocations: 55.2 kB / 1.201 GB, free: 5.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.274e-05/1.039, allocations: 45.61 kB / 1.201 GB, free: 5.555 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001374/1.039, allocations: 350.8 kB / 1.201 GB, free: 5.211 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/1.04, allocations: 64.55 kB / 1.201 GB, free: 5.184 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/1.04, allocations: 123.3 kB / 1.201 GB, free: 5.094 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003351/1.04, allocations: 202 kB / 1.202 GB, free: 4.961 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/1.04, allocations: 0 / 1.202 GB, free: 4.961 MB / 0.9044 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004376/1.041, allocations: 256.4 kB / 1.202 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/1.041, allocations: 4.656 kB / 1.202 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/1.041, allocations: 3.344 kB / 1.202 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/1.041, allocations: 2.375 kB / 1.202 GB, free: 4.824 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002028/1.041, allocations: 50.12 kB / 1.202 GB, free: 4.809 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/1.041, allocations: 2.375 kB / 1.202 GB, free: 4.809 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/1.041, allocations: 34.8 kB / 1.202 GB, free: 4.785 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/1.041, allocations: 11.03 kB / 1.202 GB, free: 4.781 MB / 0.9044 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.0001331/1.041, allocations: 156.2 kB / 1.202 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/1.041, allocations: 30.94 kB / 1.202 GB, free: 4.621 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004514/1.042, allocations: 235.3 kB / 1.202 GB, free: 4.48 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/1.042, allocations: 6.484 kB / 1.202 GB, free: 4.477 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.042, allocations: 0 / 1.202 GB, free: 4.477 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/1.042, allocations: 0 / 1.202 GB, free: 4.477 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/1.043, allocations: 0.7052 MB / 1.203 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/1.043, allocations: 2.969 kB / 1.203 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000166/1.043, allocations: 38.03 kB / 1.203 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/1.043, allocations: 2.594 kB / 1.203 GB, free: 3.871 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/1.043, allocations: 9.969 kB / 1.203 GB, free: 3.867 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/1.043, allocations: 10.97 kB / 1.203 GB, free: 3.859 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.043, allocations: 4.219 kB / 1.203 GB, free: 3.855 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006258/1.044, allocations: 448 kB / 1.204 GB, free: 3.527 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/1.044, allocations: 120.4 kB / 1.204 GB, free: 3.406 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.678e-05/1.044, allocations: 10.77 kB / 1.204 GB, free: 3.398 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/1.044, allocations: 13 kB / 1.204 GB, free: 3.395 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/1.044, allocations: 19.95 kB / 1.204 GB, free: 3.383 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/1.044, allocations: 9 kB / 1.204 GB, free: 3.379 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002013/1.044, allocations: 237.1 kB / 1.204 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.623e-06/1.044, allocations: 0 / 1.204 GB, free: 3.223 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003736/1.045, allocations: 83.03 kB / 1.204 GB, free: 3.211 MB / 0.9044 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.0003616/1.045, allocations: 155.9 kB / 1.204 GB, free: 3.102 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003983/1.045, allocations: 184.8 kB / 1.204 GB, free: 3.023 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.045, allocations: 0 / 1.204 GB, free: 3.023 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001801/1.046, allocations: 95.91 kB / 1.204 GB, free: 2.98 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008103/1.046, allocations: 172.9 kB / 1.205 GB, free: 2.891 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009286/1.047, allocations: 0.6279 MB / 1.205 GB, free: 2.43 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/1.048, allocations: 0.7827 MB / 1.206 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001786/1.048, allocations: 67.05 kB / 1.206 GB, free: 1.656 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.057e-05/1.048, allocations: 29.72 kB / 1.206 GB, free: 1.645 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/1.048, allocations: 0 / 1.206 GB, free: 1.645 MB / 0.9044 GB Notification: Performance of Templates: time 0.01161/1.06, allocations: 5.8 MB / 1.212 GB, free: 14.8 MB / 0.92 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity.makefile (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 & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Velocity -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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