Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007774/0.0007774, allocations: 84.38 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.0008443/0.0008444, 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.477/1.477, allocations: 223.2 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.469/2.469, allocations: 390.4 MB / 0.6655 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000511/0.0005111, allocations: 19.94 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8914/0.892, allocations: 142.3 MB / 0.9538 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.2158/1.108, allocations: 177.6 MB / 1.127 GB, free: 14.08 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01678/1.125, allocations: 13.3 MB / 1.14 GB, free: 0.7422 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/1.126, allocations: 27.81 kB / 1.14 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001571/1.128, allocations: 349.8 kB / 1.141 GB, free: 380 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004351/1.132, allocations: 1.372 MB / 1.142 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.002265/1.134, allocations: 0.6659 MB / 1.143 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.004135/1.138, allocations: 3.049 MB / 1.146 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001649/1.14, allocations: 0.8007 MB / 1.146 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003145/1.143, allocations: 1.202 MB / 1.148 GB, free: 9.254 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002369/1.146, allocations: 0.8874 MB / 1.148 GB, free: 8.363 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004189/1.146, allocations: 48 kB / 1.148 GB, free: 8.316 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002706/1.149, allocations: 0.5651 MB / 1.149 GB, free: 7.75 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006506/1.149, allocations: 454.8 kB / 1.149 GB, free: 7.305 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0005496/1.15, allocations: 249.1 kB / 1.15 GB, free: 7.055 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.001909/1.152, allocations: 1.36 MB / 1.151 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/1.152, allocations: 0 / 1.151 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.473e-06/1.152, allocations: 0 / 1.151 GB, free: 5.691 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.134e-05/1.152, allocations: 0 / 1.151 GB, free: 5.691 MB / 0.9044 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.002092/1.154, allocations: 1.25 MB / 1.152 GB, free: 4.387 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/1.154, allocations: 8.031 kB / 1.152 GB, free: 4.379 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001916/1.154, allocations: 143.6 kB / 1.152 GB, free: 4.23 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001339/1.156, allocations: 246.4 kB / 1.153 GB, free: 3.988 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001617/1.157, allocations: 0.8276 MB / 1.153 GB, free: 3.121 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.849e-05/1.157, allocations: 73.98 kB / 1.153 GB, free: 3.047 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/1.158, allocations: 96 kB / 1.154 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/1.159, allocations: 1.165 MB / 1.155 GB, free: 1.719 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/1.159, allocations: 7.938 kB / 1.155 GB, free: 1.711 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.899e-05/1.159, allocations: 36 kB / 1.155 GB, free: 1.676 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.63e-05/1.16, allocations: 34 kB / 1.155 GB, free: 1.641 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001435/1.161, allocations: 0.9015 MB / 1.156 GB, free: 0.7422 MB / 0.9044 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.006166/1.167, allocations: 5.755 MB / 1.161 GB, free: 10.53 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/1.168, allocations: 0.573 MB / 1.162 GB, free: 9.941 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/1.169, allocations: 331.4 kB / 1.162 GB, free: 9.613 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005727/1.169, allocations: 327.7 kB / 1.162 GB, free: 9.238 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/1.169, allocations: 46.88 kB / 1.162 GB, free: 9.184 MB / 0.92 GB Notification: Performance of pre-optimization done (n=51): time 2.855e-06/1.169, allocations: 0 / 1.162 GB, free: 9.184 MB / 0.92 GB Notification: Performance of matching and sorting (n=51): time 0.001638/1.171, allocations: 0.8221 MB / 1.163 GB, free: 8.352 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.694e-05/1.171, allocations: 85.67 kB / 1.163 GB, free: 8.25 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/1.172, allocations: 0.7431 MB / 1.164 GB, free: 7.496 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 6.949e-05/1.172, allocations: 37.7 kB / 1.164 GB, free: 7.453 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000408/1.173, allocations: 0.5065 MB / 1.165 GB, free: 6.938 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/1.173, allocations: 185.4 kB / 1.165 GB, free: 6.754 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.58e-05/1.173, allocations: 16 kB / 1.165 GB, free: 6.738 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001655/1.173, allocations: 334 kB / 1.165 GB, free: 6.406 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004006/1.173, allocations: 253.8 kB / 1.165 GB, free: 6.156 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007112/1.174, allocations: 0.5767 MB / 1.166 GB, free: 5.438 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005725/1.175, allocations: 356.6 kB / 1.166 GB, free: 5.094 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/1.175, allocations: 3.953 kB / 1.166 GB, free: 5.09 MB / 0.92 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001447/1.176, allocations: 0.8698 MB / 1.167 GB, free: 4.211 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/1.176, allocations: 8 kB / 1.167 GB, free: 4.203 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/1.176, allocations: 8 kB / 1.167 GB, free: 4.195 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.516e-05/1.176, allocations: 12 kB / 1.167 GB, free: 4.184 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005707/1.177, allocations: 163.7 kB / 1.167 GB, free: 4.023 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.353e-05/1.177, allocations: 15.94 kB / 1.167 GB, free: 4.008 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008644/1.178, allocations: 155.4 kB / 1.167 GB, free: 3.855 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.858e-05/1.178, allocations: 35.98 kB / 1.168 GB, free: 3.82 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (89): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004952/1.178, allocations: 333.5 kB / 1.168 GB, free: 3.484 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/1.178, allocations: 90.92 kB / 1.168 GB, free: 3.395 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/1.18, allocations: 0.6296 MB / 1.169 GB, free: 2.762 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/1.18, allocations: 8 kB / 1.169 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.18, allocations: 0 / 1.169 GB, free: 2.754 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007327/1.18, allocations: 0.5173 MB / 1.169 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/1.183, allocations: 1.78 MB / 1.171 GB, free: 364 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/1.183, allocations: 4 kB / 1.171 GB, free: 360 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005297/1.184, allocations: 104.1 kB / 1.171 GB, free: 256 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.336e-05/1.184, allocations: 8 kB / 1.171 GB, free: 248 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.587e-05/1.184, allocations: 19.98 kB / 1.171 GB, free: 228 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.398e-05/1.184, allocations: 7.938 kB / 1.171 GB, free: 220 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.184, allocations: 0 / 1.171 GB, free: 220 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001791/1.186, allocations: 1.052 MB / 1.172 GB, free: 15.13 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006029/1.186, allocations: 232.1 kB / 1.172 GB, free: 14.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/1.186, allocations: 12 kB / 1.172 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005597/1.187, allocations: 63.94 kB / 1.172 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/1.187, allocations: 39.89 kB / 1.172 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.825e-05/1.187, allocations: 23.94 kB / 1.172 GB, free: 14.75 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0007702/1.188, allocations: 0.5068 MB / 1.173 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.31e-07/1.188, allocations: 0 / 1.173 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001079/1.189, allocations: 303.3 kB / 1.173 GB, free: 13.95 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002347/1.191, allocations: 1.701 MB / 1.175 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001172/1.193, allocations: 0.6121 MB / 1.175 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.193, allocations: 8.125 kB / 1.175 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0004682/1.193, allocations: 283.6 kB / 1.176 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/1.195, allocations: 441.8 kB / 1.176 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/1.205, allocations: 5.714 MB / 1.182 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001066/1.207, allocations: 1.13 MB / 1.183 GB, free: 3.75 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.001158/1.208, allocations: 271.3 kB / 1.183 GB, free: 3.48 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000616/1.208, allocations: 375.3 kB / 1.183 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of SimCode: time 1.333e-06/1.208, allocations: 0 / 1.183 GB, free: 3.113 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04621/1.255, allocations: 23.33 MB / 1.206 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002058/1.255, allocations: 227.6 kB / 1.206 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.33/3.585, allocations: 3.938 kB / 1.206 GB, free: 11.91 MB / 0.9669 GB (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat does not exist to compare? outputFormat=mat