Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009118/0.0009118, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.0009366/0.0009367, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.533/2.533, allocations: 436.5 MB / 0.7104 GB, free: 7.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004024, allocations: 11.98 kB / 0.8708 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6297/0.6301, allocations: 153.7 MB / 1.021 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.8182/1.448, allocations: 247.2 MB / 1.262 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.03192/1.48, allocations: 23.91 MB / 1.286 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004194/1.485, allocations: 98.47 kB / 1.286 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005671/1.49, allocations: 1.72 MB / 1.287 GB, free: 7.922 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.02004/1.51, allocations: 5.88 MB / 1.293 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.009198/1.52, allocations: 2.71 MB / 1.296 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009692/1.529, allocations: 5.142 MB / 1.301 GB, free: 7.766 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00552/1.535, allocations: 2.568 MB / 1.303 GB, free: 23.4 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006638/1.542, allocations: 2.62 MB / 1.306 GB, free: 23.39 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004108/1.546, allocations: 1.911 MB / 1.308 GB, free: 23.38 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0011/1.547, allocations: 151.8 kB / 1.308 GB, free: 23.38 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007208/1.554, allocations: 2.09 MB / 1.31 GB, free: 23.38 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.002469/1.557, allocations: 1.314 MB / 1.311 GB, free: 23.38 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002288/1.559, allocations: 0.7592 MB / 1.312 GB, free: 23.35 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.008081/1.567, allocations: 4.502 MB / 1.316 GB, free: 23 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.567, allocations: 4 kB / 1.316 GB, free: 23 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.587e-06/1.567, allocations: 1.75 kB / 1.316 GB, free: 23 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002572/1.567, allocations: 0 / 1.316 GB, free: 23 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.007428/1.575, allocations: 3.419 MB / 1.32 GB, free: 21.3 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/1.575, allocations: 15.92 kB / 1.32 GB, free: 21.29 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006059/1.581, allocations: 0.9476 MB / 1.321 GB, free: 21.08 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005508/1.586, allocations: 2.23 MB / 1.323 GB, free: 20.53 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002557/1.587, allocations: 275.9 kB / 1.323 GB, free: 20.46 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007424/1.587, allocations: 299.5 kB / 1.323 GB, free: 20.45 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006398/1.594, allocations: 3.329 MB / 1.327 GB, free: 20.19 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-05/1.594, allocations: 3.094 kB / 1.327 GB, free: 20.19 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003667/1.594, allocations: 114.6 kB / 1.327 GB, free: 20.19 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/1.594, allocations: 113.3 kB / 1.327 GB, free: 20.18 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004811/1.599, allocations: 2.797 MB / 1.33 GB, free: 20.14 MB / 1.014 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.0163/1.615, allocations: 13.28 MB / 1.343 GB, free: 12.28 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002536/1.618, allocations: 1.73 MB / 1.344 GB, free: 12.03 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001673/1.618, allocations: 56.28 kB / 1.344 GB, free: 12.02 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.574e-05/1.618, allocations: 61.62 kB / 1.344 GB, free: 11.98 MB / 1.014 GB Notification: Performance of pre-optimization done (n=186): time 3.837e-06/1.618, allocations: 0 / 1.344 GB, free: 11.98 MB / 1.014 GB Notification: Performance of matching and sorting (n=186): time 0.004908/1.623, allocations: 2.784 MB / 1.347 GB, free: 11.47 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/1.623, allocations: 70.69 kB / 1.347 GB, free: 11.4 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002854/1.626, allocations: 1.981 MB / 1.349 GB, free: 10.84 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002706/1.626, allocations: 68.55 kB / 1.349 GB, free: 10.8 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008122/1.627, allocations: 1.413 MB / 1.35 GB, free: 10.13 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005849/1.628, allocations: 0.6512 MB / 1.351 GB, free: 9.648 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/1.628, allocations: 42.56 kB / 1.351 GB, free: 9.648 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001635/1.628, allocations: 391.6 kB / 1.352 GB, free: 9.316 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001235/1.629, allocations: 0.8052 MB / 1.352 GB, free: 9.191 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/1.631, allocations: 1.432 MB / 1.354 GB, free: 8.34 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001543/1.633, allocations: 1.059 MB / 1.355 GB, free: 8.215 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/1.633, allocations: 5.344 kB / 1.355 GB, free: 8.215 MB / 1.014 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003916/1.636, allocations: 2.506 MB / 1.357 GB, free: 7.758 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.001871/1.638, allocations: 5.24 MB / 1.362 GB, free: 2.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/1.638, allocations: 13.06 kB / 1.362 GB, free: 2.16 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.757e-05/1.638, allocations: 25.06 kB / 1.362 GB, free: 2.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002586/1.641, allocations: 0.5712 MB / 1.363 GB, free: 2.062 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002078/1.643, allocations: 4.146 MB / 1.367 GB, free: 13.93 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003581/1.647, allocations: 417.8 kB / 1.367 GB, free: 13.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002344/1.647, allocations: 90.89 kB / 1.367 GB, free: 13.72 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/1.647, allocations: 2.969 kB / 1.367 GB, free: 13.72 MB / 1.029 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003395/1.65, allocations: 2.236 MB / 1.37 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/1.65, allocations: 12.12 kB / 1.37 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.484e-05/1.65, allocations: 24.5 kB / 1.37 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001814/1.652, allocations: 483.7 kB / 1.37 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.955e-05/1.652, allocations: 35.77 kB / 1.37 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003451/1.656, allocations: 382.4 kB / 1.371 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001986/1.656, allocations: 87.05 kB / 1.371 GB, free: 13.2 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001672/1.658, allocations: 0.864 MB / 1.371 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007583/1.658, allocations: 274.7 kB / 1.372 GB, free: 12.77 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003438/1.662, allocations: 2.153 MB / 1.374 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/1.662, allocations: 18.31 kB / 1.374 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/1.662, allocations: 2.625 kB / 1.374 GB, free: 12.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0025/1.664, allocations: 1.93 MB / 1.376 GB, free: 11.83 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009205/1.674, allocations: 5.232 MB / 1.381 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/1.674, allocations: 2.531 kB / 1.381 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002315/1.676, allocations: 0.5044 MB / 1.381 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.535e-05/1.676, allocations: 9.062 kB / 1.381 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000178/1.676, allocations: 51.89 kB / 1.381 GB, free: 10.18 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001968/1.678, allocations: 4.131 MB / 1.385 GB, free: 6.043 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/1.678, allocations: 6.156 kB / 1.385 GB, free: 6.043 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004651/1.683, allocations: 3.519 MB / 1.389 GB, free: 4.949 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00164/1.685, allocations: 0.5722 MB / 1.389 GB, free: 4.629 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005762/1.685, allocations: 46.11 kB / 1.389 GB, free: 4.625 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002579/1.688, allocations: 246 kB / 1.39 GB, free: 4.531 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/1.688, allocations: 119.2 kB / 1.39 GB, free: 4.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00017/1.688, allocations: 76.09 kB / 1.39 GB, free: 4.469 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002109/1.69, allocations: 1.313 MB / 1.391 GB, free: 4.098 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.61e-07/1.69, allocations: 0 / 1.391 GB, free: 4.098 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004777/1.695, allocations: 1.727 MB / 1.393 GB, free: 3.844 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.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 (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008507/1.696, allocations: 378.4 kB / 1.393 GB, free: 3.664 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.006075/1.702, allocations: 3.351 MB / 1.396 GB, free: 2.156 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/1.702, allocations: 4.312 kB / 1.396 GB, free: 2.152 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001803/1.704, allocations: 1.043 MB / 1.398 GB, free: 1.441 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008962/1.713, allocations: 1.572 MB / 1.399 GB, free: 120 kB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/1.726, allocations: 7.911 MB / 1.407 GB, free: 8.832 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/1.728, allocations: 2.255 MB / 1.409 GB, free: 6.68 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.004414/1.733, allocations: 1.112 MB / 1.41 GB, free: 5.562 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008148/1.733, allocations: 229.1 kB / 1.41 GB, free: 5.348 MB / 1.045 GB Notification: Performance of SimCode: time 7.81e-07/1.733, allocations: 0 / 1.41 GB, free: 5.348 MB / 1.045 GB Notification: Performance of Templates: time 0.08338/1.817, allocations: 52.07 MB / 1.461 GB, free: 2.133 MB / 1.092 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches