Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.007526/0.007526, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001669/0.001669, allocations: 191.7 kB / 16.67 MB, free: 5.938 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.768/2.768, allocations: 437 MB / 0.7105 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.91 kB / 1.019 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3594, allocations: 151.6 MB / 1.167 GB, free: 6.82 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.9443/1.304, allocations: 195.1 MB / 1.357 GB, free: 15.49 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.01882/1.323, allocations: 14.32 MB / 1.371 GB, free: 5.246 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002405/1.325, allocations: 35.66 kB / 1.371 GB, free: 5.234 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.001628/1.327, allocations: 0.5004 MB / 1.372 GB, free: 4.926 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.005391/1.332, allocations: 1.888 MB / 1.374 GB, free: 3.781 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.002646/1.335, allocations: 0.8636 MB / 1.374 GB, free: 3.121 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.003494/1.338, allocations: 2.578 MB / 1.377 GB, free: 1.645 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001667/1.34, allocations: 1.114 MB / 1.378 GB, free: 0.9961 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004549/1.345, allocations: 1.599 MB / 1.38 GB, free: 44 kB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/1.347, allocations: 0.9136 MB / 1.38 GB, free: 15.51 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0003712/1.347, allocations: 105.9 kB / 1.381 GB, free: 15.51 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00279/1.35, allocations: 1.1 MB / 1.382 GB, free: 14.94 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0007322/1.35, allocations: 0.4975 MB / 1.382 GB, free: 14.61 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.001223/1.352, allocations: 0.6346 MB / 1.383 GB, free: 14.2 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.003235/1.355, allocations: 1.915 MB / 1.385 GB, free: 12.96 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.355, allocations: 0 / 1.385 GB, free: 12.96 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.774e-06/1.355, allocations: 2.906 kB / 1.385 GB, free: 12.96 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.768e-05/1.355, allocations: 4 kB / 1.385 GB, free: 12.96 MB / 1.061 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.002926/1.358, allocations: 1.48 MB / 1.386 GB, free: 11.82 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/1.358, allocations: 11.86 kB / 1.386 GB, free: 11.82 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/1.359, allocations: 255.2 kB / 1.386 GB, free: 11.7 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001418/1.361, allocations: 0.8083 MB / 1.387 GB, free: 11.08 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.25e-05/1.361, allocations: 68.28 kB / 1.387 GB, free: 11.05 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/1.361, allocations: 98.8 kB / 1.387 GB, free: 11.02 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/1.363, allocations: 1.165 MB / 1.388 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/1.363, allocations: 6.219 kB / 1.388 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.553e-05/1.363, allocations: 38.44 kB / 1.388 GB, free: 10.22 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.253e-05/1.363, allocations: 39.55 kB / 1.388 GB, free: 10.21 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/1.364, allocations: 0.8964 MB / 1.389 GB, free: 9.773 MB / 1.061 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.006103/1.371, allocations: 5.76 MB / 1.395 GB, free: 4.531 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009039/1.371, allocations: 0.5319 MB / 1.395 GB, free: 4.258 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004424/1.372, allocations: 325.8 kB / 1.396 GB, free: 4.098 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005947/1.373, allocations: 315.9 kB / 1.396 GB, free: 3.781 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/1.373, allocations: 37.19 kB / 1.396 GB, free: 3.738 MB / 1.061 GB Notification: Performance of pre-optimization done (n=49): time 2.335e-06/1.373, allocations: 3.938 kB / 1.396 GB, free: 3.734 MB / 1.061 GB Notification: Performance of matching and sorting (n=49): time 0.001528/1.374, allocations: 0.7991 MB / 1.397 GB, free: 3.336 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/1.374, allocations: 60.62 kB / 1.397 GB, free: 3.27 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008724/1.375, allocations: 0.7525 MB / 1.398 GB, free: 2.84 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.766e-05/1.375, allocations: 43.48 kB / 1.398 GB, free: 2.797 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/1.376, allocations: 0.5182 MB / 1.398 GB, free: 2.332 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001572/1.376, allocations: 184.8 kB / 1.398 GB, free: 2.172 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/1.376, allocations: 145.4 kB / 1.399 GB, free: 2.086 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001978/1.376, allocations: 333.6 kB / 1.399 GB, free: 1.762 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003559/1.376, allocations: 249.9 kB / 1.399 GB, free: 1.645 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006429/1.377, allocations: 0.5534 MB / 1.4 GB, free: 1.125 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000976/1.378, allocations: 0.803 MB / 1.4 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/1.378, allocations: 2.938 kB / 1.4 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001272/1.379, allocations: 0.849 MB / 1.401 GB, free: 72 kB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.747e-05/1.379, allocations: 9.562 kB / 1.401 GB, free: 72 kB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/1.379, allocations: 13.44 kB / 1.401 GB, free: 68 kB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/1.379, allocations: 13.06 kB / 1.401 GB, free: 68 kB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005755/1.38, allocations: 154 kB / 1.401 GB, free: 32 kB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.382e-05/1.38, allocations: 18.03 kB / 1.401 GB, free: 28 kB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007754/1.381, allocations: 90.94 kB / 1.402 GB, free: 15.96 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.37e-05/1.381, allocations: 34.34 kB / 1.402 GB, free: 15.96 MB / 1.076 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.0004523/1.381, allocations: 338.4 kB / 1.402 GB, free: 15.71 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/1.382, allocations: 91.44 kB / 1.402 GB, free: 15.66 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001045/1.383, allocations: 0.615 MB / 1.403 GB, free: 15.31 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/1.383, allocations: 9.859 kB / 1.403 GB, free: 15.3 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/1.383, allocations: 0 / 1.403 GB, free: 15.3 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007278/1.383, allocations: 0.5186 MB / 1.403 GB, free: 15.02 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/1.386, allocations: 1.664 MB / 1.405 GB, free: 13.88 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/1.386, allocations: 7.219 kB / 1.405 GB, free: 13.88 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000512/1.386, allocations: 109.5 kB / 1.405 GB, free: 13.85 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/1.386, allocations: 2.094 kB / 1.405 GB, free: 13.85 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.486e-05/1.386, allocations: 16.17 kB / 1.405 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/1.386, allocations: 10.06 kB / 1.405 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/1.386, allocations: 2.938 kB / 1.405 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001435/1.388, allocations: 1.024 MB / 1.406 GB, free: 13.21 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003432/1.388, allocations: 238 kB / 1.406 GB, free: 13.01 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/1.388, allocations: 14.06 kB / 1.406 GB, free: 13 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/1.389, allocations: 12.78 kB / 1.406 GB, free: 12.99 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.224e-05/1.389, allocations: 33.52 kB / 1.406 GB, free: 12.98 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/1.389, allocations: 16.7 kB / 1.406 GB, free: 12.97 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0006174/1.389, allocations: 0.5179 MB / 1.407 GB, free: 12.68 MB / 1.076 GB Notification: Performance of sort global known variables: time 2.5e-07/1.389, allocations: 0 / 1.407 GB, free: 12.68 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0008683/1.39, allocations: 300.1 kB / 1.407 GB, free: 12.62 MB / 1.076 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.0005262/1.391, allocations: 212.3 kB / 1.407 GB, free: 12.47 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0009336/1.392, allocations: 0.6088 MB / 1.408 GB, free: 12.2 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/1.392, allocations: 0 / 1.408 GB, free: 12.2 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0003638/1.392, allocations: 271.7 kB / 1.408 GB, free: 12.07 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/1.394, allocations: 438 kB / 1.408 GB, free: 11.84 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/1.397, allocations: 1.954 MB / 1.41 GB, free: 9.836 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007254/1.398, allocations: 1.122 MB / 1.411 GB, free: 8.688 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0008028/1.398, allocations: 271 kB / 1.412 GB, free: 8.418 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000188/1.399, allocations: 71.42 kB / 1.412 GB, free: 8.348 MB / 1.076 GB Notification: Performance of SimCode: time 2.925e-06/1.399, allocations: 0 / 1.412 GB, free: 8.348 MB / 1.076 GB Notification: Performance of Templates: time 0.02645/1.425, allocations: 15.57 MB / 1.427 GB, free: 9.02 MB / 1.092 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches