Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001171/0.00117, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001395/0.001395, allocations: 177.3 kB / 15.94 MB, free: 228 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.32/1.32, allocations: 223.2 MB / 239.9 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.539/2.539, allocations: 436.5 MB / 0.7104 GB, free: 7.875 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 8 kB / 0.8708 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6176/0.618, allocations: 153.6 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.MassFraction): time 0.1642/0.7822, allocations: 155.3 MB / 1.173 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.007017/0.7893, allocations: 4.449 MB / 1.177 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007275/0.79, allocations: 23.81 kB / 1.177 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001205/0.7912, allocations: 434 kB / 1.177 GB, free: 488 kB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.003335/0.7946, allocations: 1.246 MB / 1.179 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002333/0.7969, allocations: 0.8468 MB / 1.179 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001886/0.7988, allocations: 1.131 MB / 1.18 GB, free: 13.26 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007194/0.7996, allocations: 0.4955 MB / 1.181 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001453/0.801, allocations: 0.732 MB / 1.182 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005341/0.8016, allocations: 366.5 kB / 1.182 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.801e-05/0.8017, allocations: 28 kB / 1.182 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.8035, allocations: 0.6864 MB / 1.183 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002717/0.8038, allocations: 227.4 kB / 1.183 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.8041, allocations: 173.3 kB / 1.183 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.8053, allocations: 0.9157 MB / 1.184 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.8053, allocations: 0 / 1.184 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.046e-06/0.8053, allocations: 3.938 kB / 1.184 GB, free: 9.629 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.303e-05/0.8053, allocations: 3.938 kB / 1.184 GB, free: 9.625 MB / 0.9356 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.001501/0.8068, allocations: 0.927 MB / 1.185 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.8069, allocations: 19.98 kB / 1.185 GB, free: 8.625 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001309/0.8082, allocations: 202.9 kB / 1.185 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009798/0.8092, allocations: 0.5486 MB / 1.186 GB, free: 7.836 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.8092, allocations: 45.31 kB / 1.186 GB, free: 7.793 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.8093, allocations: 52 kB / 1.186 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009646/0.8103, allocations: 0.6244 MB / 1.186 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.8103, allocations: 0 / 1.186 GB, free: 7.102 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.438e-05/0.8104, allocations: 20 kB / 1.186 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.108e-05/0.8104, allocations: 21.31 kB / 1.186 GB, free: 7.059 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007918/0.8112, allocations: 0.493 MB / 1.187 GB, free: 6.566 MB / 0.9356 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.002931/0.8141, allocations: 2.381 MB / 1.189 GB, free: 3.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006298/0.8148, allocations: 374.7 kB / 1.19 GB, free: 3.605 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003863/0.8152, allocations: 145 kB / 1.19 GB, free: 3.445 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.8152, allocations: 39.16 kB / 1.19 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=36): time 2.144e-06/0.8152, allocations: 0 / 1.19 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of matching and sorting (n=36): time 0.001128/0.8164, allocations: 0.5485 MB / 1.19 GB, free: 2.844 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.8164, allocations: 55.34 kB / 1.19 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005557/0.817, allocations: 0.4951 MB / 1.191 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.258e-05/0.817, allocations: 33.7 kB / 1.191 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002301/0.8173, allocations: 319.8 kB / 1.191 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.8174, allocations: 122.1 kB / 1.191 GB, free: 1.793 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.989e-05/0.8174, allocations: 8 kB / 1.191 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000149/0.8176, allocations: 366.8 kB / 1.192 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002321/0.8178, allocations: 144.8 kB / 1.192 GB, free: 1.277 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.8181, allocations: 255.8 kB / 1.192 GB, free: 0.9844 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002947/0.8184, allocations: 189.5 kB / 1.192 GB, free: 0.8008 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.8184, allocations: 4 kB / 1.192 GB, free: 0.7969 MB / 0.9356 GB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007118/0.8192, allocations: 481.5 kB / 1.193 GB, free: 328 kB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003422/0.8195, allocations: 0.8733 MB / 1.193 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.8195, allocations: 15.88 kB / 1.193 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.8196, allocations: 4.062 kB / 1.193 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005962/0.8202, allocations: 107.9 kB / 1.194 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003537/0.8205, allocations: 0.5938 MB / 1.194 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.8211, allocations: 71.62 kB / 1.194 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.98e-05/0.8212, allocations: 27.92 kB / 1.194 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.166e-06/0.8212, allocations: 8 kB / 1.194 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005969/0.8218, allocations: 395.9 kB / 1.195 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.8218, allocations: 4 kB / 1.195 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.51e-06/0.8218, allocations: 4 kB / 1.195 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003619/0.8222, allocations: 91.83 kB / 1.195 GB, free: 14.05 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.8222, allocations: 7.953 kB / 1.195 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005277/0.8227, allocations: 79.83 kB / 1.195 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.8228, allocations: 16 kB / 1.195 GB, free: 13.95 MB / 0.9512 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.0003367/0.8231, allocations: 310.4 kB / 1.195 GB, free: 13.63 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.842e-05/0.8232, allocations: 55.34 kB / 1.195 GB, free: 13.58 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007217/0.8239, allocations: 444.5 kB / 1.196 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.824, allocations: 4 kB / 1.196 GB, free: 13.13 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.824, allocations: 7.938 kB / 1.196 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006169/0.8246, allocations: 0.6557 MB / 1.196 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.8263, allocations: 1.21 MB / 1.197 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.8263, allocations: 4.203 kB / 1.197 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004838/0.8268, allocations: 99.88 kB / 1.198 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.603e-06/0.8268, allocations: 4 kB / 1.198 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.8269, allocations: 8 kB / 1.198 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003008/0.8272, allocations: 0.586 MB / 1.198 GB, free: 10.37 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.8272, allocations: 4 kB / 1.198 GB, free: 10.36 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009212/0.8281, allocations: 0.7982 MB / 1.199 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.8284, allocations: 176.4 kB / 1.199 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/0.8285, allocations: 8 kB / 1.199 GB, free: 9.285 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.8289, allocations: 47.89 kB / 1.199 GB, free: 9.238 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.829, allocations: 27.92 kB / 1.199 GB, free: 9.211 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.829, allocations: 20 kB / 1.199 GB, free: 9.191 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003961/0.8294, allocations: 350.8 kB / 1.2 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8294, allocations: 4 kB / 1.2 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009094/0.8304, allocations: 343.1 kB / 1.2 GB, free: 8.512 MB / 0.9512 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.0004441/0.8308, allocations: 191.5 kB / 1.2 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0011/0.8319, allocations: 0.5746 MB / 1.201 GB, free: 7.746 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.8319, allocations: 4.375 kB / 1.201 GB, free: 7.742 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.8323, allocations: 183.8 kB / 1.201 GB, free: 7.562 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.8339, allocations: 359.9 kB / 1.201 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.8363, allocations: 1.673 MB / 1.203 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.8368, allocations: 0.9533 MB / 1.204 GB, free: 4.512 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0007054/0.8375, allocations: 204.9 kB / 1.204 GB, free: 4.312 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.8376, allocations: 55.42 kB / 1.204 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of SimCode: time 5.81e-07/0.8377, allocations: 0 / 1.204 GB, free: 4.258 MB / 0.9512 GB Notification: Performance of Templates: time 0.01922/0.8569, allocations: 11.03 MB / 1.215 GB, free: 9.395 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_MassFraction.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.MassFraction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches