Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.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.Sensors.Examples.TemperatureDryBulb,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TemperatureDryBulb",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TemperatureDryBulb,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_TemperatureDryBulb",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.001103/0.001103, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 194.1 kB / 16.53 MB, free: 6.664 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.253/1.253, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.4/2.4, allocations: 461.9 MB / 0.7347 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 66.14 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2479, allocations: 157.4 MB / 1.053 GB, free: 8.336 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TemperatureDryBulb): time 0.1579/0.4058, allocations: 181.8 MB / 1.23 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.004956/0.4108, allocations: 4.46 MB / 1.235 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002744/0.4111, allocations: 19.88 kB / 1.235 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005114/0.4116, allocations: 242.1 kB / 1.235 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001374/0.4131, allocations: 0.758 MB / 1.236 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002591/0.4157, allocations: 1.502 MB / 1.237 GB, free: 10.87 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0009913/0.4167, allocations: 1.254 MB / 1.238 GB, free: 9.613 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004887/0.4172, allocations: 457.3 kB / 1.239 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000688/0.4179, allocations: 0.576 MB / 1.239 GB, free: 8.586 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003961/0.4183, allocations: 410.3 kB / 1.24 GB, free: 8.184 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 6.92e-05/0.4183, allocations: 44 kB / 1.24 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/0.4202, allocations: 1.547 MB / 1.241 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001593/0.4204, allocations: 191.4 kB / 1.242 GB, free: 6.402 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002462/0.4207, allocations: 302.5 kB / 1.242 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001337/0.422, allocations: 1.29 MB / 1.243 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.422, allocations: 3.984 kB / 1.243 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.052e-06/0.422, allocations: 0 / 1.243 GB, free: 4.809 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.422, allocations: 4 kB / 1.243 GB, free: 4.805 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001425/0.4235, allocations: 1.01 MB / 1.244 GB, free: 3.734 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.251e-05/0.4235, allocations: 8.625 kB / 1.244 GB, free: 3.727 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.515e-05/0.4236, allocations: 82.52 kB / 1.244 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/0.4254, allocations: 286.9 kB / 1.244 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005801/0.426, allocations: 445.4 kB / 1.245 GB, free: 2.879 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.561e-05/0.426, allocations: 32.94 kB / 1.245 GB, free: 2.844 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.917e-05/0.4261, allocations: 47.98 kB / 1.245 GB, free: 2.797 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008632/0.4269, allocations: 0.5468 MB / 1.246 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.427, allocations: 0 / 1.246 GB, free: 2.219 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.911e-05/0.427, allocations: 19.94 kB / 1.246 GB, free: 2.199 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.427, allocations: 8 kB / 1.246 GB, free: 2.191 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009407/0.428, allocations: 463.5 kB / 1.246 GB, free: 1.738 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.4132/0.8412, allocations: 2.118 MB / 1.248 GB, free: 196 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009801/0.8422, allocations: 409.5 kB / 1.248 GB, free: 196 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004853/0.8427, allocations: 228.7 kB / 1.249 GB, free: 196 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006507/0.8433, allocations: 396.2 kB / 1.249 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000641/0.844, allocations: 294.4 kB / 1.249 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=37): time 2.504e-06/0.844, allocations: 0 / 1.249 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=37): time 0.001647/0.8457, allocations: 0.687 MB / 1.25 GB, free: 195.6 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.228e-05/0.8457, allocations: 63.53 kB / 1.25 GB, free: 195.5 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.8462, allocations: 497.2 kB / 1.251 GB, free: 195.4 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.667e-05/0.8463, allocations: 36.95 kB / 1.251 GB, free: 195.3 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001422/0.8464, allocations: 265.9 kB / 1.251 GB, free: 195.2 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.216e-05/0.8465, allocations: 122.3 kB / 1.251 GB, free: 195.2 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001407/0.8467, allocations: 90.44 kB / 1.251 GB, free: 195.1 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.739e-05/0.8467, allocations: 369.1 kB / 1.251 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004394/0.8472, allocations: 195.5 kB / 1.252 GB, free: 194.8 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004898/0.8477, allocations: 314.8 kB / 1.252 GB, free: 194.7 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008346/0.8485, allocations: 0.5402 MB / 1.252 GB, free: 194.6 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.8485, allocations: 2.531 kB / 1.252 GB, free: 194.6 MB / 0.9981 GB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001051/0.8496, allocations: 0.6414 MB / 1.253 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.8496, allocations: 73.17 kB / 1.253 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.8496, allocations: 2.656 kB / 1.253 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.8497, allocations: 9.406 kB / 1.253 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/0.8501, allocations: 98.97 kB / 1.253 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.689e-06/0.8501, allocations: 8.875 kB / 1.253 GB, free: 194.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004669/0.8506, allocations: 70.39 kB / 1.253 GB, free: 194.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.563e-05/0.8506, allocations: 25 kB / 1.253 GB, free: 194.3 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (m_flow2.count,$PRE.m_flow2.count,m_flow2.T_start,$PRE.m_flow2.T_start,m_flow1.count,$PRE.m_flow1.count,m_flow1.T_start,$PRE.m_flow1.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 2 * 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.0001693/0.8508, allocations: 197.1 kB / 1.253 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.047e-05/0.8509, allocations: 55.81 kB / 1.254 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.8519, allocations: 0.5297 MB / 1.254 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.8519, allocations: 4.969 kB / 1.254 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.8519, allocations: 4.219 kB / 1.254 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.8519, allocations: 4.578 kB / 1.254 GB, free: 194.1 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.8537, allocations: 1.342 MB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.8537, allocations: 8.281 kB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.8541, allocations: 71.31 kB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.8541, allocations: 5.656 kB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.8542, allocations: 12.2 kB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.8542, allocations: 12.09 kB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/0.8542, allocations: 3.406 kB / 1.255 GB, free: 193.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.8556, allocations: 0.9333 MB / 1.256 GB, free: 193.4 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.8558, allocations: 180.9 kB / 1.257 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.561e-05/0.8558, allocations: 11.92 kB / 1.257 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004135/0.8563, allocations: 40.05 kB / 1.257 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.8564, allocations: 48.86 kB / 1.257 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.8564, allocations: 23.19 kB / 1.257 GB, free: 193.2 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003219/0.8567, allocations: 341.4 kB / 1.257 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.11e-07/0.8567, allocations: 3.062 kB / 1.257 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004777/0.8572, allocations: 150.7 kB / 1.257 GB, free: 193.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 (temDyn.T,temDynLoss.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,m_flow1.T_start,m_flow1.count,m_flow2.T_start,m_flow2.count) * Number of discrete states: 2 (m_flow2.count,m_flow1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001831/0.8591, allocations: 1.577 MB / 1.259 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001014/0.8601, allocations: 0.6017 MB / 1.259 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8601, allocations: 0 / 1.259 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005631/0.8607, allocations: 291.6 kB / 1.26 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.8619, allocations: 285.5 kB / 1.26 GB, free: 192.1 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.8682, allocations: 5.113 MB / 1.265 GB, free: 189.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/0.8685, allocations: 0.8671 MB / 1.266 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005058/0.869, allocations: 128.3 kB / 1.266 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002358/0.8692, allocations: 173.9 kB / 1.266 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of SimCode: time 4.41e-07/0.8693, allocations: 4 kB / 1.266 GB, free: 189.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.632/4.501, allocations: 15.7 MB / 1.281 GB, free: 184.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.754/14.25, allocations: 13.92 kB / 1.281 GB, free: 184.5 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_TemperatureDryBulb_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_TemperatureDryBulb.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_TemperatureDryBulb.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.TemperatureDryBulb.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches