Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 114.3 kB / 18.94 MB, free: 2.957 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 215.8 kB / 22.26 MB, free: 5.113 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.303/1.303, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.918/2.918, allocations: 0.505 GB / 0.8101 GB, free: 22.05 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 67.31 kB / 1.177 GB, free: 17.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2992, allocations: 180.2 MB / 1.353 GB, free: 8.426 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02697/0.3262, allocations: 23.82 MB / 1.376 GB, free: 0.5234 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.00734/0.3335, allocations: 5.124 MB / 1.381 GB, free: 11.39 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007276/0.3343, allocations: 35.69 kB / 1.381 GB, free: 11.35 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.000833/0.3351, allocations: 294 kB / 1.381 GB, free: 11.06 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.3372, allocations: 0.8358 MB / 1.382 GB, free: 10.22 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.001921/0.3391, allocations: 0.8056 MB / 1.383 GB, free: 9.422 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.002195/0.3413, allocations: 1.659 MB / 1.385 GB, free: 7.758 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000708/0.342, allocations: 394.1 kB / 1.385 GB, free: 7.363 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001744/0.3437, allocations: 0.7391 MB / 1.386 GB, free: 6.625 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008298/0.3446, allocations: 477.9 kB / 1.386 GB, free: 6.156 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.3447, allocations: 48 kB / 1.386 GB, free: 6.109 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.3458, allocations: 0.5225 MB / 1.387 GB, free: 5.586 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.3459, allocations: 143.4 kB / 1.387 GB, free: 5.445 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0003829/0.3463, allocations: 310.5 kB / 1.387 GB, free: 5.141 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.3477, allocations: 0.9498 MB / 1.388 GB, free: 4.188 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.3477, allocations: 0 / 1.388 GB, free: 4.188 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3477, allocations: 0 / 1.388 GB, free: 4.188 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.915e-05/0.3477, allocations: 0 / 1.388 GB, free: 4.188 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001388/0.3491, allocations: 0.8431 MB / 1.389 GB, free: 3.312 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.3492, allocations: 12.03 kB / 1.389 GB, free: 3.301 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.274e-05/0.3493, allocations: 74.72 kB / 1.389 GB, free: 3.219 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.3495, allocations: 68.56 kB / 1.389 GB, free: 3.152 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.3505, allocations: 0.5113 MB / 1.39 GB, free: 2.621 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.3505, allocations: 32.98 kB / 1.39 GB, free: 2.59 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.826e-05/0.3506, allocations: 36 kB / 1.39 GB, free: 2.555 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006757/0.3513, allocations: 436.7 kB / 1.39 GB, free: 2.102 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3513, allocations: 4 kB / 1.39 GB, free: 2.098 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.498e-05/0.3513, allocations: 16 kB / 1.39 GB, free: 2.082 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.3514, allocations: 12 kB / 1.39 GB, free: 2.07 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.3519, allocations: 303.8 kB / 1.39 GB, free: 1.777 MB / 1.076 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.002601/0.3545, allocations: 1.78 MB / 1.392 GB, free: 15.89 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004811/0.3549, allocations: 250.6 kB / 1.392 GB, free: 15.64 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001826/0.3551, allocations: 112.7 kB / 1.393 GB, free: 15.53 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004664/0.3556, allocations: 112 kB / 1.393 GB, free: 15.42 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.3556, allocations: 38.56 kB / 1.393 GB, free: 15.37 MB / 1.092 GB Notification: Performance of pre-optimization done (n=26): time 1.202e-06/0.3556, allocations: 0 / 1.393 GB, free: 15.37 MB / 1.092 GB Notification: Performance of matching and sorting (n=26): time 0.0006625/0.3563, allocations: 373 kB / 1.393 GB, free: 15 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.3563, allocations: 55.41 kB / 1.393 GB, free: 14.93 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005641/0.3569, allocations: 478 kB / 1.394 GB, free: 14.46 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 3.97e-05/0.3569, allocations: 29.7 kB / 1.394 GB, free: 14.42 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.3571, allocations: 264.4 kB / 1.394 GB, free: 14.16 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 8.731e-05/0.3572, allocations: 103.1 kB / 1.394 GB, free: 14.06 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.3573, allocations: 69.97 kB / 1.394 GB, free: 13.98 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3575, allocations: 358.8 kB / 1.394 GB, free: 13.62 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.3577, allocations: 100.6 kB / 1.394 GB, free: 13.53 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.3579, allocations: 172 kB / 1.395 GB, free: 13.34 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003978/0.3583, allocations: 270.7 kB / 1.395 GB, free: 13.05 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3583, allocations: 4 kB / 1.395 GB, free: 13.04 MB / 1.092 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005776/0.3589, allocations: 369.6 kB / 1.395 GB, free: 12.68 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3589, allocations: 8 kB / 1.395 GB, free: 12.67 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3589, allocations: 0 / 1.395 GB, free: 12.67 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.942e-05/0.3589, allocations: 7.938 kB / 1.395 GB, free: 12.66 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002619/0.3592, allocations: 76.11 kB / 1.395 GB, free: 12.59 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3592, allocations: 8 kB / 1.395 GB, free: 12.58 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.3594, allocations: 31.73 kB / 1.395 GB, free: 12.55 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.3595, allocations: 19.98 kB / 1.395 GB, free: 12.53 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * 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.0002032/0.3597, allocations: 177.7 kB / 1.395 GB, free: 12.34 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.394e-05/0.3597, allocations: 55.67 kB / 1.396 GB, free: 12.29 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007725/0.3605, allocations: 492.8 kB / 1.396 GB, free: 11.8 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.3605, allocations: 11.92 kB / 1.396 GB, free: 11.79 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3605, allocations: 0 / 1.396 GB, free: 11.79 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005986/0.3611, allocations: 0.5687 MB / 1.397 GB, free: 11.15 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.3628, allocations: 1.068 MB / 1.398 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.3628, allocations: 0 / 1.398 GB, free: 10.02 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002096/0.3631, allocations: 51.92 kB / 1.398 GB, free: 9.965 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.533e-06/0.3631, allocations: 4.188 kB / 1.398 GB, free: 9.961 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.493e-05/0.3631, allocations: 15.98 kB / 1.398 GB, free: 9.945 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.3631, allocations: 7.938 kB / 1.398 GB, free: 9.938 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.3631, allocations: 4 kB / 1.398 GB, free: 9.934 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008818/0.364, allocations: 0.6838 MB / 1.398 GB, free: 9.215 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001917/0.3642, allocations: 95.5 kB / 1.398 GB, free: 9.121 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/0.3642, allocations: 8 kB / 1.398 GB, free: 9.113 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.3645, allocations: 11.98 kB / 1.398 GB, free: 9.102 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.396e-05/0.3645, allocations: 27.91 kB / 1.399 GB, free: 9.074 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.121e-05/0.3646, allocations: 19.92 kB / 1.399 GB, free: 9.055 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.000405/0.365, allocations: 346.9 kB / 1.399 GB, free: 8.719 MB / 1.092 GB Notification: Performance of sort global known variables: time 8e-08/0.365, allocations: 0 / 1.399 GB, free: 8.719 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0006025/0.3656, allocations: 203.5 kB / 1.399 GB, free: 8.52 MB / 1.092 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (32): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001516/0.3671, allocations: 1.386 MB / 1.4 GB, free: 7.09 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0004818/0.3676, allocations: 296.2 kB / 1.401 GB, free: 6.801 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3676, allocations: 0 / 1.401 GB, free: 6.801 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.3678, allocations: 147.8 kB / 1.401 GB, free: 6.656 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.3692, allocations: 347.5 kB / 1.401 GB, free: 6.328 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005502/0.3747, allocations: 4.23 MB / 1.405 GB, free: 1.93 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005002/0.3752, allocations: 0.8705 MB / 1.406 GB, free: 1.031 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0003545/0.3756, allocations: 124.6 kB / 1.406 GB, free: 0.9062 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.3758, allocations: 191.3 kB / 1.406 GB, free: 0.7188 MB / 1.092 GB Notification: Performance of SimCode: time 4.11e-07/0.3758, allocations: 0 / 1.406 GB, free: 0.7188 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05188/0.4277, allocations: 17.36 MB / 1.423 GB, free: 15.64 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.91/11.34, allocations: 7.922 kB / 1.423 GB, free: 15.63 MB / 1.123 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter_fmu --startTime=0 --stopTime=60 --stepSize=0.024 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.294653568882495]