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.001367/0.001367, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001624/0.001624, allocations: 220.3 kB / 23.05 MB, free: 5.074 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.337/1.337, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.979/2.979, allocations: 0.5003 GB / 0.8061 GB, free: 26.79 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.HeatMeter,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_HeatMeter",fmuType="cs",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.00189/0.00189, allocations: 66.7 kB / 1.171 GB, free: 19.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2884, allocations: 179 MB / 1.345 GB, free: 456 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.02431/0.3127, allocations: 23.82 MB / 1.369 GB, free: 8.531 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.006934/0.3197, allocations: 5.12 MB / 1.374 GB, free: 3.398 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004313/0.3201, allocations: 43.62 kB / 1.374 GB, free: 3.355 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0006532/0.3207, allocations: 278 kB / 1.374 GB, free: 3.082 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.001552/0.3223, allocations: 0.8436 MB / 1.375 GB, free: 2.234 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.001599/0.3239, allocations: 0.8065 MB / 1.376 GB, free: 1.434 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.001729/0.3256, allocations: 1.652 MB / 1.377 GB, free: 15.78 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000523/0.3262, allocations: 390.1 kB / 1.377 GB, free: 15.39 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001466/0.3276, allocations: 0.7472 MB / 1.378 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005977/0.3282, allocations: 474 kB / 1.379 GB, free: 14.18 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 7.044e-05/0.3283, allocations: 44 kB / 1.379 GB, free: 14.14 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008607/0.3291, allocations: 0.5264 MB / 1.379 GB, free: 13.61 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.3293, allocations: 151.4 kB / 1.379 GB, free: 13.46 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0002859/0.3296, allocations: 306.5 kB / 1.38 GB, free: 13.16 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.3307, allocations: 0.9537 MB / 1.381 GB, free: 12.2 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3307, allocations: 0 / 1.381 GB, free: 12.2 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3307, allocations: 0 / 1.381 GB, free: 12.2 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.186e-06/0.3307, allocations: 0 / 1.381 GB, free: 12.2 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.001235/0.332, allocations: 0.8315 MB / 1.381 GB, free: 11.34 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.332, allocations: 12.03 kB / 1.381 GB, free: 11.32 MB / 1.076 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.089e-05/0.332, allocations: 9.188 kB / 1.381 GB, free: 11.32 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.291e-05/0.3321, allocations: 86.69 kB / 1.382 GB, free: 11.22 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.3323, allocations: 64.56 kB / 1.382 GB, free: 11.16 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009369/0.3332, allocations: 0.515 MB / 1.382 GB, free: 10.62 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.3332, allocations: 29 kB / 1.382 GB, free: 10.59 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.363e-05/0.3333, allocations: 40 kB / 1.382 GB, free: 10.55 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006618/0.334, allocations: 436.7 kB / 1.383 GB, free: 10.11 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.334, allocations: 3.938 kB / 1.383 GB, free: 10.11 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.334, allocations: 16 kB / 1.383 GB, free: 10.09 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.334, allocations: 12 kB / 1.383 GB, free: 10.08 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004988/0.3345, allocations: 307.8 kB / 1.383 GB, free: 9.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.002496/0.337, allocations: 1.769 MB / 1.385 GB, free: 7.91 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/0.3375, allocations: 250.6 kB / 1.385 GB, free: 7.656 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.3377, allocations: 112.8 kB / 1.385 GB, free: 7.543 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004595/0.3381, allocations: 112 kB / 1.385 GB, free: 7.434 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.3382, allocations: 38.56 kB / 1.385 GB, free: 7.387 MB / 1.076 GB Notification: Performance of pre-optimization done (n=26): time 1.273e-06/0.3382, allocations: 4 kB / 1.385 GB, free: 7.383 MB / 1.076 GB Notification: Performance of matching and sorting (n=26): time 0.0006769/0.3389, allocations: 377 kB / 1.385 GB, free: 7.008 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.119e-05/0.3389, allocations: 55.41 kB / 1.386 GB, free: 6.941 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005424/0.3394, allocations: 474 kB / 1.386 GB, free: 6.469 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.3395, allocations: 33.7 kB / 1.386 GB, free: 6.43 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.3397, allocations: 260.4 kB / 1.386 GB, free: 6.172 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 8.172e-05/0.3398, allocations: 103.1 kB / 1.386 GB, free: 6.07 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3399, allocations: 77.97 kB / 1.386 GB, free: 5.988 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.34, allocations: 358.8 kB / 1.387 GB, free: 5.629 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001648/0.3402, allocations: 92.61 kB / 1.387 GB, free: 5.539 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.3404, allocations: 172.1 kB / 1.387 GB, free: 5.348 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003906/0.3408, allocations: 274.7 kB / 1.387 GB, free: 5.055 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3408, allocations: 3.938 kB / 1.387 GB, free: 5.051 MB / 1.076 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005703/0.3414, allocations: 377.6 kB / 1.388 GB, free: 4.676 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/0.3414, allocations: 4 kB / 1.388 GB, free: 4.672 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3414, allocations: 4 kB / 1.388 GB, free: 4.668 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3414, allocations: 7.938 kB / 1.388 GB, free: 4.66 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.3417, allocations: 75.89 kB / 1.388 GB, free: 4.586 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.3417, allocations: 4 kB / 1.388 GB, free: 4.582 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.3419, allocations: 31.95 kB / 1.388 GB, free: 4.551 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.3419, allocations: 20 kB / 1.388 GB, free: 4.531 MB / 1.076 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.0001942/0.3421, allocations: 190.3 kB / 1.388 GB, free: 4.336 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.314e-05/0.3422, allocations: 51.67 kB / 1.388 GB, free: 4.285 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007734/0.343, allocations: 484.9 kB / 1.388 GB, free: 3.797 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.343, allocations: 7.938 kB / 1.388 GB, free: 3.789 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.343, allocations: 0 / 1.388 GB, free: 3.789 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006233/0.3436, allocations: 0.5762 MB / 1.389 GB, free: 3.145 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001678/0.3453, allocations: 1.064 MB / 1.39 GB, free: 2.012 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.3453, allocations: 0 / 1.39 GB, free: 2.012 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/0.3455, allocations: 55.91 kB / 1.39 GB, free: 1.957 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3455, allocations: 4 kB / 1.39 GB, free: 1.953 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.3456, allocations: 11.98 kB / 1.39 GB, free: 1.941 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.3456, allocations: 4 kB / 1.39 GB, free: 1.938 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3456, allocations: 192 / 1.39 GB, free: 1.938 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008705/0.3464, allocations: 0.6799 MB / 1.391 GB, free: 1.223 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/0.3466, allocations: 103.5 kB / 1.391 GB, free: 1.121 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.599e-05/0.3467, allocations: 12 kB / 1.391 GB, free: 1.109 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002953/0.347, allocations: 11.94 kB / 1.391 GB, free: 1.098 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.347, allocations: 27.83 kB / 1.391 GB, free: 1.07 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.347, allocations: 19.98 kB / 1.391 GB, free: 1.051 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0004128/0.3475, allocations: 346.9 kB / 1.391 GB, free: 0.7148 MB / 1.076 GB Notification: Performance of sort global known variables: time 7e-08/0.3475, allocations: 0 / 1.391 GB, free: 0.7148 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0005678/0.348, allocations: 203.5 kB / 1.392 GB, free: 0.5156 MB / 1.076 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.001503/0.3495, allocations: 1.386 MB / 1.393 GB, free: 15.09 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0004657/0.35, allocations: 287.9 kB / 1.393 GB, free: 14.8 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.35, allocations: 0 / 1.393 GB, free: 14.8 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0002291/0.3502, allocations: 156.2 kB / 1.393 GB, free: 14.65 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001475/0.3517, allocations: 342.9 kB / 1.394 GB, free: 14.33 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005166/0.3569, allocations: 4.231 MB / 1.398 GB, free: 9.938 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.3573, allocations: 0.8666 MB / 1.399 GB, free: 9.043 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0003237/0.3577, allocations: 128.6 kB / 1.399 GB, free: 8.918 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.3579, allocations: 183.4 kB / 1.399 GB, free: 8.738 MB / 1.092 GB Notification: Performance of SimCode: time 4.91e-07/0.3579, allocations: 0 / 1.399 GB, free: 8.738 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04487/0.4028, allocations: 17.4 MB / 1.416 GB, free: 7.633 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.64, allocations: 11.84 kB / 1.416 GB, free: 7.625 MB / 1.107 GB " [Timeout remaining time 288] (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.822028688970022]