Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.MassFraction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.Xi.1.|senMasFra1.X|senMasFra2.X",fileNamePrefix="Buildings_10_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_10_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.001468/0.001468, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00188/0.00188, allocations: 197.8 kB / 16.54 MB, free: 6.672 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.5/1.5, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.711/2.711, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.91 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7354/0.7367, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.2099/0.9467, allocations: 186.8 MB / 1.2 GB, free: 7.004 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.008234/0.9549, allocations: 4.562 MB / 1.204 GB, free: 2.43 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.9561, allocations: 31.81 kB / 1.204 GB, free: 2.398 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.9574, allocations: 401.4 kB / 1.205 GB, free: 2.004 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.003722/0.9612, allocations: 1.357 MB / 1.206 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.00216/0.9633, allocations: 0.7399 MB / 1.207 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002572/0.9659, allocations: 1.962 MB / 1.209 GB, free: 13.94 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009794/0.9669, allocations: 0.6632 MB / 1.209 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003002/0.9699, allocations: 1.062 MB / 1.21 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.9711, allocations: 0.5836 MB / 1.211 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001146/0.9712, allocations: 64 kB / 1.211 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003302/0.9745, allocations: 1.38 MB / 1.212 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003068/0.9748, allocations: 291.2 kB / 1.212 GB, free: 9.891 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004839/0.9753, allocations: 414.1 kB / 1.213 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00248/0.9778, allocations: 1.469 MB / 1.214 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.9778, allocations: 3.938 kB / 1.214 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.873e-06/0.9778, allocations: 0 / 1.214 GB, free: 8.008 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.9779, allocations: 0 / 1.214 GB, free: 8.008 MB / 0.9669 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.001641/0.9795, allocations: 1.083 MB / 1.215 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.9796, allocations: 12.03 kB / 1.215 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001293/0.9809, allocations: 210.8 kB / 1.216 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008908/0.9818, allocations: 0.5754 MB / 1.216 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.9818, allocations: 41.31 kB / 1.216 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-05/0.9819, allocations: 60 kB / 1.216 GB, free: 5.941 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009963/0.9829, allocations: 0.6128 MB / 1.217 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.9829, allocations: 3.938 kB / 1.217 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.938e-05/0.983, allocations: 24 kB / 1.217 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.141e-05/0.983, allocations: 21.3 kB / 1.217 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008244/0.9839, allocations: 0.4931 MB / 1.217 GB, free: 4.773 MB / 0.9669 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.003016/0.9869, allocations: 2.42 MB / 1.22 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.9875, allocations: 358.7 kB / 1.22 GB, free: 1.781 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.9878, allocations: 210.6 kB / 1.22 GB, free: 1.574 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005903/0.9884, allocations: 307.8 kB / 1.221 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.24e-05/0.9885, allocations: 38.5 kB / 1.221 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=36): time 4.588e-06/0.9885, allocations: 4 kB / 1.221 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of matching and sorting (n=36): time 0.001208/0.9897, allocations: 0.5569 MB / 1.221 GB, free: 0.6055 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.9898, allocations: 55.41 kB / 1.221 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005909/0.9904, allocations: 0.495 MB / 1.222 GB, free: 40 kB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.9904, allocations: 33.7 kB / 1.222 GB, free: 0 / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.9907, allocations: 319.8 kB / 1.222 GB, free: 15.68 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.9908, allocations: 130.1 kB / 1.222 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001352/0.9909, allocations: 86.12 kB / 1.222 GB, free: 15.46 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.9911, allocations: 362.8 kB / 1.223 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.9914, allocations: 154.5 kB / 1.223 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003679/0.9917, allocations: 263.7 kB / 1.223 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006159/0.9924, allocations: 414.1 kB / 1.223 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/0.9924, allocations: 4 kB / 1.223 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007563/0.9931, allocations: 477.2 kB / 1.224 GB, free: 13.73 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.9932, allocations: 12.03 kB / 1.224 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.9932, allocations: 0 / 1.224 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.9932, allocations: 4 kB / 1.224 GB, free: 13.72 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006053/0.9938, allocations: 103.8 kB / 1.224 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004439/0.9943, allocations: 0.5937 MB / 1.225 GB, free: 13 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000517/0.9948, allocations: 51.61 kB / 1.225 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.485e-05/0.9949, allocations: 20 kB / 1.225 GB, free: 12.93 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005361/0.9954, allocations: 328.8 kB / 1.225 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000337/0.9958, allocations: 255.4 kB / 1.225 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000575/0.9963, allocations: 408.6 kB / 1.226 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.9963, allocations: 0 / 1.226 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0007345/0.9971, allocations: 480.6 kB / 1.226 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.214e-05/0.9971, allocations: 7.984 kB / 1.226 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.9971, allocations: 7.938 kB / 1.226 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.9971, allocations: 8.281 kB / 1.226 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003545/0.9975, allocations: 87.84 kB / 1.226 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.9975, allocations: 7.984 kB / 1.226 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004521/0.998, allocations: 31.73 kB / 1.226 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.998, allocations: 16 kB / 1.226 GB, free: 11.25 MB / 0.9825 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.0001864/0.9982, allocations: 208.1 kB / 1.226 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.9983, allocations: 67.25 kB / 1.226 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007981/0.9991, allocations: 447.7 kB / 1.227 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.9991, allocations: 4 kB / 1.227 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9991, allocations: 0 / 1.227 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006643/0.9998, allocations: 0.6556 MB / 1.227 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/1.002, allocations: 1.208 MB / 1.229 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/1.002, allocations: 0 / 1.229 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/1.002, allocations: 91.89 kB / 1.229 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/1.002, allocations: 4 kB / 1.229 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.995e-05/1.002, allocations: 11.98 kB / 1.229 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00034/1.002, allocations: 0.5978 MB / 1.229 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.002, allocations: 4 kB / 1.229 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008858/1.003, allocations: 0.7053 MB / 1.23 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002282/1.004, allocations: 180.3 kB / 1.23 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.76e-05/1.004, allocations: 11.94 kB / 1.23 GB, free: 6.812 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003751/1.004, allocations: 12 kB / 1.23 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/1.004, allocations: 23.97 kB / 1.23 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.738e-05/1.004, allocations: 19.98 kB / 1.23 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004153/1.005, allocations: 354.8 kB / 1.231 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.413e-06/1.005, allocations: 0 / 1.231 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0009026/1.005, allocations: 351.1 kB / 1.231 GB, free: 6.07 MB / 0.9825 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.0004325/1.006, allocations: 203.3 kB / 1.231 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001274/1.007, allocations: 0.6329 MB / 1.232 GB, free: 5.242 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.007, allocations: 4.062 kB / 1.232 GB, free: 5.238 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003168/1.008, allocations: 184.5 kB / 1.232 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/1.009, allocations: 371.8 kB / 1.232 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/1.011, allocations: 1.337 MB / 1.234 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000579/1.012, allocations: 0.9375 MB / 1.235 GB, free: 2.355 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0006593/1.013, allocations: 208.9 kB / 1.235 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/1.013, allocations: 55.42 kB / 1.235 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of SimCode: time 5.31e-07/1.013, allocations: 3.938 kB / 1.235 GB, free: 2.09 MB / 0.9825 GB Notification: Performance of Templates: time 0.02085/1.034, allocations: 11.8 MB / 1.246 GB, free: 6.484 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sensors_Examples_MassFraction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches