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: translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1342,variableFilter="time|combiTimeTable.y.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1342,variableFilter="time|combiTimeTable.y.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007716/0.007716, allocations: 97.86 kB / 15.73 MB, free: 6.055 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.001696/0.001696, allocations: 194.7 kB / 16.67 MB, free: 5.977 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.924/2.924, allocations: 472.6 MB / 0.7453 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 63.91 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.351/0.3524, allocations: 159.9 MB / 1.226 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData): time 0.002934/0.3554, allocations: 1.643 MB / 1.227 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002073/0.3575, allocations: 1.491 MB / 1.229 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.281e-05/0.3576, allocations: 0 / 1.229 GB, free: 5.992 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0004928/0.3581, allocations: 47.77 kB / 1.229 GB, free: 5.945 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001789/0.3583, allocations: 55.7 kB / 1.229 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002758/0.3586, allocations: 111.7 kB / 1.229 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.3588, allocations: 163.6 kB / 1.229 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.651e-05/0.3589, allocations: 20.14 kB / 1.229 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.489e-05/0.359, allocations: 59.77 kB / 1.229 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.3592, allocations: 63.81 kB / 1.229 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.825e-05/0.3592, allocations: 8 kB / 1.229 GB, free: 5.473 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.3593, allocations: 71.95 kB / 1.229 GB, free: 5.402 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.905e-05/0.3594, allocations: 43.84 kB / 1.229 GB, free: 5.359 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.367e-05/0.3595, allocations: 59.59 kB / 1.229 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002825/0.3598, allocations: 203.2 kB / 1.23 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3598, allocations: 3.938 kB / 1.23 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3598, allocations: 4 kB / 1.23 GB, free: 5.094 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.678e-06/0.3598, allocations: 0 / 1.23 GB, free: 5.094 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.0006313/0.3605, allocations: 470.3 kB / 1.23 GB, free: 4.586 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3605, allocations: 8.031 kB / 1.23 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.92e-05/0.3606, allocations: 16.84 kB / 1.23 GB, free: 4.562 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003781/0.3609, allocations: 263.9 kB / 1.23 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.361, allocations: 8.359 kB / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.361, allocations: 12.12 kB / 1.23 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.3612, allocations: 119.3 kB / 1.23 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.3612, allocations: 0 / 1.23 GB, free: 4.117 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.3613, allocations: 8 kB / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.3613, allocations: 0 / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.3615, allocations: 139.9 kB / 1.231 GB, free: 3.973 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002393/0.3618, allocations: 229.5 kB / 1.231 GB, free: 3.699 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/0.3622, allocations: 178.6 kB / 1.231 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.909e-05/0.3623, allocations: 52.78 kB / 1.231 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3623, allocations: 11.92 kB / 1.231 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.3625, allocations: 107.3 kB / 1.231 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 1.423e-06/0.3625, allocations: 0 / 1.231 GB, free: 3.332 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0004836/0.363, allocations: 236.5 kB / 1.231 GB, free: 3.098 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.3631, allocations: 77.11 kB / 1.231 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.3633, allocations: 200.7 kB / 1.232 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.3633, allocations: 29.7 kB / 1.232 GB, free: 2.758 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/0.3634, allocations: 112.2 kB / 1.232 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.3635, allocations: 47.58 kB / 1.232 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.3635, allocations: 33.7 kB / 1.232 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3637, allocations: 330.8 kB / 1.232 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.85e-05/0.3638, allocations: 47.97 kB / 1.232 GB, free: 2.18 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.3639, allocations: 81.58 kB / 1.232 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002046/0.3641, allocations: 121.6 kB / 1.232 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3641, allocations: 0 / 1.232 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003048/0.3644, allocations: 193.4 kB / 1.233 GB, free: 1.773 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.3645, allocations: 18.08 kB / 1.233 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.3645, allocations: 0 / 1.233 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.3645, allocations: 0 / 1.233 GB, free: 1.758 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3646, allocations: 31.98 kB / 1.233 GB, free: 1.727 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.3646, allocations: 4 kB / 1.233 GB, free: 1.723 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.507e-05/0.3647, allocations: 7.953 kB / 1.233 GB, free: 1.715 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.3647, allocations: 4 kB / 1.233 GB, free: 1.711 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.0001215/0.3648, allocations: 145 kB / 1.233 GB, free: 1.562 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.679e-05/0.3649, allocations: 15.91 kB / 1.233 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.901e-05/0.365, allocations: 33.5 kB / 1.233 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.365, allocations: 4 kB / 1.233 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.365, allocations: 0 / 1.233 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.365, allocations: 0 / 1.233 GB, free: 1.504 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.3652, allocations: 237.4 kB / 1.233 GB, free: 1.223 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3652, allocations: 3.984 kB / 1.233 GB, free: 1.219 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-05/0.3653, allocations: 16 kB / 1.233 GB, free: 1.203 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.3653, allocations: 4 kB / 1.233 GB, free: 1.199 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.3653, allocations: 7.984 kB / 1.233 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3653, allocations: 0 / 1.233 GB, free: 1.191 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3653, allocations: 8 kB / 1.233 GB, free: 1.184 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003283/0.3656, allocations: 213.5 kB / 1.233 GB, free: 0.957 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.752e-05/0.3657, allocations: 93 kB / 1.233 GB, free: 0.8477 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.501e-05/0.3657, allocations: 8 kB / 1.233 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.7e-05/0.3658, allocations: 0 / 1.233 GB, free: 0.8398 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.717e-05/0.3658, allocations: 19.92 kB / 1.233 GB, free: 0.8203 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.3659, allocations: 4 kB / 1.233 GB, free: 0.8164 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001414/0.366, allocations: 164.8 kB / 1.234 GB, free: 0.6562 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.71e-07/0.366, allocations: 0 / 1.234 GB, free: 0.6562 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002608/0.3663, allocations: 31.94 kB / 1.234 GB, free: 0.625 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.001096/0.3674, allocations: 456.1 kB / 1.234 GB, free: 352 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002821/0.3677, allocations: 127.9 kB / 1.234 GB, free: 224 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3677, allocations: 0 / 1.234 GB, free: 224 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.3678, allocations: 65.16 kB / 1.234 GB, free: 160 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.3681, allocations: 39.3 kB / 1.234 GB, free: 124 kB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005497/0.3687, allocations: 282.8 kB / 1.235 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.369, allocations: 0.7319 MB / 1.235 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001032/0.3691, allocations: 41.52 kB / 1.235 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.129e-05/0.3692, allocations: 31.42 kB / 1.235 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of SimCode: time 2.31e-07/0.3692, allocations: 0 / 1.235 GB, free: 14.99 MB / 0.9981 GB Notification: Performance of Templates: time 0.005579/0.3747, allocations: 2.539 MB / 1.238 GB, free: 12.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.makefile (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 & ./Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.Data.TestData_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Validation_PlugFlowPipes_Data_TestData.csv","/var/lib/jenkins/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