Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_10_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.00171/0.00171, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 194 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.529/2.529, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 67.88 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6943/0.6957, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1955/0.8912, allocations: 195.1 MB / 1.208 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01713/0.9084, allocations: 14.32 MB / 1.222 GB, free: 256 kB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.9097, allocations: 35.81 kB / 1.222 GB, free: 220 kB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.9112, allocations: 496.9 kB / 1.222 GB, free: 15.72 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.004366/0.9156, allocations: 1.899 MB / 1.224 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00217/0.9178, allocations: 0.8601 MB / 1.225 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.003047/0.9208, allocations: 2.569 MB / 1.228 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.9223, allocations: 1.115 MB / 1.229 GB, free: 9.258 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003861/0.9262, allocations: 1.594 MB / 1.23 GB, free: 7.676 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.9277, allocations: 0.9118 MB / 1.231 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001835/0.9279, allocations: 108 kB / 1.231 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002221/0.9302, allocations: 1.103 MB / 1.232 GB, free: 5.551 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000467/0.9306, allocations: 0.4948 MB / 1.233 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0007232/0.9314, allocations: 0.6378 MB / 1.233 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002422/0.9338, allocations: 1.877 MB / 1.235 GB, free: 2.531 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.9338, allocations: 4 kB / 1.235 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.212e-06/0.9338, allocations: 0 / 1.235 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.487e-05/0.9339, allocations: 0 / 1.235 GB, free: 2.527 MB / 0.9825 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.002078/0.9359, allocations: 1.449 MB / 1.237 GB, free: 1.023 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.936, allocations: 8.031 kB / 1.237 GB, free: 1.016 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001585/0.9362, allocations: 143.6 kB / 1.237 GB, free: 0.8672 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.9375, allocations: 254.3 kB / 1.237 GB, free: 0.6172 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.9386, allocations: 0.7608 MB / 1.238 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.948e-05/0.9387, allocations: 70 kB / 1.238 GB, free: 15.75 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.9389, allocations: 96 kB / 1.238 GB, free: 15.65 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.9405, allocations: 1.165 MB / 1.239 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.9405, allocations: 3.938 kB / 1.239 GB, free: 14.41 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.33e-05/0.9406, allocations: 51.92 kB / 1.239 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.156e-05/0.9407, allocations: 34 kB / 1.239 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.942, allocations: 0.8976 MB / 1.24 GB, free: 13.43 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.005378/0.9474, allocations: 5.774 MB / 1.246 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008211/0.9482, allocations: 0.5406 MB / 1.246 GB, free: 6.648 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004157/0.9486, allocations: 316.2 kB / 1.247 GB, free: 6.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005576/0.9492, allocations: 311.7 kB / 1.247 GB, free: 5.98 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.9492, allocations: 42.94 kB / 1.247 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=49): time 2.325e-06/0.9492, allocations: 0 / 1.247 GB, free: 5.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=49): time 0.001444/0.9507, allocations: 0.7948 MB / 1.248 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.9507, allocations: 67.78 kB / 1.248 GB, free: 5.051 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000869/0.9516, allocations: 0.7548 MB / 1.248 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.512e-05/0.9517, allocations: 37.7 kB / 1.249 GB, free: 4.242 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/0.952, allocations: 0.5104 MB / 1.249 GB, free: 3.723 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.9522, allocations: 177.5 kB / 1.249 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001916/0.9524, allocations: 142.5 kB / 1.249 GB, free: 3.398 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.9525, allocations: 337.9 kB / 1.25 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.9529, allocations: 249.8 kB / 1.25 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005849/0.9535, allocations: 0.5585 MB / 1.25 GB, free: 2.125 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009388/0.9544, allocations: 0.7956 MB / 1.251 GB, free: 1.223 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.9544, allocations: 4 kB / 1.251 GB, free: 1.219 MB / 0.9981 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001245/0.9557, allocations: 0.8391 MB / 1.252 GB, free: 384 kB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.9557, allocations: 14.19 kB / 1.252 GB, free: 372 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.9557, allocations: 8 kB / 1.252 GB, free: 364 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.9557, allocations: 12 kB / 1.252 GB, free: 352 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005402/0.9563, allocations: 155.7 kB / 1.252 GB, free: 196 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.648e-05/0.9563, allocations: 19.88 kB / 1.252 GB, free: 176 kB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006944/0.957, allocations: 95.05 kB / 1.252 GB, free: 80 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-05/0.9571, allocations: 35.98 kB / 1.252 GB, free: 44 kB / 0.9981 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.4964/1.453, allocations: 323.1 kB / 1.253 GB, free: 235.4 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/1.454, allocations: 89.11 kB / 1.253 GB, free: 235.4 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/1.455, allocations: 0.6124 MB / 1.253 GB, free: 235.4 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/1.455, allocations: 5.062 kB / 1.253 GB, free: 235.4 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/1.455, allocations: 0.5625 kB / 1.253 GB, free: 235.4 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008109/1.456, allocations: 0.5314 MB / 1.254 GB, free: 235.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002824/1.459, allocations: 1.669 MB / 1.255 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/1.459, allocations: 1.562 kB / 1.255 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005806/1.459, allocations: 113 kB / 1.256 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/1.459, allocations: 7.344 kB / 1.256 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.253e-05/1.459, allocations: 15.33 kB / 1.256 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/1.459, allocations: 8.359 kB / 1.256 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.459, allocations: 2.031 kB / 1.256 GB, free: 234.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/1.461, allocations: 1.02 MB / 1.257 GB, free: 233.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003578/1.461, allocations: 222.5 kB / 1.257 GB, free: 233.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/1.461, allocations: 13.69 kB / 1.257 GB, free: 233.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004602/1.462, allocations: 21.33 kB / 1.257 GB, free: 233.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.654e-05/1.462, allocations: 34.72 kB / 1.257 GB, free: 233.8 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.581e-05/1.462, allocations: 19.59 kB / 1.257 GB, free: 233.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000736/1.463, allocations: 0.5103 MB / 1.257 GB, free: 233.5 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.1e-07/1.463, allocations: 3.969 kB / 1.257 GB, free: 233.5 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009565/1.464, allocations: 295.8 kB / 1.258 GB, free: 233.5 MB / 0.9981 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.001959/1.465, allocations: 1.677 MB / 1.259 GB, free: 232.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001353/1.467, allocations: 0.7137 MB / 1.26 GB, free: 232.2 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.467, allocations: 0.7812 kB / 1.26 GB, free: 232.2 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004131/1.467, allocations: 269.5 kB / 1.26 GB, free: 232.1 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002413/1.47, allocations: 444.2 kB / 1.261 GB, free: 232 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/1.482, allocations: 7.491 MB / 1.268 GB, free: 227.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007815/1.483, allocations: 1.124 MB / 1.269 GB, free: 227 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001135/1.484, allocations: 265.4 kB / 1.269 GB, free: 226.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004615/1.485, allocations: 362.1 kB / 1.27 GB, free: 226.7 MB / 0.9981 GB Notification: Performance of SimCode: time 1.463e-06/1.485, allocations: 0 / 1.27 GB, free: 226.7 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0472/1.532, allocations: 22.86 MB / 1.292 GB, free: 212.6 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.891/9.423, allocations: 16.97 kB / 1.292 GB, free: 212.6 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_10_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)