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.001212/0.001212, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001403/0.001403, allocations: 215 kB / 23.03 MB, free: 4.949 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.464/1.464, allocations: 230.6 MB / 256.8 MB, free: 7.805 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 3.073/3.073, allocations: 0.49 GB / 0.7959 GB, free: 35.41 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_12_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="cs",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.001874/0.001874, allocations: 70.61 kB / 1.155 GB, free: 25.35 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3228, allocations: 176.1 MB / 1.327 GB, free: 1.48 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2262/0.5491, allocations: 172.6 MB / 1.495 GB, free: 4.258 MB / 1.186 GB Notification: Performance of NFInst.instExpressions: time 0.02073/0.5698, allocations: 13.15 MB / 1.508 GB, free: 7.07 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.5714, allocations: 51.56 kB / 1.508 GB, free: 7.02 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.002059/0.5734, allocations: 0.4929 MB / 1.509 GB, free: 6.523 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.005469/0.5789, allocations: 1.941 MB / 1.51 GB, free: 4.574 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.002765/0.5816, allocations: 0.8964 MB / 1.511 GB, free: 3.68 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.004014/0.5857, allocations: 2.623 MB / 1.514 GB, free: 1.047 MB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.5872, allocations: 0.8029 MB / 1.515 GB, free: 224 kB / 1.201 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005446/0.5927, allocations: 1.894 MB / 1.517 GB, free: 14.34 MB / 1.217 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002052/0.5947, allocations: 0.9713 MB / 1.517 GB, free: 13.36 MB / 1.217 GB Notification: Performance of NFPackage.collectConstants: time 0.0004002/0.5951, allocations: 107.9 kB / 1.518 GB, free: 13.26 MB / 1.217 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002355/0.5975, allocations: 0.9235 MB / 1.518 GB, free: 12.33 MB / 1.217 GB Notification: Performance of NFScalarize.scalarize: time 0.0009158/0.5984, allocations: 0.5141 MB / 1.519 GB, free: 11.82 MB / 1.217 GB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.6, allocations: 0.5251 MB / 1.519 GB, free: 11.29 MB / 1.217 GB Notification: Performance of NFConvertDAE.convert: time 0.003921/0.6039, allocations: 1.896 MB / 1.521 GB, free: 9.387 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.6039, allocations: 4 kB / 1.521 GB, free: 9.383 MB / 1.217 GB Notification: Performance of FrontEnd: time 1.663e-06/0.6039, allocations: 0 / 1.521 GB, free: 9.383 MB / 1.217 GB Notification: Performance of Transformations before backend: time 6.774e-05/0.604, allocations: 0 / 1.521 GB, free: 9.383 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.003693/0.6077, allocations: 1.415 MB / 1.523 GB, free: 7.934 MB / 1.217 GB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.6077, allocations: 11.97 kB / 1.523 GB, free: 7.922 MB / 1.217 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.106e-05/0.6078, allocations: 26 kB / 1.523 GB, free: 7.895 MB / 1.217 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001944/0.6079, allocations: 143.6 kB / 1.523 GB, free: 7.746 MB / 1.217 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001517/0.6095, allocations: 263 kB / 1.523 GB, free: 7.488 MB / 1.217 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001495/0.611, allocations: 0.7331 MB / 1.524 GB, free: 6.727 MB / 1.217 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.921e-05/0.611, allocations: 70 kB / 1.524 GB, free: 6.66 MB / 1.217 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.6112, allocations: 96 kB / 1.524 GB, free: 6.566 MB / 1.217 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001946/0.6131, allocations: 1.29 MB / 1.525 GB, free: 5.172 MB / 1.217 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/0.6132, allocations: 7.938 kB / 1.525 GB, free: 5.164 MB / 1.217 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.549e-05/0.6132, allocations: 36 kB / 1.525 GB, free: 5.129 MB / 1.217 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.238e-05/0.6133, allocations: 41.98 kB / 1.525 GB, free: 5.09 MB / 1.217 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.6148, allocations: 0.9015 MB / 1.526 GB, free: 4.188 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.006149/0.621, allocations: 4.13 MB / 1.53 GB, free: 15.93 MB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009141/0.6219, allocations: 0.5063 MB / 1.531 GB, free: 15.42 MB / 1.232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.6224, allocations: 298.6 kB / 1.531 GB, free: 15.12 MB / 1.232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005615/0.6229, allocations: 80.3 kB / 1.531 GB, free: 15.04 MB / 1.232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.623, allocations: 39 kB / 1.531 GB, free: 14.99 MB / 1.232 GB Notification: Performance of pre-optimization done (n=49): time 3.035e-06/0.623, allocations: 0 / 1.531 GB, free: 14.99 MB / 1.232 GB Notification: Performance of matching and sorting (n=49): time 0.001679/0.6247, allocations: 0.8069 MB / 1.532 GB, free: 14.18 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.6247, allocations: 63.84 kB / 1.532 GB, free: 14.11 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009885/0.6257, allocations: 0.751 MB / 1.533 GB, free: 13.34 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 6.575e-05/0.6258, allocations: 37.7 kB / 1.533 GB, free: 13.3 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004486/0.6262, allocations: 0.5195 MB / 1.533 GB, free: 12.77 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.6264, allocations: 186.4 kB / 1.533 GB, free: 12.59 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.6266, allocations: 146.6 kB / 1.534 GB, free: 12.44 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001864/0.6268, allocations: 330 kB / 1.534 GB, free: 12.11 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003953/0.6272, allocations: 257.8 kB / 1.534 GB, free: 11.86 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00084/0.6281, allocations: 0.8268 MB / 1.535 GB, free: 10.83 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0011/0.6292, allocations: 0.8035 MB / 1.536 GB, free: 9.918 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.6292, allocations: 4 kB / 1.536 GB, free: 9.914 MB / 1.232 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001429/0.6306, allocations: 0.8549 MB / 1.537 GB, free: 9.055 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.6306, allocations: 10.34 kB / 1.537 GB, free: 9.047 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/0.6306, allocations: 8 kB / 1.537 GB, free: 9.039 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/0.6307, allocations: 15.94 kB / 1.537 GB, free: 9.023 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/0.6312, allocations: 147.8 kB / 1.537 GB, free: 8.879 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.072e-05/0.6313, allocations: 23.86 kB / 1.537 GB, free: 8.855 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007382/0.632, allocations: 91.33 kB / 1.537 GB, free: 8.766 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.426e-05/0.6321, allocations: 36.16 kB / 1.537 GB, free: 8.73 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.0004981/0.6326, allocations: 337.3 kB / 1.537 GB, free: 8.391 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.6327, allocations: 95.44 kB / 1.537 GB, free: 8.297 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/0.6338, allocations: 0.614 MB / 1.538 GB, free: 7.672 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.6338, allocations: 4 kB / 1.538 GB, free: 7.668 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.6338, allocations: 0 / 1.538 GB, free: 7.668 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007548/0.6345, allocations: 0.5211 MB / 1.538 GB, free: 7.137 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.637, allocations: 1.553 MB / 1.54 GB, free: 5.512 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.637, allocations: 0 / 1.54 GB, free: 5.512 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/0.6375, allocations: 107.9 kB / 1.54 GB, free: 5.406 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.116e-06/0.6375, allocations: 4 kB / 1.54 GB, free: 5.402 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.804e-05/0.6376, allocations: 11.98 kB / 1.54 GB, free: 5.391 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.6376, allocations: 4 kB / 1.54 GB, free: 5.387 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.6376, allocations: 7.938 kB / 1.54 GB, free: 5.379 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.639, allocations: 1.027 MB / 1.541 GB, free: 4.312 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003274/0.6393, allocations: 147.3 kB / 1.541 GB, free: 4.168 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.6394, allocations: 19.92 kB / 1.541 GB, free: 4.148 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.6399, allocations: 16 kB / 1.541 GB, free: 4.133 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.859e-05/0.6399, allocations: 35.94 kB / 1.541 GB, free: 4.098 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.936e-05/0.64, allocations: 15.98 kB / 1.541 GB, free: 4.082 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.0006925/0.6407, allocations: 0.5185 MB / 1.542 GB, free: 3.57 MB / 1.232 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6407, allocations: 0 / 1.542 GB, free: 3.57 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.0008945/0.6416, allocations: 295.5 kB / 1.542 GB, free: 3.281 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.002102/0.6437, allocations: 1.67 MB / 1.544 GB, free: 1.566 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.001026/0.6447, allocations: 0.5768 MB / 1.544 GB, free: 0.9922 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.6447, allocations: 0 / 1.544 GB, free: 0.9922 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.0003726/0.6451, allocations: 276.3 kB / 1.545 GB, free: 0.7227 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001872/0.6469, allocations: 450.8 kB / 1.545 GB, free: 300 kB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.6572, allocations: 7.238 MB / 1.552 GB, free: 8.66 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.6578, allocations: 0.52 MB / 1.553 GB, free: 8.109 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.0008584/0.6587, allocations: 271.1 kB / 1.553 GB, free: 7.84 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005087/0.6592, allocations: 363.2 kB / 1.553 GB, free: 7.484 MB / 1.248 GB Notification: Performance of SimCode: time 1.032e-06/0.6592, allocations: 0 / 1.553 GB, free: 7.484 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05929/0.7185, allocations: 25.23 MB / 1.578 GB, free: 14.9 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.19, allocations: 10.58 kB / 1.578 GB, free: 14.89 MB / 1.279 GB " [Timeout remaining time 287] (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: 19.83571725594811]