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.00111/0.001111, allocations: 112.6 kB / 16.37 MB, free: 6 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.001016/0.001016, allocations: 196 kB / 17.31 MB, free: 5.613 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.346/1.346, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.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.189/2.189, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 61.55 kB / 0.814 GB, free: 32.6 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2544, allocations: 140.4 MB / 0.9511 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.7474/1.002, allocations: 186.8 MB / 1.134 GB, free: 4.973 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.007782/1.01, allocations: 4.555 MB / 1.138 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/1.011, allocations: 31.34 kB / 1.138 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001207/1.012, allocations: 406.9 kB / 1.138 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004199/1.017, allocations: 1.35 MB / 1.14 GB, free: 4.543 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002075/1.019, allocations: 0.7543 MB / 1.14 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002581/1.021, allocations: 1.964 MB / 1.142 GB, free: 4.184 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009223/1.022, allocations: 0.6485 MB / 1.143 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002875/1.025, allocations: 1.081 MB / 1.144 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009408/1.026, allocations: 0.5858 MB / 1.145 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001055/1.026, allocations: 64.84 kB / 1.145 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002898/1.029, allocations: 1.386 MB / 1.146 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003076/1.029, allocations: 289.5 kB / 1.146 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0004597/1.03, allocations: 415 kB / 1.147 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002612/1.033, allocations: 1.474 MB / 1.148 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/1.033, allocations: 1.688 kB / 1.148 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.014e-06/1.033, allocations: 0 / 1.148 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.422e-05/1.033, allocations: 0 / 1.148 GB, free: 3.465 MB / 0.8575 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.002282/1.035, allocations: 1.098 MB / 1.149 GB, free: 18.79 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/1.035, allocations: 8.719 kB / 1.149 GB, free: 18.79 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001423/1.036, allocations: 202.5 kB / 1.149 GB, free: 18.75 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001191/1.038, allocations: 0.6105 MB / 1.15 GB, free: 18.46 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.209e-05/1.038, allocations: 42.22 kB / 1.15 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001131/1.038, allocations: 60.56 kB / 1.15 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/1.039, allocations: 0.6178 MB / 1.151 GB, free: 18.37 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/1.039, allocations: 1.469 kB / 1.151 GB, free: 18.37 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.944e-05/1.039, allocations: 25.19 kB / 1.151 GB, free: 18.37 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-05/1.039, allocations: 19.09 kB / 1.151 GB, free: 18.36 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008807/1.04, allocations: 0.5002 MB / 1.151 GB, free: 18.35 MB / 0.8731 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.003158/1.043, allocations: 2.389 MB / 1.154 GB, free: 16.72 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006271/1.044, allocations: 363.2 kB / 1.154 GB, free: 16.57 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002993/1.044, allocations: 214.9 kB / 1.154 GB, free: 16.49 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005765/1.045, allocations: 305.7 kB / 1.154 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.529e-05/1.045, allocations: 41.02 kB / 1.154 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=36): time 1.693e-06/1.045, allocations: 0 / 1.154 GB, free: 16.16 MB / 0.8731 GB Notification: Performance of matching and sorting (n=36): time 0.001142/1.046, allocations: 0.5546 MB / 1.155 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/1.046, allocations: 54.69 kB / 1.155 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/1.046, allocations: 0.4948 MB / 1.156 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.417e-05/1.047, allocations: 32.58 kB / 1.156 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.000185/1.047, allocations: 320.3 kB / 1.156 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/1.047, allocations: 124.1 kB / 1.156 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/1.047, allocations: 91.72 kB / 1.156 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001474/1.047, allocations: 372.2 kB / 1.156 GB, free: 14.87 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/1.047, allocations: 151.5 kB / 1.157 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002967/1.048, allocations: 265.1 kB / 1.157 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005131/1.048, allocations: 411.1 kB / 1.157 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/1.048, allocations: 1.094 kB / 1.157 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007031/1.049, allocations: 481.1 kB / 1.158 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/1.049, allocations: 11.03 kB / 1.158 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/1.049, allocations: 5.625 kB / 1.158 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/1.049, allocations: 4.469 kB / 1.158 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005614/1.05, allocations: 105.5 kB / 1.158 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003616/1.05, allocations: 0.5919 MB / 1.158 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/1.05, allocations: 47.16 kB / 1.158 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/1.051, allocations: 19.58 kB / 1.158 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004298/1.051, allocations: 324.6 kB / 1.159 GB, free: 13.39 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002872/1.051, allocations: 261 kB / 1.159 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005045/1.052, allocations: 403.2 kB / 1.159 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.324e-06/1.052, allocations: 3.984 kB / 1.159 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0006999/1.052, allocations: 488.6 kB / 1.16 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/1.052, allocations: 5.562 kB / 1.16 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/1.053, allocations: 3.344 kB / 1.16 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.494e-06/1.053, allocations: 15.59 kB / 1.16 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000361/1.053, allocations: 92.73 kB / 1.16 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.092e-06/1.053, allocations: 3.594 kB / 1.16 GB, free: 12.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004404/1.053, allocations: 25.72 kB / 1.16 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/1.053, allocations: 19.14 kB / 1.16 GB, free: 12.73 MB / 0.8731 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001615/1.054, allocations: 208.8 kB / 1.16 GB, free: 12.53 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/1.054, allocations: 63.03 kB / 1.16 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007445/1.054, allocations: 447.9 kB / 1.161 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/1.054, allocations: 3.469 kB / 1.161 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/1.054, allocations: 0 / 1.161 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006788/1.055, allocations: 0.6611 MB / 1.161 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/1.057, allocations: 1.204 MB / 1.163 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/1.057, allocations: 2.219 kB / 1.163 GB, free: 11.06 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004668/1.057, allocations: 90.7 kB / 1.163 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/1.057, allocations: 2.531 kB / 1.163 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/1.058, allocations: 14.05 kB / 1.163 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002833/1.058, allocations: 0.5984 MB / 1.163 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.058, allocations: 5.281 kB / 1.163 GB, free: 10.44 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008928/1.059, allocations: 0.7039 MB / 1.164 GB, free: 10.04 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/1.059, allocations: 174 kB / 1.164 GB, free: 9.898 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/1.059, allocations: 12.31 kB / 1.164 GB, free: 9.891 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003814/1.059, allocations: 16.17 kB / 1.164 GB, free: 9.883 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/1.06, allocations: 24.88 kB / 1.164 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/1.06, allocations: 18 kB / 1.164 GB, free: 9.871 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000418/1.06, allocations: 358.4 kB / 1.165 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.51e-07/1.06, allocations: 1 kB / 1.165 GB, free: 9.711 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00102/1.061, allocations: 341.8 kB / 1.165 GB, free: 9.648 MB / 0.8731 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000483/1.062, allocations: 200.5 kB / 1.165 GB, free: 9.52 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001188/1.063, allocations: 0.5974 MB / 1.166 GB, free: 9.32 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/1.063, allocations: 8.062 kB / 1.166 GB, free: 9.312 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003517/1.063, allocations: 189.5 kB / 1.166 GB, free: 9.254 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001522/1.065, allocations: 363.3 kB / 1.166 GB, free: 9.141 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/1.067, allocations: 1.334 MB / 1.167 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/1.067, allocations: 0.9461 MB / 1.168 GB, free: 7.609 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0005979/1.068, allocations: 204.5 kB / 1.169 GB, free: 7.574 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/1.068, allocations: 48.59 kB / 1.169 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of SimCode: time 6.71e-07/1.068, allocations: 0 / 1.169 GB, free: 7.566 MB / 0.8731 GB Notification: Performance of Templates: time 0.02037/1.088, allocations: 11.79 MB / 1.18 GB, free: 3.43 MB / 0.8731 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches