Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.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: "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_10_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,fileNamePrefix="Buildings_10_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance",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.00119/0.00119, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001161/0.001161, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.226/1.226, allocations: 222.9 MB / 239.9 MB, free: 4.547 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.403/2.403, allocations: 437 MB / 0.7101 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.91 kB / 0.8689 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4697/0.4711, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.1575/0.6286, allocations: 184.9 MB / 1.197 GB, free: 9.227 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01262/0.6413, allocations: 12.96 MB / 1.21 GB, free: 12.23 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007437/0.642, allocations: 31.81 kB / 1.21 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0009979/0.6431, allocations: 370 kB / 1.21 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.6452, allocations: 1.078 MB / 1.212 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00137/0.6466, allocations: 0.6301 MB / 1.212 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002015/0.6487, allocations: 2.024 MB / 1.214 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000936/0.6496, allocations: 0.8121 MB / 1.215 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/0.6525, allocations: 1.775 MB / 1.217 GB, free: 5.484 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.6539, allocations: 0.7072 MB / 1.217 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.654, allocations: 80 kB / 1.217 GB, free: 4.703 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.6553, allocations: 0.9196 MB / 1.218 GB, free: 3.781 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0003443/0.6557, allocations: 391 kB / 1.219 GB, free: 3.398 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004697/0.6562, allocations: 0.4937 MB / 1.219 GB, free: 2.902 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001476/0.6576, allocations: 1.531 MB / 1.221 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.6576, allocations: 0 / 1.221 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.102e-06/0.6577, allocations: 0 / 1.221 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.779e-06/0.6577, allocations: 4 kB / 1.221 GB, free: 1.363 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.001482/0.6592, allocations: 1.227 MB / 1.222 GB, free: 84 kB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.6592, allocations: 8.031 kB / 1.222 GB, free: 76 kB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.6593, allocations: 126.5 kB / 1.222 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.6604, allocations: 214.6 kB / 1.222 GB, free: 15.73 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007983/0.6612, allocations: 0.6441 MB / 1.223 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.002e-05/0.6613, allocations: 58 kB / 1.223 GB, free: 14.99 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.6614, allocations: 76 kB / 1.223 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.6625, allocations: 0.9326 MB / 1.224 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.6626, allocations: 11.89 kB / 1.224 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.053e-05/0.6626, allocations: 39.88 kB / 1.224 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.764e-05/0.6627, allocations: 25.31 kB / 1.224 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00084/0.6635, allocations: 0.6177 MB / 1.225 GB, free: 13.21 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.0036/0.6671, allocations: 4.582 MB / 1.229 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007052/0.6678, allocations: 0.5479 MB / 1.23 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.6681, allocations: 248.4 kB / 1.23 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001537/0.6683, allocations: 109.1 kB / 1.23 GB, free: 7.367 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.6683, allocations: 38.56 kB / 1.23 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=43): time 1.433e-06/0.6684, allocations: 0 / 1.23 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of matching and sorting (n=45): time 0.002372/0.6707, allocations: 1.597 MB / 1.231 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.6708, allocations: 106.8 kB / 1.232 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006946/0.6715, allocations: 0.7193 MB / 1.232 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.706e-05/0.6715, allocations: 37.7 kB / 1.232 GB, free: 4.762 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.6718, allocations: 407.8 kB / 1.233 GB, free: 4.359 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.6719, allocations: 165.7 kB / 1.233 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.6721, allocations: 118.2 kB / 1.233 GB, free: 4.074 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.6722, allocations: 326 kB / 1.233 GB, free: 3.75 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002635/0.6724, allocations: 197.2 kB / 1.233 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.6728, allocations: 409 kB / 1.234 GB, free: 3.062 MB / 0.9825 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (sin.p = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.6748, allocations: 1.191 MB / 1.235 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6749, allocations: 0 / 1.235 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008597/0.6757, allocations: 0.6721 MB / 1.236 GB, free: 1.09 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.6757, allocations: 13.56 kB / 1.236 GB, free: 1.078 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.6758, allocations: 8 kB / 1.236 GB, free: 1.07 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.6758, allocations: 8 kB / 1.236 GB, free: 1.062 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004014/0.6762, allocations: 123.8 kB / 1.236 GB, free: 0.9414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.6762, allocations: 19.92 kB / 1.236 GB, free: 0.9219 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005471/0.6768, allocations: 63.81 kB / 1.236 GB, free: 0.8594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.153e-05/0.6768, allocations: 24 kB / 1.236 GB, free: 0.8359 MB / 0.9825 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: vol.dynBal.medium.p = vol.dynBal.p_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 2 (intTraSubOut.local_reset,intTraSubIn.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0002834/0.6771, allocations: 275 kB / 1.236 GB, free: 0.5586 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000131/0.6772, allocations: 86.91 kB / 1.236 GB, free: 484 kB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001468/0.6774, allocations: 95.66 kB / 1.236 GB, free: 380 kB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.6774, allocations: 4 kB / 1.236 GB, free: 376 kB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.6774, allocations: 4 kB / 1.236 GB, free: 372 kB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006194/0.678, allocations: 0.6911 MB / 1.237 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.6801, allocations: 1.642 MB / 1.239 GB, free: 13.84 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.6801, allocations: 4 kB / 1.239 GB, free: 13.83 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004101/0.6805, allocations: 103.9 kB / 1.239 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.6805, allocations: 7.984 kB / 1.239 GB, free: 13.72 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.301e-05/0.6805, allocations: 19.98 kB / 1.239 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.411e-06/0.6806, allocations: 8 kB / 1.239 GB, free: 13.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.6806, allocations: 4 kB / 1.239 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.6815, allocations: 0.8686 MB / 1.24 GB, free: 12.76 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002313/0.6817, allocations: 208 kB / 1.24 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.47e-05/0.6818, allocations: 12 kB / 1.24 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000468/0.6823, allocations: 43.91 kB / 1.24 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.6824, allocations: 43.83 kB / 1.24 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.927e-05/0.6824, allocations: 20 kB / 1.24 GB, free: 12.42 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005139/0.6829, allocations: 0.5107 MB / 1.24 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6829, allocations: 0 / 1.24 GB, free: 11.91 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005808/0.6835, allocations: 196 kB / 1.241 GB, free: 11.72 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 5 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.mC[1],intTraSubIn.y,intTraSubOut.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 (45): * Single equations (assignments): 45 * 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.001382/0.6849, allocations: 1.502 MB / 1.242 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0007249/0.6857, allocations: 0.513 MB / 1.243 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.6857, allocations: 0 / 1.243 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002617/0.6859, allocations: 212.7 kB / 1.243 GB, free: 9.449 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.6877, allocations: 482.4 kB / 1.243 GB, free: 8.984 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0078/0.6956, allocations: 7.188 MB / 1.25 GB, free: 1.391 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005103/0.6961, allocations: 1.032 MB / 1.251 GB, free: 340 kB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005739/0.6967, allocations: 199 kB / 1.252 GB, free: 136 kB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3688/1.065, allocations: 288.8 kB / 1.252 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of SimCode: time 1.152e-06/1.065, allocations: 4 kB / 1.252 GB, free: 234.3 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.37/3.435, allocations: 21.87 MB / 1.273 GB, free: 228.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/3.435, allocations: 287.6 kB / 1.273 GB, free: 228 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.606/6.041, allocations: 0 / 1.273 GB, free: 228 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.fmu > Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches