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.001525/0.001525, allocations: 108.2 kB / 16.46 MB, free: 6.508 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.001593/0.001593, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.396/1.396, allocations: 230.6 MB / 252.8 MB, free: 9.117 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.039/3.039, allocations: 0.49 GB / 0.7916 GB, free: 33.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.001998/0.001998, allocations: 73.95 kB / 1.149 GB, free: 26.38 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3446, allocations: 176.1 MB / 1.321 GB, free: 3.344 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2348/0.5794, allocations: 198.8 MB / 1.515 GB, free: 11.79 MB / 1.217 GB Notification: Performance of NFInst.instExpressions: time 0.0224/0.6018, allocations: 14.41 MB / 1.529 GB, free: 13.34 MB / 1.232 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.6031, allocations: 51.56 kB / 1.529 GB, free: 13.29 MB / 1.232 GB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.6048, allocations: 0.5085 MB / 1.53 GB, free: 12.78 MB / 1.232 GB Notification: Performance of NFTyping.typeBindings: time 0.005215/0.61, allocations: 1.964 MB / 1.532 GB, free: 10.81 MB / 1.232 GB Notification: Performance of NFTyping.typeClassSections: time 0.002649/0.6127, allocations: 0.8699 MB / 1.532 GB, free: 9.941 MB / 1.232 GB Notification: Performance of NFFlatten.flatten: time 0.003844/0.6165, allocations: 2.565 MB / 1.535 GB, free: 7.363 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00179/0.6183, allocations: 0.9234 MB / 1.536 GB, free: 6.418 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005546/0.6238, allocations: 1.891 MB / 1.538 GB, free: 4.543 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.626, allocations: 0.9653 MB / 1.539 GB, free: 3.574 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.0003913/0.6264, allocations: 104 kB / 1.539 GB, free: 3.473 MB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002832/0.6292, allocations: 1.15 MB / 1.54 GB, free: 2.32 MB / 1.232 GB Notification: Performance of NFScalarize.scalarize: time 0.0009053/0.6301, allocations: 0.5103 MB / 1.54 GB, free: 1.809 MB / 1.232 GB Notification: Performance of NFVerifyModel.verify: time 0.001608/0.6317, allocations: 0.6338 MB / 1.541 GB, free: 1.172 MB / 1.232 GB Notification: Performance of NFConvertDAE.convert: time 0.004686/0.6364, allocations: 1.919 MB / 1.543 GB, free: 15.25 MB / 1.248 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.6364, allocations: 0 / 1.543 GB, free: 15.25 MB / 1.248 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6364, allocations: 0 / 1.543 GB, free: 15.25 MB / 1.248 GB Notification: Performance of Transformations before backend: time 8.334e-05/0.6365, allocations: 0 / 1.543 GB, free: 15.25 MB / 1.248 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.003159/0.6396, allocations: 1.486 MB / 1.544 GB, free: 13.71 MB / 1.248 GB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.6397, allocations: 15.98 kB / 1.544 GB, free: 13.69 MB / 1.248 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.6399, allocations: 143.5 kB / 1.544 GB, free: 13.54 MB / 1.248 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001442/0.6413, allocations: 259 kB / 1.545 GB, free: 13.29 MB / 1.248 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.6428, allocations: 0.8014 MB / 1.545 GB, free: 12.45 MB / 1.248 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.612e-05/0.6428, allocations: 74 kB / 1.545 GB, free: 12.37 MB / 1.248 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.643, allocations: 88 kB / 1.546 GB, free: 12.29 MB / 1.248 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.6449, allocations: 1.173 MB / 1.547 GB, free: 11.04 MB / 1.248 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.6449, allocations: 4 kB / 1.547 GB, free: 11.04 MB / 1.248 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.026e-05/0.645, allocations: 39.94 kB / 1.547 GB, free: 11 MB / 1.248 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.576e-05/0.645, allocations: 37.98 kB / 1.547 GB, free: 10.96 MB / 1.248 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001443/0.6465, allocations: 0.9093 MB / 1.548 GB, free: 10.05 MB / 1.248 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.0063/0.6528, allocations: 5.823 MB / 1.553 GB, free: 3.754 MB / 1.248 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009141/0.6537, allocations: 0.5253 MB / 1.554 GB, free: 3.219 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/0.6542, allocations: 298.6 kB / 1.554 GB, free: 2.922 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006461/0.6548, allocations: 315.7 kB / 1.554 GB, free: 2.559 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.6548, allocations: 39 kB / 1.554 GB, free: 2.508 MB / 1.248 GB Notification: Performance of pre-optimization done (n=49): time 2.204e-06/0.6548, allocations: 0 / 1.554 GB, free: 2.508 MB / 1.248 GB Notification: Performance of matching and sorting (n=49): time 0.001673/0.6565, allocations: 0.803 MB / 1.555 GB, free: 1.703 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.6566, allocations: 55.84 kB / 1.555 GB, free: 1.637 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.6576, allocations: 0.7549 MB / 1.556 GB, free: 0.875 MB / 1.248 GB Notification: Performance of collectPreVariables (initialization): time 5.799e-05/0.6576, allocations: 37.7 kB / 1.556 GB, free: 0.832 MB / 1.248 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004505/0.6581, allocations: 0.5194 MB / 1.557 GB, free: 312 kB / 1.248 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001978/0.6583, allocations: 186.4 kB / 1.557 GB, free: 124 kB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002502/0.6585, allocations: 150.6 kB / 1.557 GB, free: 15.96 MB / 1.264 GB Notification: Performance of setup shared object (initialization): time 0.0001708/0.6587, allocations: 337.9 kB / 1.557 GB, free: 15.62 MB / 1.264 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004003/0.6591, allocations: 241.9 kB / 1.557 GB, free: 15.39 MB / 1.264 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007051/0.6598, allocations: 0.5546 MB / 1.558 GB, free: 14.7 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001131/0.661, allocations: 0.8073 MB / 1.559 GB, free: 13.79 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.661, allocations: 4 kB / 1.559 GB, free: 13.78 MB / 1.264 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001481/0.6624, allocations: 0.8432 MB / 1.56 GB, free: 12.93 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.6625, allocations: 8.156 kB / 1.56 GB, free: 12.92 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.6625, allocations: 12 kB / 1.56 GB, free: 12.91 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.6625, allocations: 12 kB / 1.56 GB, free: 12.9 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005791/0.6631, allocations: 151.8 kB / 1.56 GB, free: 12.75 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-05/0.6631, allocations: 19.92 kB / 1.56 GB, free: 12.73 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007349/0.6638, allocations: 91.33 kB / 1.56 GB, free: 12.64 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.343e-05/0.6639, allocations: 40 kB / 1.56 GB, free: 12.6 MB / 1.264 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.0004968/0.6644, allocations: 329.5 kB / 1.56 GB, free: 12.27 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.6646, allocations: 91.44 kB / 1.56 GB, free: 12.18 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.6656, allocations: 0.6179 MB / 1.561 GB, free: 11.55 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.6656, allocations: 4 kB / 1.561 GB, free: 11.55 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.6656, allocations: 0 / 1.561 GB, free: 11.55 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007874/0.6664, allocations: 0.5211 MB / 1.561 GB, free: 11.02 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002628/0.6691, allocations: 1.674 MB / 1.563 GB, free: 9.27 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.6691, allocations: 0 / 1.563 GB, free: 9.27 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005384/0.6696, allocations: 111.9 kB / 1.563 GB, free: 9.16 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.273e-06/0.6696, allocations: 4 kB / 1.563 GB, free: 9.156 MB / 1.264 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/0.6697, allocations: 20.2 kB / 1.563 GB, free: 9.137 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.6697, allocations: 4 kB / 1.563 GB, free: 9.133 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6697, allocations: 4 kB / 1.563 GB, free: 9.129 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00144/0.6711, allocations: 1.023 MB / 1.564 GB, free: 8.066 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.6715, allocations: 232.3 kB / 1.564 GB, free: 7.82 MB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.6716, allocations: 19.98 kB / 1.564 GB, free: 7.801 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004441/0.672, allocations: 12 kB / 1.565 GB, free: 7.789 MB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.055e-05/0.6721, allocations: 43.61 kB / 1.565 GB, free: 7.746 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.6721, allocations: 28.12 kB / 1.565 GB, free: 7.719 MB / 1.264 GB Notification: Performance of sorting global known variables: time 0.0007083/0.6728, allocations: 0.5068 MB / 1.565 GB, free: 7.215 MB / 1.264 GB Notification: Performance of sort global known variables: time 8e-08/0.6728, allocations: 0 / 1.565 GB, free: 7.215 MB / 1.264 GB Notification: Performance of remove unused functions: time 0.0009302/0.6738, allocations: 303.4 kB / 1.565 GB, free: 6.918 MB / 1.264 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.002113/0.6759, allocations: 1.652 MB / 1.567 GB, free: 5.223 MB / 1.264 GB Notification: Performance of simCode: created initialization part: time 0.001072/0.6769, allocations: 0.5882 MB / 1.568 GB, free: 4.637 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.6769, allocations: 0 / 1.568 GB, free: 4.637 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.0003916/0.6773, allocations: 267.5 kB / 1.568 GB, free: 4.375 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.6793, allocations: 437.8 kB / 1.568 GB, free: 3.953 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01023/0.6895, allocations: 7.244 MB / 1.575 GB, free: 12.32 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008529/0.6904, allocations: 1.122 MB / 1.576 GB, free: 11.17 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.0008249/0.6912, allocations: 271.1 kB / 1.577 GB, free: 10.9 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000505/0.6917, allocations: 363.3 kB / 1.577 GB, free: 10.55 MB / 1.279 GB Notification: Performance of SimCode: time 1.112e-06/0.6917, allocations: 0 / 1.577 GB, free: 10.55 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06153/0.7532, allocations: 23.24 MB / 1.6 GB, free: 3.656 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.211/9.964, allocations: 6.281 kB / 1.6 GB, free: 3.652 MB / 1.295 GB " [Timeout remaining time 290] (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: 16.851482653990388]