Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.MixingVolumes.Examples.MixingVolumeMoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol1.T|vol1.X_w|QSen.u|QLat.u|vol1.p",fileNamePrefix="Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir") translateModel(Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol1.T|vol1.X_w|QSen.u|QLat.u|vol1.p",fileNamePrefix="Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 92.23 kB / 16.02 MB, free: 80 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.001683/0.001683, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.803/1.803, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.684/2.684, allocations: 437.8 MB / 0.7128 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004061/0.0004064, allocations: 11.98 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7525/0.753, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir): time 0.2103/0.9634, allocations: 194 MB / 1.213 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01494/0.9784, allocations: 10.31 MB / 1.223 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00226/0.9807, allocations: 51.69 kB / 1.223 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.9826, allocations: 469.1 kB / 1.224 GB, free: 2.312 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006522/0.9892, allocations: 1.844 MB / 1.225 GB, free: 472 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004533/0.9937, allocations: 1.234 MB / 1.227 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005551/0.9993, allocations: 3.67 MB / 1.23 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002418/1.002, allocations: 0.9969 MB / 1.231 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005499/1.007, allocations: 1.46 MB / 1.233 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002571/1.01, allocations: 0.9226 MB / 1.234 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0004188/1.01, allocations: 44 kB / 1.234 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005266/1.016, allocations: 2.377 MB / 1.236 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0007376/1.016, allocations: 346.7 kB / 1.236 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001513/1.018, allocations: 0.6386 MB / 1.237 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003361/1.021, allocations: 1.785 MB / 1.239 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/1.021, allocations: 0 / 1.239 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.973e-06/1.021, allocations: 0 / 1.239 GB, free: 2.941 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.635e-05/1.021, allocations: 0 / 1.239 GB, free: 2.941 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 253 * Number of variables: 253 Notification: Performance of Generate backend data structure: time 0.003504/1.025, allocations: 1.573 MB / 1.24 GB, free: 1.316 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/1.025, allocations: 12.03 kB / 1.24 GB, free: 1.305 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002158/1.027, allocations: 365.9 kB / 1.241 GB, free: 0.9453 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6773/1.704, allocations: 0.9125 MB / 1.241 GB, free: 217.3 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001721/1.705, allocations: 77.47 kB / 1.241 GB, free: 217.3 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005186/1.705, allocations: 101.2 kB / 1.242 GB, free: 217.3 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/1.708, allocations: 1.106 MB / 1.243 GB, free: 217.1 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.195e-05/1.708, allocations: 4.328 kB / 1.243 GB, free: 217.1 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-05/1.708, allocations: 42.25 kB / 1.243 GB, free: 217.1 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-05/1.708, allocations: 35.48 kB / 1.243 GB, free: 217.1 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001801/1.71, allocations: 0.8097 MB / 1.244 GB, free: 216.8 MB / 0.9825 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.006792/1.717, allocations: 5.084 MB / 1.248 GB, free: 213.2 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/1.718, allocations: 0.696 MB / 1.249 GB, free: 212.9 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006707/1.719, allocations: 354 kB / 1.25 GB, free: 212.8 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006239/1.719, allocations: 331.1 kB / 1.25 GB, free: 212.5 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/1.719, allocations: 46.41 kB / 1.25 GB, free: 212.4 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=70): time 3.396e-06/1.719, allocations: 0.5938 kB / 1.25 GB, free: 212.4 MB / 0.9825 GB Notification: Performance of matching and sorting (n=70): time 0.002192/1.722, allocations: 0.9361 MB / 1.251 GB, free: 212.1 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/1.722, allocations: 60.22 kB / 1.251 GB, free: 212 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/1.723, allocations: 0.8799 MB / 1.252 GB, free: 211.6 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.773e-05/1.723, allocations: 37.39 kB / 1.252 GB, free: 211.6 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004173/1.724, allocations: 0.5629 MB / 1.252 GB, free: 211.1 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/1.724, allocations: 244 kB / 1.253 GB, free: 211 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/1.724, allocations: 67.83 kB / 1.253 GB, free: 210.9 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 8.34e-05/1.724, allocations: 340 kB / 1.253 GB, free: 210.6 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/1.725, allocations: 255.5 kB / 1.253 GB, free: 210.5 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006169/1.725, allocations: 452 kB / 1.254 GB, free: 210.2 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/1.726, allocations: 0.7078 MB / 1.254 GB, free: 209.8 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/1.726, allocations: 1.562 kB / 1.254 GB, free: 209.8 MB / 0.9825 GB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001751/1.728, allocations: 0.8323 MB / 1.255 GB, free: 209.4 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.728, allocations: 228.7 kB / 1.255 GB, free: 209.2 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/1.728, allocations: 4.5 kB / 1.255 GB, free: 209.2 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.43e-05/1.728, allocations: 8.625 kB / 1.255 GB, free: 209.2 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/1.73, allocations: 258.4 kB / 1.256 GB, free: 209.2 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/1.731, allocations: 1.4 MB / 1.257 GB, free: 207.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/1.732, allocations: 124.8 kB / 1.257 GB, free: 207.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.078e-05/1.732, allocations: 29.67 kB / 1.257 GB, free: 207.7 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/1.732, allocations: 5.75 kB / 1.257 GB, free: 207.7 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001532/1.734, allocations: 0.7088 MB / 1.258 GB, free: 207.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/1.734, allocations: 8.062 kB / 1.258 GB, free: 207.4 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/1.734, allocations: 8.312 kB / 1.258 GB, free: 207.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/1.735, allocations: 249.9 kB / 1.258 GB, free: 207.4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009698/1.736, allocations: 1.399 MB / 1.259 GB, free: 206 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000917/1.737, allocations: 113.9 kB / 1.26 GB, free: 205.9 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.874e-05/1.737, allocations: 40.73 kB / 1.26 GB, free: 205.9 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 4 (PI1.I.trigger_internal,PI.I.trigger_internal,QLat.local_reset,QSen.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 93 * 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.0006091/1.738, allocations: 363.5 kB / 1.26 GB, free: 205.6 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/1.738, allocations: 117.1 kB / 1.26 GB, free: 205.6 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001713/1.74, allocations: 0.7866 MB / 1.261 GB, free: 205.2 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/1.74, allocations: 6.875 kB / 1.261 GB, free: 205.2 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/1.74, allocations: 0 / 1.261 GB, free: 205.2 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001307/1.741, allocations: 0.7144 MB / 1.261 GB, free: 204.9 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003349/1.745, allocations: 1.933 MB / 1.263 GB, free: 203.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.115e-06/1.745, allocations: 6.094 kB / 1.263 GB, free: 203.9 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007175/1.745, allocations: 146 kB / 1.264 GB, free: 203.9 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004208/1.746, allocations: 44.02 kB / 1.264 GB, free: 203.9 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/1.746, allocations: 20.48 kB / 1.264 GB, free: 203.9 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/1.747, allocations: 1.343 MB / 1.265 GB, free: 202.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/1.747, allocations: 2.219 kB / 1.265 GB, free: 202.5 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002114/1.749, allocations: 1.233 MB / 1.266 GB, free: 201.9 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/1.749, allocations: 251.4 kB / 1.266 GB, free: 201.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/1.75, allocations: 15.11 kB / 1.266 GB, free: 201.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/1.75, allocations: 67.09 kB / 1.266 GB, free: 201.7 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/1.75, allocations: 59.05 kB / 1.266 GB, free: 201.7 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.823e-05/1.75, allocations: 22.91 kB / 1.266 GB, free: 201.7 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008191/1.751, allocations: 0.597 MB / 1.267 GB, free: 201.4 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/1.751, allocations: 0 / 1.267 GB, free: 201.4 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00158/1.753, allocations: 0.5358 MB / 1.268 GB, free: 201.3 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,QSen.y,QLat.y,PI.I.y,PI1.I.y) * 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 (70): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004848/1.753, allocations: 221.7 kB / 1.268 GB, free: 201.2 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003533/1.757, allocations: 1.18 MB / 1.269 GB, free: 200.8 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/1.757, allocations: 1.156 kB / 1.269 GB, free: 200.8 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007646/1.758, allocations: 442.3 kB / 1.269 GB, free: 200.6 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002722/1.76, allocations: 0.5066 MB / 1.27 GB, free: 200.5 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/1.764, allocations: 2.806 MB / 1.273 GB, free: 198.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/1.765, allocations: 1.139 MB / 1.274 GB, free: 198 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/1.765, allocations: 89.22 kB / 1.274 GB, free: 198 MB / 0.9825 GB Notification: Performance of SimCode: time 1.052e-06/1.765, allocations: 3.938 kB / 1.274 GB, free: 198 MB / 0.9825 GB Notification: Performance of Templates: time 0.02375/1.789, allocations: 21.28 MB / 1.295 GB, free: 179.8 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.makefile (rm -f Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.pipe ; mkfifo Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.pipe >> ../files/Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.sim & ./Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_MixingVolumes_Examples_MixingVolumeMoistAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.MixingVolumes.Examples.MixingVolumeMoistAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches