Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData",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.007918/0.007918, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001924/0.001924, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.776/2.776, allocations: 472.7 MB / 0.7453 GB, free: 4.527 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 67.84 kB / 1.069 GB, free: 9.664 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.3012, allocations: 159.9 MB / 1.225 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData): time 0.003143/0.3043, allocations: 1.64 MB / 1.227 GB, free: 7.988 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002353/0.3067, allocations: 1.479 MB / 1.228 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.3068, allocations: 0 / 1.228 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004492/0.3073, allocations: 59.64 kB / 1.228 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.3076, allocations: 55.77 kB / 1.228 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.308, allocations: 111.6 kB / 1.228 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.3082, allocations: 163.6 kB / 1.229 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.015e-05/0.3083, allocations: 16.19 kB / 1.229 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.3084, allocations: 59.78 kB / 1.229 GB, free: 6.043 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.3086, allocations: 65.86 kB / 1.229 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.3087, allocations: 12 kB / 1.229 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.3088, allocations: 67.91 kB / 1.229 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.329e-05/0.3089, allocations: 51.83 kB / 1.229 GB, free: 5.852 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.385e-05/0.309, allocations: 59.67 kB / 1.229 GB, free: 5.793 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.3093, allocations: 199.1 kB / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3093, allocations: 0 / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.903e-06/0.3094, allocations: 0 / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.3094, allocations: 0 / 1.229 GB, free: 5.598 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007145/0.3101, allocations: 486.2 kB / 1.23 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.3101, allocations: 12.03 kB / 1.23 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.3102, allocations: 34.73 kB / 1.23 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.3103, allocations: 16.84 kB / 1.23 GB, free: 5.004 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004433/0.3107, allocations: 265.6 kB / 1.23 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.3107, allocations: 384 / 1.23 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.3108, allocations: 7.938 kB / 1.23 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002455/0.311, allocations: 123.2 kB / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.311, allocations: 0 / 1.23 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.3111, allocations: 4 kB / 1.23 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.3111, allocations: 0 / 1.23 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002324/0.3113, allocations: 139.9 kB / 1.23 GB, free: 4.426 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002686/0.3116, allocations: 245.5 kB / 1.23 GB, free: 4.137 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003717/0.312, allocations: 174.4 kB / 1.231 GB, free: 3.957 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.3121, allocations: 52.83 kB / 1.231 GB, free: 3.902 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.3121, allocations: 4 kB / 1.231 GB, free: 3.898 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.3123, allocations: 110.5 kB / 1.231 GB, free: 3.781 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.3124, allocations: 4 kB / 1.231 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0004932/0.3129, allocations: 221.5 kB / 1.231 GB, free: 3.555 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.3129, allocations: 81.05 kB / 1.231 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.3131, allocations: 206.7 kB / 1.231 GB, free: 3.238 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.531e-05/0.3132, allocations: 37.62 kB / 1.231 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.241e-05/0.3132, allocations: 112.1 kB / 1.231 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.356e-05/0.3133, allocations: 47.62 kB / 1.231 GB, free: 3.035 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.885e-05/0.3134, allocations: 37.72 kB / 1.231 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00011/0.3135, allocations: 330.8 kB / 1.232 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.3136, allocations: 43.98 kB / 1.232 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3137, allocations: 77.72 kB / 1.232 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.314, allocations: 121.7 kB / 1.232 GB, free: 2.41 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.314, allocations: 11.97 kB / 1.232 GB, free: 2.398 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003258/0.3143, allocations: 188.6 kB / 1.232 GB, free: 2.211 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.3143, allocations: 4 kB / 1.232 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3143, allocations: 0 / 1.232 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3144, allocations: 7.984 kB / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.3145, allocations: 31.92 kB / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.3145, allocations: 0 / 1.232 GB, free: 2.168 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.984e-05/0.3146, allocations: 7.953 kB / 1.232 GB, free: 2.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.3146, allocations: 7.984 kB / 1.232 GB, free: 2.152 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001224/0.3147, allocations: 147.7 kB / 1.232 GB, free: 2 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.557e-05/0.3147, allocations: 15.91 kB / 1.232 GB, free: 1.984 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.983e-05/0.3148, allocations: 25.52 kB / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.3148, allocations: 0 / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.3148, allocations: 4 kB / 1.232 GB, free: 1.949 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.3148, allocations: 0 / 1.232 GB, free: 1.949 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.315, allocations: 237.4 kB / 1.233 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3151, allocations: 0 / 1.233 GB, free: 1.668 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.626e-05/0.3151, allocations: 23.92 kB / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3151, allocations: 0 / 1.233 GB, free: 1.645 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.3152, allocations: 12 kB / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3152, allocations: 0 / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3152, allocations: 0 / 1.233 GB, free: 1.633 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003509/0.3155, allocations: 212.9 kB / 1.233 GB, free: 1.406 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.344e-05/0.3156, allocations: 97 kB / 1.233 GB, free: 1.293 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.3156, allocations: 7.938 kB / 1.233 GB, free: 1.285 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.006e-05/0.3157, allocations: 8 kB / 1.233 GB, free: 1.277 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.907e-05/0.3157, allocations: 15.98 kB / 1.233 GB, free: 1.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.3158, allocations: 4 kB / 1.233 GB, free: 1.258 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001404/0.3159, allocations: 156.2 kB / 1.233 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.583e-06/0.3159, allocations: 0 / 1.233 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000266/0.3162, allocations: 43.88 kB / 1.233 GB, free: 1.062 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001545/0.3177, allocations: 1.105 MB / 1.234 GB, free: 108 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000291/0.318, allocations: 123.9 kB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3181, allocations: 0 / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.3182, allocations: 63.86 kB / 1.234 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.3185, allocations: 32.05 kB / 1.235 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.3207, allocations: 1.95 MB / 1.236 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.321, allocations: 0.7202 MB / 1.237 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.3211, allocations: 45.67 kB / 1.237 GB, free: 13.06 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.3212, allocations: 63.41 kB / 1.237 GB, free: 13 MB / 0.9981 GB Notification: Performance of SimCode: time 6.01e-07/0.3212, allocations: 0 / 1.237 GB, free: 13 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0224/0.3436, allocations: 4.696 MB / 1.242 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/8.024, allocations: 14.06 kB / 1.242 GB, free: 8.441 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData_res.csv --start-time 0 --stop-time 603900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 900 Buildings_latest_Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches