Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.MixingVolumeTraceSubstanceReverseFlow,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volDyn.ports.1..m_flow|gain.y|volDyn.C.1.|volSte.C.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow") translateModel(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volDyn.ports.1..m_flow|gain.y|volDyn.C.1.|volSte.C.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005116/0.005116, allocations: 101.5 kB / 15.73 MB, free: 5.953 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.001127/0.001127, allocations: 192.2 kB / 16.67 MB, free: 5.883 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.888/2.888, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.91 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3521, allocations: 157.4 MB / 1.208 GB, free: 9.648 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow): time 1.068/1.42, allocations: 190.5 MB / 1.394 GB, free: 15.4 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01105/1.431, allocations: 5.718 MB / 1.399 GB, free: 10.74 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002451/1.434, allocations: 41.53 kB / 1.399 GB, free: 10.73 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.001883/1.436, allocations: 0.591 MB / 1.4 GB, free: 10.24 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.005723/1.441, allocations: 1.895 MB / 1.402 GB, free: 8.777 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.00343/1.445, allocations: 1.194 MB / 1.403 GB, free: 7.871 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.004891/1.45, allocations: 2.97 MB / 1.406 GB, free: 6.164 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001849/1.451, allocations: 1.123 MB / 1.407 GB, free: 5.496 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002723/1.454, allocations: 1.095 MB / 1.408 GB, free: 4.855 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002352/1.457, allocations: 0.9696 MB / 1.409 GB, free: 4.289 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0002205/1.457, allocations: 122.4 kB / 1.409 GB, free: 4.289 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003879/1.461, allocations: 1.452 MB / 1.411 GB, free: 3.52 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.0006665/1.461, allocations: 0.5732 MB / 1.411 GB, free: 3.141 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.001026/1.462, allocations: 0.7245 MB / 1.412 GB, free: 2.676 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.004127/1.467, allocations: 2.334 MB / 1.414 GB, free: 1.16 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/1.467, allocations: 2.969 kB / 1.414 GB, free: 1.16 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.024e-06/1.467, allocations: 3.938 kB / 1.414 GB, free: 1.156 MB / 1.092 GB Notification: Performance of Transformations before backend: time 2.931e-05/1.467, allocations: 0 / 1.414 GB, free: 1.156 MB / 1.092 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.00297/1.47, allocations: 1.621 MB / 1.416 GB, free: 15.95 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/1.47, allocations: 8.125 kB / 1.416 GB, free: 15.95 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002072/1.472, allocations: 327.5 kB / 1.416 GB, free: 15.8 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001515/1.473, allocations: 0.9165 MB / 1.417 GB, free: 15.11 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.082e-05/1.473, allocations: 78.77 kB / 1.417 GB, free: 15.07 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/1.474, allocations: 92.5 kB / 1.417 GB, free: 15.04 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001763/1.475, allocations: 1.081 MB / 1.418 GB, free: 14.44 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/1.475, allocations: 3.984 kB / 1.418 GB, free: 14.44 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.766e-05/1.475, allocations: 49.73 kB / 1.418 GB, free: 14.4 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.986e-05/1.475, allocations: 41.44 kB / 1.418 GB, free: 14.39 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/1.477, allocations: 0.989 MB / 1.419 GB, free: 13.91 MB / 1.107 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.006132/1.483, allocations: 4.217 MB / 1.423 GB, free: 9.941 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009269/1.484, allocations: 0.5909 MB / 1.424 GB, free: 9.344 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005197/1.485, allocations: 342.5 kB / 1.424 GB, free: 9.004 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001914/1.485, allocations: 101.5 kB / 1.424 GB, free: 8.887 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.788e-05/1.485, allocations: 54.84 kB / 1.424 GB, free: 8.82 MB / 1.107 GB Notification: Performance of pre-optimization done (n=53): time 2.324e-06/1.485, allocations: 0 / 1.424 GB, free: 8.82 MB / 1.107 GB Notification: Performance of matching and sorting (n=55): time 0.004152/1.489, allocations: 2.193 MB / 1.426 GB, free: 6.516 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/1.489, allocations: 55.97 kB / 1.427 GB, free: 6.449 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001084/1.49, allocations: 0.8882 MB / 1.427 GB, free: 5.555 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/1.49, allocations: 37.7 kB / 1.427 GB, free: 5.512 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003747/1.491, allocations: 0.5184 MB / 1.428 GB, free: 4.984 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.000175/1.491, allocations: 201.2 kB / 1.428 GB, free: 4.785 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/1.491, allocations: 126.6 kB / 1.428 GB, free: 4.656 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001434/1.491, allocations: 334 kB / 1.429 GB, free: 4.324 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005391/1.492, allocations: 285.8 kB / 1.429 GB, free: 4.047 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006264/1.492, allocations: 436.9 kB / 1.429 GB, free: 3.566 MB / 1.107 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.003912/1.496, allocations: 1.741 MB / 1.431 GB, free: 1.754 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/1.496, allocations: 0 / 1.431 GB, free: 1.754 MB / 1.107 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001549/1.498, allocations: 0.9301 MB / 1.432 GB, free: 0.8047 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/1.498, allocations: 8 kB / 1.432 GB, free: 0.7969 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/1.498, allocations: 4 kB / 1.432 GB, free: 0.793 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/1.498, allocations: 94.45 kB / 1.432 GB, free: 0.6914 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006937/1.499, allocations: 159.8 kB / 1.432 GB, free: 0.5352 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003816/1.503, allocations: 4.641 MB / 1.437 GB, free: 11.48 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/1.504, allocations: 36.08 kB / 1.437 GB, free: 11.44 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.987e-05/1.504, allocations: 24 kB / 1.437 GB, free: 11.42 MB / 1.123 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: 17 * 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 (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,1), (1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0006547/1.505, allocations: 349.4 kB / 1.437 GB, free: 11.07 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001873/1.505, allocations: 110.7 kB / 1.437 GB, free: 10.96 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002046/1.505, allocations: 113.2 kB / 1.437 GB, free: 10.85 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/1.505, allocations: 4 kB / 1.437 GB, free: 10.84 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.505, allocations: 4 kB / 1.437 GB, free: 10.84 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001146/1.506, allocations: 0.7614 MB / 1.438 GB, free: 10.03 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003333/1.509, allocations: 1.985 MB / 1.44 GB, free: 7.938 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/1.509, allocations: 8.062 kB / 1.44 GB, free: 7.93 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006975/1.51, allocations: 140.7 kB / 1.44 GB, free: 7.793 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/1.51, allocations: 44.77 kB / 1.44 GB, free: 7.746 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/1.51, allocations: 16 kB / 1.44 GB, free: 7.73 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001348/1.512, allocations: 1.607 MB / 1.442 GB, free: 5.977 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.512, allocations: 4 kB / 1.442 GB, free: 5.973 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001852/1.514, allocations: 1.208 MB / 1.443 GB, free: 4.707 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004947/1.514, allocations: 251.9 kB / 1.443 GB, free: 4.441 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/1.514, allocations: 19.94 kB / 1.443 GB, free: 4.422 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000685/1.515, allocations: 36.62 kB / 1.443 GB, free: 4.387 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/1.515, allocations: 43.89 kB / 1.443 GB, free: 4.344 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.498e-05/1.515, allocations: 31.92 kB / 1.443 GB, free: 4.312 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0008324/1.516, allocations: 0.6161 MB / 1.444 GB, free: 3.699 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.31e-07/1.516, allocations: 0 / 1.444 GB, free: 3.699 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.001016/1.517, allocations: 304 kB / 1.444 GB, free: 3.402 MB / 1.123 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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 (53): * Single equations (assignments): 52 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004719/1.517, allocations: 195.1 kB / 1.444 GB, free: 3.211 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.001619/1.519, allocations: 1.011 MB / 1.445 GB, free: 2.16 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.519, allocations: 1 kB / 1.445 GB, free: 2.16 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0006287/1.52, allocations: 454.1 kB / 1.446 GB, free: 1.703 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002587/1.522, allocations: 0.6514 MB / 1.446 GB, free: 1.066 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003555/1.526, allocations: 2.094 MB / 1.448 GB, free: 14.91 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008408/1.527, allocations: 1.17 MB / 1.45 GB, free: 13.71 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0008519/1.528, allocations: 252.4 kB / 1.45 GB, free: 13.46 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/1.528, allocations: 79.42 kB / 1.45 GB, free: 13.38 MB / 1.139 GB Notification: Performance of SimCode: time 1.152e-06/1.528, allocations: 0 / 1.45 GB, free: 13.38 MB / 1.139 GB Notification: Performance of Templates: time 0.03952/1.567, allocations: 22.45 MB / 1.472 GB, free: 7.234 MB / 1.154 GB make -j1 -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.makefile (rm -f Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.sim & ./Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MixingVolumes_Validation_MixingVolumeTraceSubstanceReverseFlow.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.MixingVolumes.Validation.MixingVolumeTraceSubstanceReverseFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches