Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction") translateModel(Buildings.Fluid.Sensors.Examples.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.001091, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001658/0.001659, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.497/2.497, allocations: 390.9 MB / 0.666 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003783, allocations: 8 kB / 0.8153 GB, free: 13.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7572/0.7576, allocations: 142.4 MB / 0.9544 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.2088/0.9665, allocations: 169.9 MB / 1.12 GB, free: 5.18 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.007802/0.9743, allocations: 4.297 MB / 1.125 GB, free: 0.875 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001243/0.9756, allocations: 23.88 kB / 1.125 GB, free: 0.8516 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.0012/0.9768, allocations: 282.2 kB / 1.125 GB, free: 0.5742 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.003346/0.9802, allocations: 0.9949 MB / 1.126 GB, free: 15.58 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002298/0.9825, allocations: 0.5846 MB / 1.126 GB, free: 15 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.003421/0.9859, allocations: 2.307 MB / 1.129 GB, free: 12.68 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00107/0.987, allocations: 491.3 kB / 1.129 GB, free: 12.18 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00241/0.9895, allocations: 0.8559 MB / 1.13 GB, free: 11.32 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.9907, allocations: 0.5603 MB / 1.131 GB, free: 10.76 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.9909, allocations: 28 kB / 1.131 GB, free: 10.73 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.9933, allocations: 0.873 MB / 1.131 GB, free: 9.859 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004272/0.9938, allocations: 247.3 kB / 1.132 GB, free: 9.617 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0004114/0.9942, allocations: 173.3 kB / 1.132 GB, free: 9.441 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.9959, allocations: 0.9977 MB / 1.133 GB, free: 8.441 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.9959, allocations: 7.938 kB / 1.133 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.934e-06/0.9959, allocations: 0 / 1.133 GB, free: 8.434 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.587e-05/0.996, allocations: 0 / 1.133 GB, free: 8.434 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.002248/0.9982, allocations: 0.9543 MB / 1.134 GB, free: 7.43 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 6.84e-05/0.9983, allocations: 8.031 kB / 1.134 GB, free: 7.422 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001745/1, allocations: 218.8 kB / 1.134 GB, free: 7.207 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001677/1.002, allocations: 0.5486 MB / 1.134 GB, free: 6.617 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.914e-05/1.002, allocations: 45.3 kB / 1.135 GB, free: 6.574 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/1.002, allocations: 56 kB / 1.135 GB, free: 6.52 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/1.004, allocations: 0.6167 MB / 1.135 GB, free: 5.887 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/1.004, allocations: 0 / 1.135 GB, free: 5.887 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.881e-05/1.004, allocations: 24 kB / 1.135 GB, free: 5.863 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.755e-05/1.004, allocations: 17.31 kB / 1.135 GB, free: 5.848 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009346/1.005, allocations: 0.493 MB / 1.136 GB, free: 5.352 MB / 0.8887 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.003525/1.008, allocations: 2.396 MB / 1.138 GB, free: 2.742 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006721/1.009, allocations: 362.6 kB / 1.138 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003061/1.009, allocations: 208.8 kB / 1.139 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000569/1.01, allocations: 315.2 kB / 1.139 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/1.01, allocations: 38.56 kB / 1.139 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=36): time 2.404e-06/1.01, allocations: 0 / 1.139 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of matching and sorting (n=36): time 0.001212/1.011, allocations: 0.5523 MB / 1.139 GB, free: 1.203 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5e-05/1.011, allocations: 63.34 kB / 1.14 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006524/1.012, allocations: 0.4911 MB / 1.14 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/1.012, allocations: 33.7 kB / 1.14 GB, free: 0.5859 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002425/1.012, allocations: 311.9 kB / 1.14 GB, free: 284 kB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/1.012, allocations: 134 kB / 1.14 GB, free: 148 kB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.31e-05/1.012, allocations: 8 kB / 1.14 GB, free: 140 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001783/1.012, allocations: 366.8 kB / 1.141 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/1.013, allocations: 148.8 kB / 1.141 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/1.013, allocations: 251.8 kB / 1.141 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000302/1.013, allocations: 189.5 kB / 1.141 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/1.013, allocations: 0 / 1.141 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007891/1.014, allocations: 485.7 kB / 1.142 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001177/1.014, allocations: 156.8 kB / 1.142 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/1.014, allocations: 4 kB / 1.142 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/1.014, allocations: 4 kB / 1.142 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005862/1.015, allocations: 103.8 kB / 1.142 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005028/1.015, allocations: 0.5938 MB / 1.143 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007367/1.016, allocations: 79.58 kB / 1.143 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.684e-05/1.016, allocations: 16 kB / 1.143 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/1.016, allocations: 4 kB / 1.143 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006885/1.017, allocations: 404 kB / 1.143 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/1.017, allocations: 8.031 kB / 1.143 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/1.017, allocations: 4 kB / 1.143 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003703/1.017, allocations: 91.86 kB / 1.143 GB, free: 13.17 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/1.017, allocations: 8 kB / 1.143 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006719/1.018, allocations: 75.55 kB / 1.143 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/1.018, allocations: 23.98 kB / 1.143 GB, free: 13.07 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004374/1.019, allocations: 293 kB / 1.144 GB, free: 12.77 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/1.019, allocations: 55.34 kB / 1.144 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008279/1.02, allocations: 449.3 kB / 1.144 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/1.02, allocations: 7.953 kB / 1.144 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/1.02, allocations: 0 / 1.144 GB, free: 12.26 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007252/1.02, allocations: 0.6598 MB / 1.145 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/1.022, allocations: 1.208 MB / 1.146 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/1.022, allocations: 4 kB / 1.146 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004564/1.023, allocations: 87.88 kB / 1.146 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/1.023, allocations: 4 kB / 1.146 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.81e-05/1.023, allocations: 15.98 kB / 1.146 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002921/1.023, allocations: 0.5901 MB / 1.147 GB, free: 9.508 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.023, allocations: 8.016 kB / 1.147 GB, free: 9.5 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009228/1.024, allocations: 0.7126 MB / 1.147 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/1.024, allocations: 180.4 kB / 1.147 GB, free: 8.555 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/1.024, allocations: 8 kB / 1.147 GB, free: 8.547 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004905/1.025, allocations: 35.97 kB / 1.148 GB, free: 8.512 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/1.025, allocations: 27.92 kB / 1.148 GB, free: 8.484 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/1.025, allocations: 16 kB / 1.148 GB, free: 8.469 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0004745/1.026, allocations: 358.8 kB / 1.148 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3e-07/1.026, allocations: 4 kB / 1.148 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.001033/1.027, allocations: 347.1 kB / 1.148 GB, free: 7.777 MB / 0.9044 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,senMasFra1.X) * 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 (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005504/1.027, allocations: 206.4 kB / 1.148 GB, free: 7.578 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001182/1.028, allocations: 0.5775 MB / 1.149 GB, free: 7 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.028, allocations: 1.125 kB / 1.149 GB, free: 7 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003339/1.029, allocations: 188.3 kB / 1.149 GB, free: 6.816 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/1.03, allocations: 359.8 kB / 1.15 GB, free: 6.469 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002514/1.033, allocations: 1.679 MB / 1.151 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005564/1.034, allocations: 0.9417 MB / 1.152 GB, free: 3.773 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0007366/1.034, allocations: 208.9 kB / 1.152 GB, free: 3.57 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/1.034, allocations: 47.44 kB / 1.152 GB, free: 3.523 MB / 0.9044 GB Notification: Performance of SimCode: time 4.11e-07/1.034, allocations: 0 / 1.152 GB, free: 3.523 MB / 0.9044 GB Notification: Performance of Templates: time 0.0218/1.056, allocations: 11.04 MB / 1.163 GB, free: 8.652 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_MassFraction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches