Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 218.7 kB / 22.25 MB, free: 5.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.357/1.357, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.979/2.979, allocations: 0.49 GB / 0.7951 GB, free: 35.57 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 74.33 kB / 1.154 GB, free: 25.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2847, allocations: 176.1 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1965/0.4812, allocations: 172.7 MB / 1.495 GB, free: 4.082 MB / 1.186 GB Notification: Performance of NFInst.instExpressions: time 0.01707/0.4983, allocations: 13.16 MB / 1.507 GB, free: 6.887 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.4995, allocations: 51.56 kB / 1.507 GB, free: 6.836 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.501, allocations: 0.493 MB / 1.508 GB, free: 6.34 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.004629/0.5057, allocations: 1.951 MB / 1.51 GB, free: 4.383 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.002313/0.508, allocations: 0.8943 MB / 1.511 GB, free: 3.492 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.003289/0.5113, allocations: 2.624 MB / 1.513 GB, free: 0.8555 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001235/0.5125, allocations: 0.8029 MB / 1.514 GB, free: 28 kB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004803/0.5173, allocations: 1.892 MB / 1.516 GB, free: 14.14 MB / 1.217 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001822/0.5191, allocations: 0.9776 MB / 1.517 GB, free: 13.17 MB / 1.217 GB Notification: Performance of NFPackage.collectConstants: time 0.0001755/0.5193, allocations: 104 kB / 1.517 GB, free: 13.07 MB / 1.217 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.5211, allocations: 0.9235 MB / 1.518 GB, free: 12.14 MB / 1.217 GB Notification: Performance of NFScalarize.scalarize: time 0.0005415/0.5217, allocations: 0.5181 MB / 1.518 GB, free: 11.62 MB / 1.217 GB Notification: Performance of NFVerifyModel.verify: time 0.0006565/0.5223, allocations: 0.5251 MB / 1.519 GB, free: 11.09 MB / 1.217 GB Notification: Performance of NFConvertDAE.convert: time 0.002318/0.5246, allocations: 1.9 MB / 1.521 GB, free: 9.188 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.5246, allocations: 4 kB / 1.521 GB, free: 9.184 MB / 1.217 GB Notification: Performance of FrontEnd: time 1.042e-06/0.5246, allocations: 0 / 1.521 GB, free: 9.184 MB / 1.217 GB Notification: Performance of Transformations before backend: time 1.294e-05/0.5246, allocations: 0 / 1.521 GB, free: 9.184 MB / 1.217 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002117/0.5268, allocations: 1.407 MB / 1.522 GB, free: 7.742 MB / 1.217 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.5268, allocations: 15.97 kB / 1.522 GB, free: 7.727 MB / 1.217 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001645/0.527, allocations: 147.6 kB / 1.522 GB, free: 7.574 MB / 1.217 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.5282, allocations: 251 kB / 1.523 GB, free: 7.328 MB / 1.217 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.5296, allocations: 0.7331 MB / 1.523 GB, free: 6.566 MB / 1.217 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.138e-05/0.5297, allocations: 74 kB / 1.523 GB, free: 6.492 MB / 1.217 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001366/0.5298, allocations: 91.94 kB / 1.523 GB, free: 6.402 MB / 1.217 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/0.5316, allocations: 1.298 MB / 1.525 GB, free: 5.004 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.5316, allocations: 0 / 1.525 GB, free: 5.004 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.435e-05/0.5317, allocations: 43.94 kB / 1.525 GB, free: 4.961 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-05/0.5317, allocations: 34 kB / 1.525 GB, free: 4.926 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.5331, allocations: 0.9054 MB / 1.526 GB, free: 4.02 MB / 1.217 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.005008/0.5381, allocations: 4.126 MB / 1.53 GB, free: 15.76 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008234/0.5389, allocations: 0.5086 MB / 1.53 GB, free: 15.25 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004239/0.5393, allocations: 296.2 kB / 1.53 GB, free: 14.95 MB / 1.232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004867/0.5398, allocations: 84.34 kB / 1.53 GB, free: 14.86 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.5398, allocations: 42.94 kB / 1.531 GB, free: 14.81 MB / 1.232 GB Notification: Performance of pre-optimization done (n=49): time 1.833e-06/0.5398, allocations: 0 / 1.531 GB, free: 14.81 MB / 1.232 GB Notification: Performance of matching and sorting (n=49): time 0.001466/0.5413, allocations: 0.803 MB / 1.531 GB, free: 14.01 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.198e-05/0.5413, allocations: 59.84 kB / 1.531 GB, free: 13.94 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000891/0.5422, allocations: 0.7626 MB / 1.532 GB, free: 13.17 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 5.177e-05/0.5423, allocations: 41.64 kB / 1.532 GB, free: 13.12 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.000425/0.5427, allocations: 0.5156 MB / 1.533 GB, free: 12.6 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.5429, allocations: 190.4 kB / 1.533 GB, free: 12.41 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002074/0.5431, allocations: 142.6 kB / 1.533 GB, free: 12.27 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5433, allocations: 341.8 kB / 1.533 GB, free: 11.93 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003764/0.5436, allocations: 249.8 kB / 1.534 GB, free: 11.68 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000793/0.5444, allocations: 0.8385 MB / 1.534 GB, free: 10.64 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.5454, allocations: 0.7918 MB / 1.535 GB, free: 9.738 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.5454, allocations: 4 kB / 1.535 GB, free: 9.734 MB / 1.232 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00131/0.5467, allocations: 0.8589 MB / 1.536 GB, free: 8.867 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.5468, allocations: 8 kB / 1.536 GB, free: 8.859 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.5468, allocations: 8 kB / 1.536 GB, free: 8.852 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.5468, allocations: 12 kB / 1.536 GB, free: 8.84 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005736/0.5474, allocations: 151.8 kB / 1.536 GB, free: 8.691 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.5474, allocations: 15.94 kB / 1.536 GB, free: 8.676 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006919/0.5481, allocations: 99.25 kB / 1.536 GB, free: 8.578 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/0.5482, allocations: 32 kB / 1.536 GB, free: 8.547 MB / 1.232 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * 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.0004541/0.5486, allocations: 333.6 kB / 1.537 GB, free: 8.211 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.5487, allocations: 91.44 kB / 1.537 GB, free: 8.121 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009954/0.5497, allocations: 0.6179 MB / 1.537 GB, free: 7.5 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.5497, allocations: 4 kB / 1.537 GB, free: 7.496 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.5498, allocations: 8 kB / 1.537 GB, free: 7.488 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007278/0.5505, allocations: 0.5172 MB / 1.538 GB, free: 6.957 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.5529, allocations: 1.545 MB / 1.539 GB, free: 5.34 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.5529, allocations: 0 / 1.539 GB, free: 5.34 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000531/0.5534, allocations: 111.9 kB / 1.539 GB, free: 5.23 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.006e-05/0.5534, allocations: 8.031 kB / 1.539 GB, free: 5.223 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.798e-05/0.5534, allocations: 15.98 kB / 1.539 GB, free: 5.207 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.5535, allocations: 4 kB / 1.539 GB, free: 5.203 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.5535, allocations: 7.938 kB / 1.539 GB, free: 5.195 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.5548, allocations: 1.023 MB / 1.54 GB, free: 4.133 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00035/0.5552, allocations: 147.4 kB / 1.541 GB, free: 3.988 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.5553, allocations: 15.94 kB / 1.541 GB, free: 3.973 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004419/0.5557, allocations: 15.98 kB / 1.541 GB, free: 3.957 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.426e-05/0.5558, allocations: 39.88 kB / 1.541 GB, free: 3.918 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.885e-05/0.5558, allocations: 16 kB / 1.541 GB, free: 3.902 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.0006138/0.5564, allocations: 0.5146 MB / 1.541 GB, free: 3.391 MB / 1.232 GB Notification: Performance of sort global known variables: time 8e-08/0.5564, allocations: 0 / 1.541 GB, free: 3.391 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.000843/0.5573, allocations: 307.3 kB / 1.541 GB, free: 3.09 MB / 1.232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.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 (49): * Single equations (assignments): 49 * 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.001924/0.5592, allocations: 1.65 MB / 1.543 GB, free: 1.398 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.0009401/0.5601, allocations: 0.5846 MB / 1.544 GB, free: 0.8125 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.5601, allocations: 0 / 1.544 GB, free: 0.8125 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.5605, allocations: 272.4 kB / 1.544 GB, free: 0.5469 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.5623, allocations: 447.7 kB / 1.544 GB, free: 124 kB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009157/0.5714, allocations: 7.242 MB / 1.551 GB, free: 8.488 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005421/0.572, allocations: 0.5239 MB / 1.552 GB, free: 7.934 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.0007281/0.5727, allocations: 263.1 kB / 1.552 GB, free: 7.672 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004788/0.5732, allocations: 363.3 kB / 1.553 GB, free: 7.316 MB / 1.248 GB Notification: Performance of SimCode: time 1.132e-06/0.5732, allocations: 0 / 1.553 GB, free: 7.316 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05983/0.633, allocations: 25.73 MB / 1.578 GB, free: 14.15 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.64, allocations: 3.5 kB / 1.578 GB, free: 14.15 MB / 1.279 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Sensors_Examples_TraceSubstances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Sensors.Examples.TraceSubstances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.822266792005394]