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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",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.008896/0.008896, allocations: 98.02 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.002213/0.002213, allocations: 193.5 kB / 16.68 MB, free: 5.969 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.184/2.184, allocations: 390.3 MB / 0.6648 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 67.91 kB / 0.9504 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7345/0.7359, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2048/0.9407, allocations: 195.1 MB / 1.278 GB, free: 10.56 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01593/0.9566, allocations: 14.31 MB / 1.292 GB, free: 12.21 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.9579, allocations: 39.75 kB / 1.292 GB, free: 12.17 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001383/0.9593, allocations: 0.5008 MB / 1.293 GB, free: 11.67 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.004295/0.9636, allocations: 1.968 MB / 1.294 GB, free: 9.695 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002138/0.9658, allocations: 0.8607 MB / 1.295 GB, free: 8.836 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.003032/0.9688, allocations: 2.585 MB / 1.298 GB, free: 6.246 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.9702, allocations: 1.107 MB / 1.299 GB, free: 5.117 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004079/0.9743, allocations: 1.659 MB / 1.301 GB, free: 3.473 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001357/0.9756, allocations: 0.9319 MB / 1.301 GB, free: 2.539 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.9758, allocations: 108 kB / 1.302 GB, free: 2.434 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002165/0.978, allocations: 1.107 MB / 1.303 GB, free: 1.324 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0004697/0.9785, allocations: 0.5026 MB / 1.303 GB, free: 0.8203 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0006634/0.9791, allocations: 0.6338 MB / 1.304 GB, free: 188 kB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.002381/0.9815, allocations: 1.912 MB / 1.306 GB, free: 14.27 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.9815, allocations: 4 kB / 1.306 GB, free: 14.26 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9815, allocations: 0 / 1.306 GB, free: 14.26 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.695e-05/0.9816, allocations: 0 / 1.306 GB, free: 14.26 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.002301/0.9839, allocations: 1.486 MB / 1.307 GB, free: 12.72 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 5.034e-05/0.9839, allocations: 8.031 kB / 1.307 GB, free: 12.71 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001809/0.9841, allocations: 151.6 kB / 1.307 GB, free: 12.55 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001376/0.9855, allocations: 255 kB / 1.307 GB, free: 12.3 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/0.9868, allocations: 0.7967 MB / 1.308 GB, free: 11.47 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.036e-05/0.9869, allocations: 69.98 kB / 1.308 GB, free: 11.4 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.987, allocations: 99.95 kB / 1.308 GB, free: 11.3 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.9886, allocations: 1.169 MB / 1.31 GB, free: 10.06 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.827e-05/0.9887, allocations: 7.984 kB / 1.31 GB, free: 10.05 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.652e-05/0.9888, allocations: 39.94 kB / 1.31 GB, free: 10.02 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-05/0.9888, allocations: 41.88 kB / 1.31 GB, free: 9.973 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.9901, allocations: 0.8976 MB / 1.31 GB, free: 9.074 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.005199/0.9953, allocations: 5.756 MB / 1.316 GB, free: 2.863 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/0.9962, allocations: 0.5277 MB / 1.317 GB, free: 2.324 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004602/0.9966, allocations: 322.6 kB / 1.317 GB, free: 2.008 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005636/0.9972, allocations: 315.7 kB / 1.317 GB, free: 1.645 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.9972, allocations: 39 kB / 1.317 GB, free: 1.598 MB / 1.045 GB Notification: Performance of pre-optimization done (n=49): time 3.727e-06/0.9972, allocations: 3.984 kB / 1.317 GB, free: 1.594 MB / 1.045 GB Notification: Performance of matching and sorting (n=49): time 0.001423/0.9987, allocations: 0.8031 MB / 1.318 GB, free: 0.7852 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.9987, allocations: 55.84 kB / 1.318 GB, free: 0.7188 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008096/0.9995, allocations: 0.751 MB / 1.319 GB, free: 15.96 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.784e-05/0.9996, allocations: 37.7 kB / 1.319 GB, free: 15.92 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003276/0.9999, allocations: 0.5116 MB / 1.319 GB, free: 15.4 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001484/1, allocations: 190.4 kB / 1.32 GB, free: 15.21 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/1, allocations: 146.6 kB / 1.32 GB, free: 15.06 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.000109/1, allocations: 337.9 kB / 1.32 GB, free: 14.73 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003636/1.001, allocations: 257.8 kB / 1.32 GB, free: 14.47 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005706/1.001, allocations: 0.5507 MB / 1.321 GB, free: 13.78 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009201/1.002, allocations: 0.7879 MB / 1.322 GB, free: 12.89 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/1.002, allocations: 4 kB / 1.322 GB, free: 12.88 MB / 1.061 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001197/1.003, allocations: 0.8546 MB / 1.322 GB, free: 12.02 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/1.004, allocations: 8 kB / 1.322 GB, free: 12.01 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/1.004, allocations: 8 kB / 1.322 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/1.004, allocations: 15.94 kB / 1.322 GB, free: 11.99 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005415/1.004, allocations: 151.8 kB / 1.323 GB, free: 11.84 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/1.004, allocations: 16.5 kB / 1.323 GB, free: 11.82 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006837/1.005, allocations: 95.33 kB / 1.323 GB, free: 11.73 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/1.005, allocations: 35.98 kB / 1.323 GB, free: 11.7 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.0004026/1.005, allocations: 329.4 kB / 1.323 GB, free: 11.36 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001342/1.005, allocations: 91.44 kB / 1.323 GB, free: 11.27 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001004/1.006, allocations: 0.6218 MB / 1.324 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/1.006, allocations: 12 kB / 1.324 GB, free: 10.64 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/1.006, allocations: 0 / 1.324 GB, free: 10.64 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007193/1.007, allocations: 0.5211 MB / 1.324 GB, free: 10.1 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002361/1.01, allocations: 1.671 MB / 1.326 GB, free: 8.352 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/1.01, allocations: 0 / 1.326 GB, free: 8.352 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005101/1.01, allocations: 107.9 kB / 1.326 GB, free: 8.246 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/1.01, allocations: 4 kB / 1.326 GB, free: 8.242 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/1.01, allocations: 15.98 kB / 1.326 GB, free: 8.227 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/1.01, allocations: 4 kB / 1.326 GB, free: 8.223 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.01, allocations: 7.875 kB / 1.326 GB, free: 8.215 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001254/1.011, allocations: 1.031 MB / 1.327 GB, free: 7.145 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003434/1.012, allocations: 232.4 kB / 1.327 GB, free: 6.898 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/1.012, allocations: 19.94 kB / 1.327 GB, free: 6.879 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004694/1.012, allocations: 17.11 kB / 1.327 GB, free: 6.863 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/1.012, allocations: 27.97 kB / 1.327 GB, free: 6.836 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.569e-05/1.013, allocations: 19.98 kB / 1.327 GB, free: 6.816 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0006301/1.013, allocations: 0.5146 MB / 1.328 GB, free: 6.305 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.31e-07/1.013, allocations: 0 / 1.328 GB, free: 6.305 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0008563/1.014, allocations: 299.4 kB / 1.328 GB, free: 6.012 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.001948/1.016, allocations: 1.675 MB / 1.33 GB, free: 4.305 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0009018/1.017, allocations: 0.6043 MB / 1.33 GB, free: 3.699 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/1.017, allocations: 8.062 kB / 1.33 GB, free: 3.691 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003604/1.017, allocations: 271.6 kB / 1.331 GB, free: 3.426 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001963/1.019, allocations: 433.8 kB / 1.331 GB, free: 3.008 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008982/1.028, allocations: 7.239 MB / 1.338 GB, free: 11.38 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000669/1.029, allocations: 1.118 MB / 1.339 GB, free: 10.23 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0007217/1.03, allocations: 263 kB / 1.339 GB, free: 9.973 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00046/1.03, allocations: 363.3 kB / 1.34 GB, free: 9.617 MB / 1.076 GB Notification: Performance of SimCode: time 4.61e-07/1.03, allocations: 3.938 kB / 1.34 GB, free: 9.613 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04729/1.077, allocations: 23.08 MB / 1.362 GB, free: 2.895 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.327/10.4, allocations: 15.62 kB / 1.362 GB, free: 2.879 MB / 1.092 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.csv","/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