Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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: 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_10_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_10_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.001026/0.001026, allocations: 84.22 kB / 15.06 MB, free: 1.09 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.001288/0.001288, allocations: 168.7 kB / 15.95 MB, free: 204 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.341/1.341, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.573/2.573, allocations: 437.7 MB / 0.7117 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005579/0.000558, allocations: 12 kB / 0.8722 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6355/0.6361, allocations: 153.8 MB / 1.022 GB, free: 76 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7885/1.425, allocations: 278.8 MB / 1.295 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02549/1.45, allocations: 24.17 MB / 1.318 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003443/1.454, allocations: 104.8 kB / 1.318 GB, free: 7.074 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.003302/1.457, allocations: 1.198 MB / 1.32 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0114/1.468, allocations: 4.366 MB / 1.324 GB, free: 6.863 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005253/1.474, allocations: 1.968 MB / 1.326 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01021/1.484, allocations: 10.44 MB / 1.336 GB, free: 6.777 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004131/1.488, allocations: 2.546 MB / 1.338 GB, free: 22.41 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007932/1.496, allocations: 3.189 MB / 1.341 GB, free: 22.38 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005964/1.502, allocations: 2.827 MB / 1.344 GB, free: 22.37 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008133/1.503, allocations: 153.5 kB / 1.344 GB, free: 22.37 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007382/1.51, allocations: 2.413 MB / 1.347 GB, free: 22.32 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0019/1.512, allocations: 1.427 MB / 1.348 GB, free: 22.23 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001604/1.514, allocations: 0.7617 MB / 1.349 GB, free: 22.2 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.005409/1.519, allocations: 4.737 MB / 1.354 GB, free: 19.85 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/1.519, allocations: 0 / 1.354 GB, free: 19.85 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.794e-06/1.519, allocations: 0 / 1.354 GB, free: 19.85 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 9.612e-05/1.519, allocations: 4 kB / 1.354 GB, free: 19.84 MB / 0.9981 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.005253/1.525, allocations: 3.488 MB / 1.357 GB, free: 17.72 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/1.525, allocations: 9 kB / 1.357 GB, free: 17.72 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005214/1.53, allocations: 0.9489 MB / 1.358 GB, free: 17.33 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004139/1.534, allocations: 2.381 MB / 1.36 GB, free: 16.33 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002072/1.534, allocations: 278.1 kB / 1.36 GB, free: 16.25 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003849/1.535, allocations: 294.1 kB / 1.361 GB, free: 16.25 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004914/1.54, allocations: 3.349 MB / 1.364 GB, free: 15.34 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.205e-05/1.54, allocations: 5.75 kB / 1.364 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002318/1.54, allocations: 114 kB / 1.364 GB, free: 15.33 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.032e-05/1.54, allocations: 113.8 kB / 1.364 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004126/1.544, allocations: 2.797 MB / 1.367 GB, free: 14.83 MB / 0.9981 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.01457/1.559, allocations: 13.29 MB / 1.38 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002328/1.561, allocations: 1.732 MB / 1.382 GB, free: 5.359 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/1.562, allocations: 1.117 MB / 1.383 GB, free: 5.211 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004675/1.563, allocations: 327.6 kB / 1.383 GB, free: 4.906 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/1.563, allocations: 60.47 kB / 1.383 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=186): time 4.458e-06/1.563, allocations: 0 / 1.383 GB, free: 4.863 MB / 0.9981 GB Notification: Performance of matching and sorting (n=186): time 0.004526/1.568, allocations: 2.787 MB / 1.386 GB, free: 4.348 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.678e-05/1.568, allocations: 69.22 kB / 1.386 GB, free: 4.281 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002342/1.57, allocations: 1.979 MB / 1.388 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002066/1.57, allocations: 67.95 kB / 1.388 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009299/1.571, allocations: 1.412 MB / 1.389 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006293/1.572, allocations: 0.6515 MB / 1.39 GB, free: 2.039 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.971e-05/1.572, allocations: 42.5 kB / 1.39 GB, free: 2.031 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001583/1.572, allocations: 393.4 kB / 1.39 GB, free: 1.672 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/1.573, allocations: 0.8089 MB / 1.391 GB, free: 1.145 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/1.575, allocations: 1.444 MB / 1.393 GB, free: 15.78 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/1.576, allocations: 1.058 MB / 1.394 GB, free: 15.14 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/1.577, allocations: 4 kB / 1.394 GB, free: 15.13 MB / 1.014 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.003864/1.58, allocations: 2.505 MB / 1.396 GB, free: 13.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002852/1.581, allocations: 472.6 kB / 1.396 GB, free: 12.82 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/1.581, allocations: 12 kB / 1.396 GB, free: 12.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.529e-05/1.581, allocations: 29.97 kB / 1.396 GB, free: 12.78 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/1.583, allocations: 0.5541 MB / 1.397 GB, free: 12.27 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001983/1.585, allocations: 4.161 MB / 1.401 GB, free: 8.004 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003079/1.588, allocations: 404.3 kB / 1.401 GB, free: 7.641 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/1.589, allocations: 88.42 kB / 1.402 GB, free: 7.574 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 9.137e-06/1.589, allocations: 8 kB / 1.402 GB, free: 7.566 MB / 1.014 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003444/1.592, allocations: 2.234 MB / 1.404 GB, free: 6.148 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/1.592, allocations: 12 kB / 1.404 GB, free: 6.137 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/1.592, allocations: 27.98 kB / 1.404 GB, free: 6.109 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/1.594, allocations: 477.6 kB / 1.404 GB, free: 5.688 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.042e-05/1.594, allocations: 36.48 kB / 1.404 GB, free: 5.656 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002961/1.597, allocations: 388.5 kB / 1.405 GB, free: 5.309 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001476/1.597, allocations: 87.23 kB / 1.405 GB, free: 5.242 MB / 1.014 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.001521/1.599, allocations: 0.8651 MB / 1.406 GB, free: 4.664 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004887/1.599, allocations: 272.7 kB / 1.406 GB, free: 4.395 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/1.602, allocations: 2.153 MB / 1.408 GB, free: 2.98 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/1.602, allocations: 27.94 kB / 1.408 GB, free: 2.953 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/1.602, allocations: 0 / 1.408 GB, free: 2.953 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002511/1.605, allocations: 1.924 MB / 1.41 GB, free: 1.559 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007798/1.613, allocations: 5.232 MB / 1.415 GB, free: 13.92 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.613, allocations: 8.031 kB / 1.415 GB, free: 13.91 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002359/1.615, allocations: 0.4951 MB / 1.415 GB, free: 13.45 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-05/1.615, allocations: 12 kB / 1.415 GB, free: 13.44 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000121/1.615, allocations: 52.92 kB / 1.415 GB, free: 13.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/1.617, allocations: 4.132 MB / 1.42 GB, free: 9.176 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/1.617, allocations: 6.812 kB / 1.42 GB, free: 9.172 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004571/1.622, allocations: 3.282 MB / 1.423 GB, free: 6.828 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/1.623, allocations: 0.5698 MB / 1.423 GB, free: 6.348 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003454/1.623, allocations: 48.31 kB / 1.423 GB, free: 6.328 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001977/1.625, allocations: 255 kB / 1.424 GB, free: 6.105 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/1.626, allocations: 113.5 kB / 1.424 GB, free: 6.008 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001476/1.626, allocations: 70.34 kB / 1.424 GB, free: 5.953 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.001821/1.628, allocations: 1.313 MB / 1.425 GB, free: 4.973 MB / 1.029 GB Notification: Performance of sort global known variables: time 2.71e-07/1.628, allocations: 0 / 1.425 GB, free: 4.973 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003836/1.632, allocations: 1.729 MB / 1.427 GB, free: 3.34 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.0008864/1.632, allocations: 388.2 kB / 1.427 GB, free: 3.031 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.005703/1.638, allocations: 3.346 MB / 1.43 GB, free: 0.7227 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.638, allocations: 10.19 kB / 1.43 GB, free: 0.7148 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.001658/1.64, allocations: 1.046 MB / 1.431 GB, free: 15.97 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006914/1.647, allocations: 1.611 MB / 1.433 GB, free: 14.64 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01052/1.657, allocations: 7.931 MB / 1.441 GB, free: 7.289 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001813/1.659, allocations: 2.188 MB / 1.443 GB, free: 5.199 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.003945/1.663, allocations: 1.115 MB / 1.444 GB, free: 4.078 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006288/1.664, allocations: 229.6 kB / 1.444 GB, free: 3.863 MB / 1.045 GB Notification: Performance of SimCode: time 8.71e-07/1.664, allocations: 0 / 1.444 GB, free: 3.863 MB / 1.045 GB Notification: Performance of Templates: time 0.08546/1.749, allocations: 52.14 MB / 1.495 GB, free: 492 kB / 1.092 GB make -j1 -f Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches