Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances") translateModel(Buildings.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFraSou.V|vol.C.1.|senTraSub.C|senTraSubNoFlorRev.C|senPPM.ppm|masFraVol.V",fileNamePrefix="Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00838/0.00838, allocations: 97.94 kB / 15.73 MB, free: 6.004 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.001632/0.001632, allocations: 193 kB / 16.67 MB, free: 5.934 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.505/1.505, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.714/2.714, allocations: 469.8 MB / 0.7425 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 72.11 kB / 1.065 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9897/0.991, allocations: 159.1 MB / 1.221 GB, free: 2.113 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2307/1.222, allocations: 195.6 MB / 1.412 GB, free: 13.77 MB / 1.139 GB Notification: Performance of NFInst.instExpressions: time 0.01948/1.241, allocations: 14.36 MB / 1.426 GB, free: 15.37 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/1.243, allocations: 35.81 kB / 1.426 GB, free: 15.33 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.002161/1.245, allocations: 0.5124 MB / 1.426 GB, free: 14.82 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.00585/1.251, allocations: 1.968 MB / 1.428 GB, free: 12.84 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.003043/1.254, allocations: 0.8601 MB / 1.429 GB, free: 11.98 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.003935/1.258, allocations: 2.573 MB / 1.431 GB, free: 9.402 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0018/1.26, allocations: 0.9273 MB / 1.432 GB, free: 8.449 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004752/1.264, allocations: 1.637 MB / 1.434 GB, free: 6.824 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/1.266, allocations: 0.9262 MB / 1.435 GB, free: 5.898 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 0.0003501/1.267, allocations: 108 kB / 1.435 GB, free: 5.793 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002755/1.269, allocations: 1.103 MB / 1.436 GB, free: 4.688 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 0.0006977/1.27, allocations: 0.5102 MB / 1.437 GB, free: 4.176 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 0.001384/1.272, allocations: 0.6338 MB / 1.437 GB, free: 3.539 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.003637/1.275, allocations: 1.917 MB / 1.439 GB, free: 1.617 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/1.275, allocations: 0 / 1.439 GB, free: 1.617 MB / 1.154 GB Notification: Performance of FrontEnd: time 2.024e-06/1.275, allocations: 0 / 1.439 GB, free: 1.617 MB / 1.154 GB Notification: Performance of Transformations before backend: time 2.251e-05/1.275, allocations: 0 / 1.439 GB, free: 1.617 MB / 1.154 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002111/1.277, allocations: 1.494 MB / 1.441 GB, free: 72 kB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/1.277, allocations: 8.625 kB / 1.441 GB, free: 64 kB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001359/1.279, allocations: 263 kB / 1.441 GB, free: 15.8 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/1.28, allocations: 0.7967 MB / 1.442 GB, free: 14.96 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.764e-05/1.28, allocations: 70 kB / 1.442 GB, free: 14.9 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/1.28, allocations: 88 kB / 1.442 GB, free: 14.81 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/1.282, allocations: 1.177 MB / 1.443 GB, free: 13.56 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.57e-05/1.282, allocations: 0 / 1.443 GB, free: 13.56 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.513e-05/1.282, allocations: 43.94 kB / 1.443 GB, free: 13.52 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-05/1.282, allocations: 38 kB / 1.443 GB, free: 13.48 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/1.283, allocations: 0.9131 MB / 1.444 GB, free: 12.57 MB / 1.17 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.005464/1.289, allocations: 5.752 MB / 1.449 GB, free: 6.367 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008339/1.29, allocations: 0.5197 MB / 1.45 GB, free: 5.836 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004171/1.29, allocations: 302.5 kB / 1.45 GB, free: 5.535 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006056/1.291, allocations: 303.8 kB / 1.451 GB, free: 5.184 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/1.291, allocations: 47 kB / 1.451 GB, free: 5.129 MB / 1.17 GB Notification: Performance of pre-optimization done (n=49): time 1.733e-06/1.291, allocations: 0 / 1.451 GB, free: 5.129 MB / 1.17 GB Notification: Performance of matching and sorting (n=49): time 0.001536/1.292, allocations: 0.8069 MB / 1.451 GB, free: 4.316 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/1.292, allocations: 55.84 kB / 1.451 GB, free: 4.25 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000887/1.293, allocations: 0.7471 MB / 1.452 GB, free: 3.492 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 5.467e-05/1.293, allocations: 37.7 kB / 1.452 GB, free: 3.449 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/1.294, allocations: 0.5194 MB / 1.453 GB, free: 2.922 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/1.294, allocations: 186.4 kB / 1.453 GB, free: 2.738 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/1.294, allocations: 146.5 kB / 1.453 GB, free: 2.59 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.294, allocations: 337.9 kB / 1.453 GB, free: 2.254 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003766/1.294, allocations: 253.8 kB / 1.454 GB, free: 2.004 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005938/1.295, allocations: 0.5507 MB / 1.454 GB, free: 1.316 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/1.296, allocations: 0.7995 MB / 1.455 GB, free: 420 kB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/1.296, allocations: 0 / 1.455 GB, free: 420 kB / 1.17 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001309/1.297, allocations: 0.8543 MB / 1.456 GB, free: 15.55 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/1.297, allocations: 8 kB / 1.456 GB, free: 15.54 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/1.297, allocations: 8.906 kB / 1.456 GB, free: 15.53 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.831e-05/1.297, allocations: 12 kB / 1.456 GB, free: 15.52 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005668/1.298, allocations: 155.8 kB / 1.456 GB, free: 15.37 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.88e-05/1.298, allocations: 15.94 kB / 1.456 GB, free: 15.35 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007562/1.299, allocations: 95.31 kB / 1.456 GB, free: 15.26 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/1.299, allocations: 32 kB / 1.456 GB, free: 15.23 MB / 1.186 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * 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.0004792/1.299, allocations: 333.4 kB / 1.456 GB, free: 14.89 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/1.299, allocations: 91.44 kB / 1.456 GB, free: 14.8 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009983/1.3, allocations: 0.6219 MB / 1.457 GB, free: 14.17 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/1.3, allocations: 7.984 kB / 1.457 GB, free: 14.16 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/1.3, allocations: 0 / 1.457 GB, free: 14.16 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007013/1.301, allocations: 0.525 MB / 1.458 GB, free: 13.62 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/1.304, allocations: 1.671 MB / 1.459 GB, free: 11.88 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.47e-06/1.304, allocations: 4 kB / 1.459 GB, free: 11.87 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005207/1.304, allocations: 103.9 kB / 1.459 GB, free: 11.77 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.398e-06/1.304, allocations: 4 kB / 1.459 GB, free: 11.77 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/1.304, allocations: 16 kB / 1.459 GB, free: 11.75 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/1.304, allocations: 8 kB / 1.459 GB, free: 11.74 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.304, allocations: 4.219 kB / 1.459 GB, free: 11.74 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001334/1.306, allocations: 1.031 MB / 1.46 GB, free: 10.67 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000375/1.306, allocations: 232.4 kB / 1.461 GB, free: 10.43 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001372/1.306, allocations: 12 kB / 1.461 GB, free: 10.41 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004953/1.307, allocations: 17.86 kB / 1.461 GB, free: 10.4 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.309e-05/1.307, allocations: 39.67 kB / 1.461 GB, free: 10.36 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/1.307, allocations: 16 kB / 1.461 GB, free: 10.34 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.0007283/1.307, allocations: 0.5107 MB / 1.461 GB, free: 9.836 MB / 1.186 GB Notification: Performance of sort global known variables: time 1.11e-07/1.307, allocations: 4 kB / 1.461 GB, free: 9.832 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.00104/1.309, allocations: 307.4 kB / 1.461 GB, free: 9.531 MB / 1.186 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1]) * 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 (49): * Single equations (assignments): 49 * 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 Backend phase and start with SimCode phase: time 0.0006298/1.309, allocations: 201 kB / 1.462 GB, free: 9.336 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.001095/1.31, allocations: 0.5885 MB / 1.462 GB, free: 8.746 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/1.31, allocations: 0 / 1.462 GB, free: 8.746 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.000382/1.311, allocations: 259.6 kB / 1.462 GB, free: 8.492 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/1.313, allocations: 438.7 kB / 1.463 GB, free: 8.07 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003519/1.316, allocations: 1.955 MB / 1.465 GB, free: 6.066 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008361/1.317, allocations: 1.118 MB / 1.466 GB, free: 4.922 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.0008456/1.318, allocations: 275 kB / 1.466 GB, free: 4.648 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/1.318, allocations: 71.44 kB / 1.466 GB, free: 4.578 MB / 1.186 GB Notification: Performance of SimCode: time 1.042e-06/1.318, allocations: 0 / 1.466 GB, free: 4.578 MB / 1.186 GB Notification: Performance of Templates: time 0.03061/1.349, allocations: 15.65 MB / 1.481 GB, free: 5.168 MB / 1.201 GB make -j1 -f Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches