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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.006581/0.006581, allocations: 104.5 kB / 15.73 MB, free: 6.043 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.001206/0.001206, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.282/1.282, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.063/2.063, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 63.91 kB / 0.9504 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6882/0.6894, allocations: 140.4 MB / 1.087 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.1899/0.8793, allocations: 195.1 MB / 1.278 GB, free: 10.41 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.01607/0.8954, allocations: 14.3 MB / 1.292 GB, free: 12.07 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001226/0.8967, allocations: 35.81 kB / 1.292 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.8984, allocations: 0.4929 MB / 1.293 GB, free: 11.54 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.004529/0.903, allocations: 1.894 MB / 1.294 GB, free: 9.637 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.9052, allocations: 0.872 MB / 1.295 GB, free: 8.77 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.002831/0.9081, allocations: 2.577 MB / 1.298 GB, free: 6.188 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001399/0.9095, allocations: 1.107 MB / 1.299 GB, free: 5.059 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003431/0.9129, allocations: 1.593 MB / 1.3 GB, free: 3.477 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.9143, allocations: 0.9275 MB / 1.301 GB, free: 2.551 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001877/0.9145, allocations: 112 kB / 1.301 GB, free: 2.441 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001936/0.9165, allocations: 1.099 MB / 1.302 GB, free: 1.34 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0004904/0.917, allocations: 0.4948 MB / 1.303 GB, free: 0.8438 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000771/0.9177, allocations: 0.6416 MB / 1.304 GB, free: 204 kB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.92, allocations: 1.905 MB / 1.305 GB, free: 14.29 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.92, allocations: 0 / 1.305 GB, free: 14.29 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.693e-06/0.92, allocations: 0 / 1.305 GB, free: 14.29 MB / 1.045 GB Notification: Performance of Transformations before backend: time 4.639e-05/0.9201, allocations: 4 kB / 1.305 GB, free: 14.29 MB / 1.045 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.002241/0.9223, allocations: 1.449 MB / 1.307 GB, free: 12.78 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.9224, allocations: 8.031 kB / 1.307 GB, free: 12.77 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.9225, allocations: 151.6 kB / 1.307 GB, free: 12.62 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.9239, allocations: 250.4 kB / 1.307 GB, free: 12.37 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.9253, allocations: 0.7882 MB / 1.308 GB, free: 11.54 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.365e-05/0.9254, allocations: 74 kB / 1.308 GB, free: 11.47 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001459/0.9255, allocations: 99.92 kB / 1.308 GB, free: 11.37 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001745/0.9273, allocations: 1.169 MB / 1.309 GB, free: 10.13 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.421e-05/0.9273, allocations: 3.938 kB / 1.309 GB, free: 10.13 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.908e-05/0.9274, allocations: 39.94 kB / 1.309 GB, free: 10.09 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.05e-05/0.9274, allocations: 37.98 kB / 1.309 GB, free: 10.05 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.9288, allocations: 0.8976 MB / 1.31 GB, free: 9.152 MB / 1.045 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.005677/0.9345, allocations: 5.743 MB / 1.316 GB, free: 2.953 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008317/0.9353, allocations: 0.5471 MB / 1.316 GB, free: 2.395 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005181/0.9358, allocations: 318.5 kB / 1.317 GB, free: 2.086 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006255/0.9365, allocations: 311.7 kB / 1.317 GB, free: 1.727 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.9365, allocations: 43 kB / 1.317 GB, free: 1.676 MB / 1.045 GB Notification: Performance of pre-optimization done (n=49): time 2.575e-06/0.9365, allocations: 0 / 1.317 GB, free: 1.676 MB / 1.045 GB Notification: Performance of matching and sorting (n=49): time 0.001675/0.9382, allocations: 0.8026 MB / 1.318 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.9383, allocations: 63.78 kB / 1.318 GB, free: 0.793 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001031/0.9393, allocations: 0.7547 MB / 1.319 GB, free: 32 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 9.408e-05/0.9394, allocations: 33.86 kB / 1.319 GB, free: 15.99 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004031/0.9398, allocations: 0.5104 MB / 1.319 GB, free: 15.47 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.94, allocations: 181.5 kB / 1.319 GB, free: 15.29 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001923/0.9402, allocations: 142.5 kB / 1.319 GB, free: 15.15 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.9403, allocations: 337.9 kB / 1.32 GB, free: 14.81 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003585/0.9407, allocations: 241.9 kB / 1.32 GB, free: 14.57 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005999/0.9413, allocations: 0.5585 MB / 1.321 GB, free: 13.88 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.9423, allocations: 0.7995 MB / 1.321 GB, free: 12.97 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.625e-06/0.9423, allocations: 4 kB / 1.321 GB, free: 12.96 MB / 1.061 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001405/0.9438, allocations: 0.8382 MB / 1.322 GB, free: 12.12 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.9438, allocations: 8 kB / 1.322 GB, free: 12.11 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.25e-05/0.9438, allocations: 8.844 kB / 1.322 GB, free: 12.1 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.066e-05/0.9438, allocations: 12 kB / 1.322 GB, free: 12.09 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005413/0.9444, allocations: 163.7 kB / 1.322 GB, free: 11.93 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.03e-05/0.9444, allocations: 15.94 kB / 1.322 GB, free: 11.91 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007601/0.9452, allocations: 91.08 kB / 1.322 GB, free: 11.82 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-05/0.9453, allocations: 32 kB / 1.322 GB, free: 11.79 MB / 1.061 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.0004713/0.9457, allocations: 333.5 kB / 1.323 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/0.9459, allocations: 86.88 kB / 1.323 GB, free: 11.37 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009871/0.9469, allocations: 0.618 MB / 1.323 GB, free: 10.75 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.9469, allocations: 11.98 kB / 1.323 GB, free: 10.74 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.9469, allocations: 0 / 1.323 GB, free: 10.74 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007172/0.9476, allocations: 0.5211 MB / 1.324 GB, free: 10.2 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/0.9502, allocations: 1.655 MB / 1.326 GB, free: 8.469 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.9502, allocations: 4 kB / 1.326 GB, free: 8.465 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005273/0.9507, allocations: 119.8 kB / 1.326 GB, free: 8.348 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.848e-06/0.9507, allocations: 4 kB / 1.326 GB, free: 8.344 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.947e-05/0.9508, allocations: 19.98 kB / 1.326 GB, free: 8.324 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.341e-06/0.9508, allocations: 4 kB / 1.326 GB, free: 8.32 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.9508, allocations: 224 / 1.326 GB, free: 8.32 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.9521, allocations: 1.034 MB / 1.327 GB, free: 7.246 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003421/0.9524, allocations: 227.9 kB / 1.327 GB, free: 7.004 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.432e-05/0.9525, allocations: 12 kB / 1.327 GB, free: 6.992 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004588/0.953, allocations: 12 kB / 1.327 GB, free: 6.98 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.747e-05/0.9531, allocations: 31.95 kB / 1.327 GB, free: 6.949 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.9531, allocations: 19.98 kB / 1.327 GB, free: 6.93 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0006336/0.9538, allocations: 0.5107 MB / 1.328 GB, free: 6.422 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9538, allocations: 4 kB / 1.328 GB, free: 6.418 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0008815/0.9547, allocations: 299.2 kB / 1.328 GB, free: 6.125 MB / 1.061 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.001878/0.9565, allocations: 1.665 MB / 1.329 GB, free: 4.426 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000958/0.9575, allocations: 0.6116 MB / 1.33 GB, free: 3.812 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.9575, allocations: 0 / 1.33 GB, free: 3.812 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003522/0.9579, allocations: 267.7 kB / 1.33 GB, free: 3.551 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/0.9597, allocations: 441.7 kB / 1.331 GB, free: 3.125 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008537/0.9683, allocations: 7.199 MB / 1.338 GB, free: 11.54 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006855/0.969, allocations: 1.122 MB / 1.339 GB, free: 10.39 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0007185/0.9697, allocations: 263 kB / 1.339 GB, free: 10.13 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004445/0.9702, allocations: 371.2 kB / 1.339 GB, free: 9.766 MB / 1.076 GB Notification: Performance of SimCode: time 6.12e-07/0.9702, allocations: 0 / 1.339 GB, free: 9.766 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.683/2.653, allocations: 23.09 MB / 1.362 GB, free: 3.043 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/16.6, allocations: 7.812 kB / 1.362 GB, free: 3.035 MB / 1.092 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/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)