Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") translateModel(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008831/0.0008831, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009017/0.0009016, allocations: 177.3 kB / 15.94 MB, free: 228 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.16/1.16, allocations: 223.2 MB / 239.9 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001605/0.001605, allocations: 270.9 kB / 291.2 MB, free: 1.855 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7182/0.7182, allocations: 144.6 MB / 487 MB, free: 7.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.0003826, allocations: 17.89 kB / 0.5683 GB, free: 38.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1296, allocations: 83.08 MB / 0.6494 GB, free: 3.602 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4211/0.5507, allocations: 161.8 MB / 0.8074 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01209/0.5628, allocations: 12.17 MB / 0.8193 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000763/0.5636, allocations: 28.12 kB / 0.8193 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001247/0.5649, allocations: 0.4922 MB / 0.8198 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003397/0.5683, allocations: 1.555 MB / 0.8213 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00223/0.5705, allocations: 0.9472 MB / 0.8222 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001525/0.5721, allocations: 1.479 MB / 0.8237 GB, free: 1.613 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007897/0.5729, allocations: 0.8217 MB / 0.8245 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.5746, allocations: 1.119 MB / 0.8256 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006689/0.5753, allocations: 0.6204 MB / 0.8262 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.094e-05/0.5754, allocations: 53.53 kB / 0.8262 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.5765, allocations: 0.5328 MB / 0.8268 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003011/0.5768, allocations: 414.7 kB / 0.8271 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.577, allocations: 251 kB / 0.8274 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009349/0.5779, allocations: 1.312 MB / 0.8287 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.5779, allocations: 0 / 0.8287 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.363e-06/0.5779, allocations: 0 / 0.8287 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.282e-05/0.5779, allocations: 0 / 0.8287 GB, free: 1.355 MB / 0.5606 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.001604/0.5796, allocations: 1.24 MB / 0.8299 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.028e-05/0.5796, allocations: 8.156 kB / 0.8299 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00115/0.5808, allocations: 254.9 kB / 0.8301 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.582, allocations: 0.7537 MB / 0.8309 GB, free: 16.25 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.582, allocations: 74.84 kB / 0.8309 GB, free: 16.24 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.5822, allocations: 94.78 kB / 0.831 GB, free: 16.24 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.5834, allocations: 1.154 MB / 0.8322 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.5835, allocations: 11.58 kB / 0.8322 GB, free: 16.01 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.401e-05/0.5835, allocations: 46.48 kB / 0.8322 GB, free: 16 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.399e-05/0.5836, allocations: 35.97 kB / 0.8322 GB, free: 16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.5847, allocations: 0.9034 MB / 0.8331 GB, free: 15.99 MB / 0.5762 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.00453/0.5892, allocations: 5.738 MB / 0.8387 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000709/0.5899, allocations: 0.5901 MB / 0.8393 GB, free: 12.04 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003411/0.5903, allocations: 146.7 kB / 0.8394 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.397e-05/0.5903, allocations: 37.16 kB / 0.8395 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=51): time 1.704e-06/0.5903, allocations: 0 / 0.8395 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of matching and sorting (n=51): time 0.00124/0.5916, allocations: 0.8179 MB / 0.8403 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.305e-05/0.5916, allocations: 85.33 kB / 0.8404 GB, free: 11.62 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007053/0.5923, allocations: 0.7626 MB / 0.8411 GB, free: 11.35 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.478e-05/0.5924, allocations: 38.89 kB / 0.8411 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/0.5927, allocations: 0.5006 MB / 0.8416 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.5928, allocations: 182.6 kB / 0.8418 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.817e-05/0.5928, allocations: 14.56 kB / 0.8418 GB, free: 10.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001293/0.593, allocations: 338.9 kB / 0.8421 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003122/0.5933, allocations: 252.1 kB / 0.8424 GB, free: 10.54 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005212/0.5938, allocations: 0.5767 MB / 0.843 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/0.5942, allocations: 361.1 kB / 0.8433 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.5942, allocations: 2.844 kB / 0.8433 GB, free: 10.05 MB / 0.5762 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.001011/0.5953, allocations: 0.8583 MB / 0.8441 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.5953, allocations: 8.781 kB / 0.8441 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.5953, allocations: 7.875 kB / 0.8442 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.5953, allocations: 13.91 kB / 0.8442 GB, free: 9.875 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.5958, allocations: 158.7 kB / 0.8443 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.545e-05/0.5959, allocations: 17.58 kB / 0.8443 GB, free: 9.855 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007805/0.5966, allocations: 151.9 kB / 0.8445 GB, free: 9.785 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.168e-05/0.5967, allocations: 40.34 kB / 0.8445 GB, free: 9.777 MB / 0.5762 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.0003415/0.597, allocations: 331.1 kB / 0.8448 GB, free: 9.629 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5972, allocations: 90.31 kB / 0.8449 GB, free: 9.582 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007915/0.598, allocations: 0.6438 MB / 0.8455 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.598, allocations: 5.781 kB / 0.8456 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.598, allocations: 0 / 0.8456 GB, free: 9.426 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000561/0.5986, allocations: 0.519 MB / 0.8461 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00209/0.6007, allocations: 1.78 MB / 0.8478 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.6007, allocations: 4.281 kB / 0.8478 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004819/0.6012, allocations: 108.7 kB / 0.8479 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.6012, allocations: 9.672 kB / 0.8479 GB, free: 8.52 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.6012, allocations: 23.8 kB / 0.8479 GB, free: 8.508 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.6012, allocations: 5.906 kB / 0.8479 GB, free: 8.508 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6012, allocations: 2.938 kB / 0.8479 GB, free: 8.508 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.6023, allocations: 1.132 MB / 0.8491 GB, free: 8.016 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003152/0.6027, allocations: 232.6 kB / 0.8493 GB, free: 7.852 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.6028, allocations: 17.08 kB / 0.8493 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005153/0.6033, allocations: 66.64 kB / 0.8494 GB, free: 7.824 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.6034, allocations: 31.8 kB / 0.8494 GB, free: 7.812 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.6034, allocations: 28.56 kB / 0.8494 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000495/0.6039, allocations: 0.5067 MB / 0.8499 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6039, allocations: 2.938 kB / 0.8499 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006877/0.6046, allocations: 299 kB / 0.8502 GB, free: 7.59 MB / 0.5762 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.0004109/0.605, allocations: 215.7 kB / 0.8504 GB, free: 7.469 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0007397/0.6058, allocations: 0.628 MB / 0.851 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6058, allocations: 0 / 0.851 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002896/0.6061, allocations: 277.9 kB / 0.8513 GB, free: 7.344 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.6077, allocations: 426.6 kB / 0.8517 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002505/0.6102, allocations: 2.395 MB / 0.854 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.6108, allocations: 1.141 MB / 0.8551 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006868/0.6115, allocations: 278.6 kB / 0.8554 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/0.6117, allocations: 78.94 kB / 0.8555 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of SimCode: time 2.31e-07/0.6117, allocations: 0 / 0.8555 GB, free: 4.73 MB / 0.5762 GB Notification: Performance of Templates: time 0.01993/0.6316, allocations: 14.84 MB / 0.87 GB, free: 11.48 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & ./BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) Environment - environmentSimulation: