Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTraSubIn.C|senTraSubOut.C|cheConMas.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") translateModel(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTraSubIn.C|senTraSubOut.C|cheConMas.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00209/0.00209, allocations: 112.6 kB / 16.37 MB, free: 6 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.002148/0.002148, allocations: 196 kB / 17.31 MB, free: 5.613 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.409/1.409, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.565/2.565, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002168/0.002168, allocations: 64.59 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3692, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance): time 0.8556/1.225, allocations: 187.3 MB / 1.21 GB, free: 13.44 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01754/1.242, allocations: 13.07 MB / 1.222 GB, free: 2.844 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001723/1.244, allocations: 31.38 kB / 1.222 GB, free: 2.832 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001567/1.246, allocations: 428.3 kB / 1.223 GB, free: 2.473 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.004114/1.25, allocations: 1.155 MB / 1.224 GB, free: 1.562 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002241/1.252, allocations: 0.7153 MB / 1.225 GB, free: 1.012 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.003047/1.255, allocations: 2.016 MB / 1.227 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/1.257, allocations: 0.8367 MB / 1.227 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004885/1.262, allocations: 1.811 MB / 1.229 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/1.264, allocations: 0.6691 MB / 1.23 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001407/1.264, allocations: 80 kB / 1.23 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002199/1.266, allocations: 0.8731 MB / 1.231 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004167/1.266, allocations: 383 kB / 1.231 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0006114/1.267, allocations: 0.5015 MB / 1.232 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002197/1.269, allocations: 1.495 MB / 1.233 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.269, allocations: 0 / 1.233 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.653e-06/1.269, allocations: 0 / 1.233 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.384e-05/1.269, allocations: 0 / 1.233 GB, free: 10.04 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: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.002206/1.271, allocations: 1.24 MB / 1.234 GB, free: 8.742 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/1.271, allocations: 8.031 kB / 1.234 GB, free: 8.734 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001248/1.273, allocations: 218.6 kB / 1.235 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001216/1.274, allocations: 0.6715 MB / 1.235 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.724e-05/1.274, allocations: 62 kB / 1.235 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/1.274, allocations: 76 kB / 1.235 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/1.275, allocations: 0.9404 MB / 1.236 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.402e-05/1.275, allocations: 0 / 1.236 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.602e-05/1.276, allocations: 32 kB / 1.236 GB, free: 6.621 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.067e-05/1.276, allocations: 42.36 kB / 1.236 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009173/1.276, allocations: 0.6177 MB / 1.237 GB, free: 5.957 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.005076/1.282, allocations: 4.574 MB / 1.241 GB, free: 1.09 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007977/1.282, allocations: 0.5446 MB / 1.242 GB, free: 0.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/1.283, allocations: 242.5 kB / 1.242 GB, free: 260 kB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00021/1.283, allocations: 97.09 kB / 1.242 GB, free: 144 kB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/1.283, allocations: 42.5 kB / 1.242 GB, free: 92 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=43): time 2.274e-06/1.283, allocations: 4 kB / 1.242 GB, free: 88 kB / 0.9356 GB Notification: Performance of matching and sorting (n=45): time 0.002799/1.286, allocations: 1.59 MB / 1.244 GB, free: 14.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.511e-05/1.286, allocations: 114.7 kB / 1.244 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008412/1.287, allocations: 0.7116 MB / 1.245 GB, free: 13.57 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/1.287, allocations: 37.95 kB / 1.245 GB, free: 13.53 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003088/1.287, allocations: 415.7 kB / 1.245 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/1.287, allocations: 165.6 kB / 1.245 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/1.287, allocations: 114.2 kB / 1.245 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001782/1.288, allocations: 334 kB / 1.246 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/1.288, allocations: 185.2 kB / 1.246 GB, free: 12.33 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004962/1.288, allocations: 421 kB / 1.246 GB, free: 11.82 MB / 0.9512 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.002295/1.291, allocations: 1.187 MB / 1.247 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.828e-06/1.291, allocations: 0 / 1.247 GB, free: 10.53 MB / 0.9512 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001026/1.292, allocations: 0.6717 MB / 1.248 GB, free: 9.852 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/1.292, allocations: 11.94 kB / 1.248 GB, free: 9.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.292, allocations: 8 kB / 1.248 GB, free: 9.832 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/1.292, allocations: 8 kB / 1.248 GB, free: 9.824 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/1.292, allocations: 124.5 kB / 1.248 GB, free: 9.703 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/1.292, allocations: 15.92 kB / 1.248 GB, free: 9.688 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005547/1.293, allocations: 31.97 kB / 1.248 GB, free: 9.656 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/1.293, allocations: 31.98 kB / 1.248 GB, free: 9.625 MB / 0.9512 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.0004032/1.293, allocations: 272.1 kB / 1.249 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/1.294, allocations: 86.98 kB / 1.249 GB, free: 9.266 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/1.294, allocations: 83.67 kB / 1.249 GB, free: 9.18 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/1.294, allocations: 4 kB / 1.249 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/1.294, allocations: 7.938 kB / 1.249 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008313/1.295, allocations: 0.7027 MB / 1.249 GB, free: 8.379 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002444/1.297, allocations: 1.639 MB / 1.251 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.293e-06/1.297, allocations: 7.984 kB / 1.251 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004409/1.297, allocations: 100.4 kB / 1.251 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/1.297, allocations: 11.94 kB / 1.251 GB, free: 6.516 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/1.298, allocations: 12 kB / 1.251 GB, free: 6.504 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.788e-06/1.298, allocations: 7.938 kB / 1.251 GB, free: 6.496 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.298, allocations: 4 kB / 1.251 GB, free: 6.492 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/1.299, allocations: 0.8723 MB / 1.252 GB, free: 5.559 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003389/1.299, allocations: 204.1 kB / 1.252 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.898e-05/1.299, allocations: 23.92 kB / 1.252 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004216/1.3, allocations: 13.97 kB / 1.252 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.941e-05/1.3, allocations: 47.83 kB / 1.252 GB, free: 5.258 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.693e-05/1.3, allocations: 20 kB / 1.252 GB, free: 5.238 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007039/1.3, allocations: 0.5068 MB / 1.253 GB, free: 4.738 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/1.3, allocations: 0 / 1.253 GB, free: 4.738 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0007526/1.301, allocations: 203.9 kB / 1.253 GB, free: 4.539 MB / 0.9512 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.0005207/1.302, allocations: 212 kB / 1.253 GB, free: 4.344 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008317/1.303, allocations: 480.9 kB / 1.254 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/1.303, allocations: 4 kB / 1.254 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003096/1.303, allocations: 203.7 kB / 1.254 GB, free: 3.672 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/1.305, allocations: 475.9 kB / 1.254 GB, free: 3.207 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/1.308, allocations: 1.656 MB / 1.256 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008437/1.309, allocations: 1.032 MB / 1.257 GB, free: 416 kB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.000614/1.309, allocations: 191 kB / 1.257 GB, free: 220 kB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/1.309, allocations: 63.42 kB / 1.257 GB, free: 160 kB / 0.9512 GB Notification: Performance of SimCode: time 9.62e-07/1.309, allocations: 0 / 1.257 GB, free: 160 kB / 0.9512 GB Notification: Performance of Templates: time 0.02841/1.338, allocations: 15.04 MB / 1.272 GB, free: 1.359 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.makefile (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.sim & ./Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MixingVolumes_Validation_TraceSubstanceConservationDynamicBalance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.TraceSubstanceConservationDynamicBalance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches