Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.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: "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance,fileNamePrefix="Buildings_9_Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance,fileNamePrefix="Buildings_9_Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001856/0.001856, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00131/0.00131, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.281/1.281, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.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.277/2.277, allocations: 390.2 MB / 0.6643 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.83 kB / 0.812 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6042/0.6054, allocations: 140.4 MB / 0.9491 GB, free: 9.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance): time 0.2202/0.8256, allocations: 188.1 MB / 1.133 GB, free: 5.379 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.008439/0.8341, allocations: 5.746 MB / 1.138 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000817/0.835, allocations: 35.75 kB / 1.138 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.8365, allocations: 0.4975 MB / 1.139 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.003728/0.8402, allocations: 1.517 MB / 1.14 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00304/0.8433, allocations: 1.07 MB / 1.141 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003853/0.8471, allocations: 3.491 MB / 1.145 GB, free: 8.992 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001222/0.8484, allocations: 0.8527 MB / 1.146 GB, free: 8.121 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001792/0.8502, allocations: 0.8908 MB / 1.147 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001883/0.8521, allocations: 0.8427 MB / 1.147 GB, free: 6.387 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001315/0.8522, allocations: 56 kB / 1.147 GB, free: 6.332 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00347/0.8557, allocations: 1.715 MB / 1.149 GB, free: 4.613 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004698/0.8562, allocations: 450.7 kB / 1.149 GB, free: 4.172 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0006465/0.8568, allocations: 0.5675 MB / 1.15 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002999/0.8598, allocations: 2.138 MB / 1.152 GB, free: 1.457 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.8599, allocations: 0 / 1.152 GB, free: 1.457 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8599, allocations: 4 kB / 1.152 GB, free: 1.453 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.286e-05/0.8599, allocations: 0 / 1.152 GB, free: 1.453 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002381/0.8623, allocations: 1.472 MB / 1.154 GB, free: 15.92 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.8623, allocations: 12.03 kB / 1.154 GB, free: 15.91 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/0.8625, allocations: 147.2 kB / 1.154 GB, free: 15.76 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001978/0.8645, allocations: 326.3 kB / 1.154 GB, free: 15.44 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.8657, allocations: 0.7725 MB / 1.155 GB, free: 14.62 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003402/0.8661, allocations: 129.9 kB / 1.155 GB, free: 14.5 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/0.8662, allocations: 87.94 kB / 1.155 GB, free: 14.41 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00186/0.8681, allocations: 1.06 MB / 1.156 GB, free: 13.32 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.8681, allocations: 3.938 kB / 1.156 GB, free: 13.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.271e-05/0.8682, allocations: 40 kB / 1.156 GB, free: 13.28 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.685e-05/0.8683, allocations: 37.98 kB / 1.156 GB, free: 13.24 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.8698, allocations: 0.8353 MB / 1.157 GB, free: 12.4 MB / 0.92 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.005368/0.8751, allocations: 4.054 MB / 1.161 GB, free: 8.082 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.8758, allocations: 368.7 kB / 1.161 GB, free: 7.715 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003036/0.8761, allocations: 214.2 kB / 1.161 GB, free: 7.504 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001877/0.8763, allocations: 97.09 kB / 1.162 GB, free: 7.391 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.8763, allocations: 46.48 kB / 1.162 GB, free: 7.336 MB / 0.92 GB Notification: Performance of pre-optimization done (n=36): time 2.485e-06/0.8763, allocations: 4 kB / 1.162 GB, free: 7.332 MB / 0.92 GB Notification: Performance of matching and sorting (n=38): time 0.002552/0.8789, allocations: 1.324 MB / 1.163 GB, free: 5.953 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.8789, allocations: 55.41 kB / 1.163 GB, free: 5.887 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.8803, allocations: 0.9921 MB / 1.164 GB, free: 4.871 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.8803, allocations: 37.7 kB / 1.164 GB, free: 4.828 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003773/0.8807, allocations: 495.3 kB / 1.164 GB, free: 4.34 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001274/0.8809, allocations: 145.9 kB / 1.165 GB, free: 4.195 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001961/0.8811, allocations: 110.2 kB / 1.165 GB, free: 4.082 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.8812, allocations: 338 kB / 1.165 GB, free: 3.746 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.8817, allocations: 229.2 kB / 1.165 GB, free: 3.52 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000609/0.8823, allocations: 409.2 kB / 1.166 GB, free: 3.055 MB / 0.92 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: volDyn.dynBal.medium.p = volDyn.dynBal.p_start (bou.p = volDyn.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.8848, allocations: 1.195 MB / 1.167 GB, free: 1.773 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.8848, allocations: 4 kB / 1.167 GB, free: 1.77 MB / 0.92 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001342/0.8861, allocations: 0.7497 MB / 1.167 GB, free: 1.012 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.8862, allocations: 8.938 kB / 1.167 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.8862, allocations: 4 kB / 1.167 GB, free: 1 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.8862, allocations: 8 kB / 1.168 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005356/0.8868, allocations: 136.1 kB / 1.168 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.7e-05/0.8868, allocations: 23.98 kB / 1.168 GB, free: 0.8359 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009553/0.8877, allocations: 83.78 kB / 1.168 GB, free: 0.7539 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/0.8878, allocations: 31.98 kB / 1.168 GB, free: 0.7227 MB / 0.92 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: volDyn.dynBal.medium.p = volDyn.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004569/0.8883, allocations: 309.5 kB / 1.168 GB, free: 420 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001654/0.8884, allocations: 106.7 kB / 1.168 GB, free: 312 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001749/0.8886, allocations: 101 kB / 1.168 GB, free: 212 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.8886, allocations: 4 kB / 1.168 GB, free: 208 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.8887, allocations: 4 kB / 1.168 GB, free: 204 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007329/0.8894, allocations: 0.6791 MB / 1.169 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002298/0.8917, allocations: 1.582 MB / 1.17 GB, free: 13.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.8917, allocations: 7.938 kB / 1.17 GB, free: 13.74 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.8921, allocations: 87.83 kB / 1.171 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.8921, allocations: 11.94 kB / 1.171 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.422e-05/0.8922, allocations: 12.5 kB / 1.171 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.8922, allocations: 8 kB / 1.171 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.463e-06/0.8922, allocations: 7.938 kB / 1.171 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.8933, allocations: 0.837 MB / 1.171 GB, free: 12.71 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003464/0.8936, allocations: 235.9 kB / 1.172 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.8938, allocations: 8 kB / 1.172 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006984/0.8945, allocations: 63.8 kB / 1.172 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.584e-05/0.8945, allocations: 31.94 kB / 1.172 GB, free: 12.36 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.393e-05/0.8946, allocations: 27.98 kB / 1.172 GB, free: 12.33 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0009522/0.8956, allocations: 0.7074 MB / 1.172 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8956, allocations: 0 / 1.172 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000738/0.8963, allocations: 252 kB / 1.173 GB, free: 11.37 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 3 (volDyn.dynBal.medium.Xi[1],volDyn.dynBal.U,volDyn.dynBal.mC[1]) * 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 (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001493/0.8978, allocations: 1.48 MB / 1.174 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008342/0.8987, allocations: 0.4886 MB / 1.175 GB, free: 9.336 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.8987, allocations: 4 kB / 1.175 GB, free: 9.332 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.8989, allocations: 186.7 kB / 1.175 GB, free: 9.152 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.9014, allocations: 0.595 MB / 1.175 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.9122, allocations: 8.229 MB / 1.183 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006702/0.9129, allocations: 1.099 MB / 1.184 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0009212/0.9138, allocations: 248.3 kB / 1.185 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004596/0.9143, allocations: 339.3 kB / 1.185 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of SimCode: time 5.41e-07/0.9143, allocations: 0 / 1.185 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04872/0.963, allocations: 26.61 MB / 1.211 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002281/0.9633, allocations: 263.4 kB / 1.211 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/3.334, allocations: 0 / 1.211 GB, free: 3.668 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.pipe ; mkfifo Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.pipe >> ../files/Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstance_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstance.fmu > Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches