Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.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.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") translateModel(Buildings.Fluid.Sensors.Examples.Density,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|masFloRat.ports.1..m_flow|senDenVol.d|senDenFlo.d",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.Density") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 99.7 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.001444/0.001444, allocations: 177.3 kB / 15.95 MB, free: 216 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.34/1.34, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.594/2.594, allocations: 436.5 MB / 0.7104 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003613, allocations: 12 kB / 0.8708 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.61/0.6104, allocations: 153.7 MB / 1.021 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.Density): time 0.161/0.7715, allocations: 154 MB / 1.171 GB, free: 6.691 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.008902/0.7804, allocations: 6.523 MB / 1.178 GB, free: 160 kB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007695/0.7812, allocations: 23.81 kB / 1.178 GB, free: 136 kB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001214/0.7824, allocations: 426.1 kB / 1.178 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003264/0.7857, allocations: 1.309 MB / 1.179 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.00269/0.7884, allocations: 1.028 MB / 1.18 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.001964/0.7904, allocations: 1.14 MB / 1.181 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.7915, allocations: 0.496 MB / 1.182 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001877/0.7933, allocations: 0.6191 MB / 1.182 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008118/0.7942, allocations: 386.4 kB / 1.183 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 7.97e-05/0.7943, allocations: 28 kB / 1.183 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002718/0.797, allocations: 0.8814 MB / 1.184 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0003315/0.7973, allocations: 227.4 kB / 1.184 GB, free: 9.609 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002914/0.7976, allocations: 173.3 kB / 1.184 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001751/0.7994, allocations: 1.005 MB / 1.185 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.7994, allocations: 0 / 1.185 GB, free: 8.426 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.566e-06/0.7994, allocations: 4 kB / 1.185 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.453e-05/0.7994, allocations: 0 / 1.185 GB, free: 8.422 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001794/0.8012, allocations: 0.9855 MB / 1.186 GB, free: 7.383 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.8013, allocations: 15.97 kB / 1.186 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001879/0.8032, allocations: 278.7 kB / 1.186 GB, free: 7.094 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009666/0.8042, allocations: 0.5563 MB / 1.187 GB, free: 6.496 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.8042, allocations: 41.31 kB / 1.187 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.454e-05/0.8043, allocations: 55.91 kB / 1.187 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.8054, allocations: 0.6439 MB / 1.188 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.8054, allocations: 0 / 1.188 GB, free: 5.742 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.8054, allocations: 20 kB / 1.188 GB, free: 5.723 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.263e-05/0.8055, allocations: 21.31 kB / 1.188 GB, free: 5.699 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009203/0.8064, allocations: 0.5243 MB / 1.188 GB, free: 5.176 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.002981/0.8094, allocations: 2.453 MB / 1.191 GB, free: 2.512 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006535/0.8101, allocations: 383.4 kB / 1.191 GB, free: 2.129 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003702/0.8104, allocations: 133.4 kB / 1.191 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.8105, allocations: 38.89 kB / 1.191 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=39): time 1.683e-06/0.8105, allocations: 0 / 1.191 GB, free: 1.934 MB / 0.9356 GB Notification: Performance of matching and sorting (n=39): time 0.001362/0.8119, allocations: 0.6346 MB / 1.192 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.8119, allocations: 55.41 kB / 1.192 GB, free: 1.227 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005547/0.8125, allocations: 0.4949 MB / 1.192 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.8125, allocations: 33.7 kB / 1.192 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002209/0.8128, allocations: 328.5 kB / 1.193 GB, free: 364 kB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.8129, allocations: 142 kB / 1.193 GB, free: 220 kB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.8129, allocations: 4 kB / 1.193 GB, free: 216 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.8131, allocations: 370.8 kB / 1.193 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003339/0.8134, allocations: 172.8 kB / 1.193 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.8139, allocations: 283.3 kB / 1.194 GB, free: 15.35 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000386/0.8143, allocations: 211.9 kB / 1.194 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.8143, allocations: 0 / 1.194 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008803/0.8152, allocations: 0.5394 MB / 1.194 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003102/0.8155, allocations: 0.8771 MB / 1.195 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.377e-06/0.8155, allocations: 4 kB / 1.195 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.8155, allocations: 4 kB / 1.195 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/0.8163, allocations: 143.8 kB / 1.195 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003409/0.8166, allocations: 0.5938 MB / 1.196 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006544/0.8173, allocations: 87.62 kB / 1.196 GB, free: 12.8 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.8174, allocations: 12 kB / 1.196 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.096e-06/0.8174, allocations: 4 kB / 1.196 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007891/0.8182, allocations: 471.8 kB / 1.196 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.8182, allocations: 0 / 1.196 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.722e-06/0.8182, allocations: 4 kB / 1.196 GB, free: 12.32 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005081/0.8187, allocations: 131.9 kB / 1.196 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.8187, allocations: 11.88 kB / 1.197 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/0.8193, allocations: 75.64 kB / 1.197 GB, free: 12.11 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.8193, allocations: 19.98 kB / 1.197 GB, free: 12.09 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 (53): * Single equations (assignments): 52 * 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.0003316/0.8197, allocations: 305 kB / 1.197 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.109e-05/0.8198, allocations: 63.23 kB / 1.197 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008548/0.8206, allocations: 494.7 kB / 1.197 GB, free: 11.22 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.8207, allocations: 11.94 kB / 1.197 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.8207, allocations: 0 / 1.197 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007897/0.8215, allocations: 0.7121 MB / 1.198 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.8234, allocations: 1.288 MB / 1.199 GB, free: 9.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.8235, allocations: 4 kB / 1.199 GB, free: 9.039 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006328/0.8241, allocations: 136 kB / 1.2 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.8241, allocations: 4 kB / 1.2 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.161e-05/0.8242, allocations: 15.94 kB / 1.2 GB, free: 8.887 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002839/0.8244, allocations: 0.5861 MB / 1.2 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.8245, allocations: 12.02 kB / 1.2 GB, free: 8.266 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001207/0.8257, allocations: 0.8885 MB / 1.201 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.8259, allocations: 192.2 kB / 1.201 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.14e-05/0.826, allocations: 8 kB / 1.201 GB, free: 7.082 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004938/0.8265, allocations: 51.86 kB / 1.201 GB, free: 7.031 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.669e-05/0.8266, allocations: 31.92 kB / 1.201 GB, free: 7 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.8267, allocations: 12 kB / 1.201 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003876/0.8271, allocations: 354.8 kB / 1.202 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8271, allocations: 0 / 1.202 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0009535/0.828, allocations: 355.2 kB / 1.202 GB, free: 6.297 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,senDenFlo.d) * 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 (39): * Single equations (assignments): 38 * 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.0004354/0.8285, allocations: 211.7 kB / 1.202 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.8299, allocations: 0.6912 MB / 1.203 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.8299, allocations: 0 / 1.203 GB, free: 5.398 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004094/0.8303, allocations: 224.6 kB / 1.203 GB, free: 5.18 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.832, allocations: 354.4 kB / 1.203 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002302/0.8343, allocations: 1.72 MB / 1.205 GB, free: 3.066 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004788/0.8348, allocations: 0.9768 MB / 1.206 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000688/0.8355, allocations: 212.9 kB / 1.206 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001333/0.8356, allocations: 51.42 kB / 1.206 GB, free: 1.805 MB / 0.9512 GB Notification: Performance of SimCode: time 2.61e-07/0.8356, allocations: 0 / 1.206 GB, free: 1.805 MB / 0.9512 GB Notification: Performance of Templates: time 0.02056/0.8562, allocations: 11.5 MB / 1.217 GB, free: 6.473 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.makefile (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.Density -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.Density_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_Density.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.Density.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches