Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001326/0.001326, allocations: 108.6 kB / 16.41 MB, free: 6.441 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.001312/0.001312, allocations: 185.6 kB / 17.34 MB, free: 5.746 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.384/1.384, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.199/2.199, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 72.03 kB / 0.9516 GB, free: 7.637 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9408/0.9423, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2408/1.183, allocations: 195.1 MB / 1.279 GB, free: 10.55 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01783/1.201, allocations: 14.29 MB / 1.293 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/1.203, allocations: 35.81 kB / 1.293 GB, free: 12.18 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001708/1.204, allocations: 0.5007 MB / 1.294 GB, free: 11.68 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.005146/1.21, allocations: 1.902 MB / 1.296 GB, free: 9.77 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002604/1.212, allocations: 0.8615 MB / 1.296 GB, free: 8.914 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003651/1.216, allocations: 2.585 MB / 1.299 GB, free: 6.324 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001731/1.218, allocations: 1.111 MB / 1.3 GB, free: 5.191 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004746/1.222, allocations: 1.612 MB / 1.302 GB, free: 3.59 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001901/1.224, allocations: 0.9227 MB / 1.302 GB, free: 2.668 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0004062/1.225, allocations: 111.9 kB / 1.303 GB, free: 2.559 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002714/1.227, allocations: 1.099 MB / 1.304 GB, free: 1.457 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000831/1.228, allocations: 0.4987 MB / 1.304 GB, free: 0.957 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001514/1.23, allocations: 0.6299 MB / 1.305 GB, free: 332 kB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.003905/1.234, allocations: 1.908 MB / 1.307 GB, free: 14.41 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/1.234, allocations: 0 / 1.307 GB, free: 14.41 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.833e-06/1.234, allocations: 0 / 1.307 GB, free: 14.41 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.665e-05/1.234, allocations: 4 kB / 1.307 GB, free: 14.41 MB / 1.045 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.003666/1.238, allocations: 1.445 MB / 1.308 GB, free: 12.91 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.238, allocations: 12.03 kB / 1.308 GB, free: 12.89 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001772/1.239, allocations: 254.4 kB / 1.308 GB, free: 12.64 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/1.241, allocations: 0.796 MB / 1.309 GB, free: 11.81 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.324e-05/1.241, allocations: 70 kB / 1.309 GB, free: 11.74 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000214/1.241, allocations: 92 kB / 1.309 GB, free: 11.65 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/1.244, allocations: 1.169 MB / 1.31 GB, free: 10.41 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.088e-05/1.244, allocations: 7.938 kB / 1.31 GB, free: 10.4 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/1.244, allocations: 39.94 kB / 1.31 GB, free: 10.36 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-05/1.244, allocations: 34 kB / 1.31 GB, free: 10.33 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001883/1.246, allocations: 0.9015 MB / 1.311 GB, free: 9.426 MB / 1.045 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.008503/1.254, allocations: 5.747 MB / 1.317 GB, free: 3.223 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008931/1.255, allocations: 0.5432 MB / 1.317 GB, free: 2.668 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/1.256, allocations: 314.6 kB / 1.318 GB, free: 2.359 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006191/1.256, allocations: 315.7 kB / 1.318 GB, free: 1.996 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/1.256, allocations: 39 kB / 1.318 GB, free: 1.949 MB / 1.045 GB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/1.256, allocations: 0 / 1.318 GB, free: 1.949 MB / 1.045 GB Notification: Performance of matching and sorting (n=49): time 0.001662/1.258, allocations: 0.8026 MB / 1.319 GB, free: 1.141 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/1.258, allocations: 55.84 kB / 1.319 GB, free: 1.074 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001086/1.259, allocations: 0.7586 MB / 1.32 GB, free: 316 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 8.507e-05/1.259, allocations: 37.7 kB / 1.32 GB, free: 272 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004369/1.26, allocations: 0.5104 MB / 1.32 GB, free: 15.75 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/1.26, allocations: 173.5 kB / 1.32 GB, free: 15.57 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002164/1.26, allocations: 142.5 kB / 1.32 GB, free: 15.43 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001446/1.26, allocations: 337.9 kB / 1.321 GB, free: 15.09 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/1.261, allocations: 253.8 kB / 1.321 GB, free: 14.84 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006339/1.261, allocations: 0.5585 MB / 1.322 GB, free: 14.14 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001075/1.262, allocations: 0.7956 MB / 1.322 GB, free: 13.24 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/1.262, allocations: 0 / 1.322 GB, free: 13.24 MB / 1.061 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001441/1.264, allocations: 0.8467 MB / 1.323 GB, free: 12.39 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/1.264, allocations: 8 kB / 1.323 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/1.264, allocations: 12.09 kB / 1.323 GB, free: 12.37 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.049e-05/1.264, allocations: 12 kB / 1.323 GB, free: 12.36 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005701/1.265, allocations: 159.7 kB / 1.323 GB, free: 12.2 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.44e-05/1.265, allocations: 15.94 kB / 1.323 GB, free: 12.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008333/1.265, allocations: 83.2 kB / 1.323 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.45e-05/1.265, allocations: 43.92 kB / 1.324 GB, free: 12.06 MB / 1.061 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.0005512/1.266, allocations: 329.5 kB / 1.324 GB, free: 11.73 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002077/1.266, allocations: 86.97 kB / 1.324 GB, free: 11.64 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/1.267, allocations: 0.6218 MB / 1.325 GB, free: 11.02 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/1.267, allocations: 4 kB / 1.325 GB, free: 11.01 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/1.267, allocations: 4 kB / 1.325 GB, free: 11.01 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007256/1.268, allocations: 0.5172 MB / 1.325 GB, free: 10.48 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/1.271, allocations: 1.659 MB / 1.327 GB, free: 8.738 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/1.271, allocations: 7.938 kB / 1.327 GB, free: 8.73 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/1.271, allocations: 107.8 kB / 1.327 GB, free: 8.625 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.252e-05/1.271, allocations: 4 kB / 1.327 GB, free: 8.621 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.473e-05/1.271, allocations: 20.2 kB / 1.327 GB, free: 8.602 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.874e-06/1.271, allocations: 8 kB / 1.327 GB, free: 8.594 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/1.271, allocations: 0 / 1.327 GB, free: 8.594 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/1.273, allocations: 1.023 MB / 1.328 GB, free: 7.531 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/1.273, allocations: 235.9 kB / 1.328 GB, free: 7.281 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/1.274, allocations: 12 kB / 1.328 GB, free: 7.27 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/1.274, allocations: 20.86 kB / 1.328 GB, free: 7.25 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.288e-05/1.274, allocations: 31.91 kB / 1.328 GB, free: 7.219 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/1.274, allocations: 23.92 kB / 1.328 GB, free: 7.195 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0007532/1.275, allocations: 0.5146 MB / 1.329 GB, free: 6.684 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.5e-07/1.275, allocations: 0 / 1.329 GB, free: 6.684 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001069/1.276, allocations: 291.4 kB / 1.329 GB, free: 6.398 MB / 1.061 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.0005913/1.277, allocations: 207 kB / 1.329 GB, free: 6.199 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0011/1.278, allocations: 0.6111 MB / 1.33 GB, free: 5.59 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.278, allocations: 4 kB / 1.33 GB, free: 5.586 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003956/1.278, allocations: 275.6 kB / 1.33 GB, free: 5.316 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/1.28, allocations: 435.2 kB / 1.33 GB, free: 4.898 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004359/1.285, allocations: 2.007 MB / 1.332 GB, free: 2.836 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/1.286, allocations: 1.129 MB / 1.333 GB, free: 1.68 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003103/1.286, allocations: 75.42 kB / 1.333 GB, free: 1.605 MB / 1.061 GB Notification: Performance of SimCode: time 9.72e-07/1.286, allocations: 4 kB / 1.333 GB, free: 1.602 MB / 1.061 GB Notification: Performance of Templates: time 0.02718/1.313, allocations: 14.63 MB / 1.348 GB, free: 3.098 MB / 1.076 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches