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: "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_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.001104/0.001104, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001208/0.001208, allocations: 194 kB / 16.25 MB, free: 6.625 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.292/1.292, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001939/0.001939, allocations: 294.4 kB / 290.3 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9014/0.9014, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 93.62 kB / 0.5948 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1369, allocations: 86.98 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4543/0.5913, allocations: 192.6 MB / 0.8678 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01522/0.6065, allocations: 14.21 MB / 0.8817 GB, free: 3.242 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.6077, allocations: 32.25 kB / 0.8817 GB, free: 3.23 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.6091, allocations: 440.5 kB / 0.8821 GB, free: 2.879 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004411/0.6136, allocations: 1.772 MB / 0.8838 GB, free: 1.547 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.6156, allocations: 0.7773 MB / 0.8846 GB, free: 0.9844 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002755/0.6184, allocations: 2.571 MB / 0.8871 GB, free: 15.54 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.6196, allocations: 1.081 MB / 0.8882 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004019/0.6236, allocations: 1.587 MB / 0.8897 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001489/0.6251, allocations: 0.9809 MB / 0.8907 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.6253, allocations: 105.8 kB / 0.8908 GB, free: 13.41 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002138/0.6274, allocations: 1.151 MB / 0.8919 GB, free: 12.81 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004557/0.6279, allocations: 0.4989 MB / 0.8924 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0006102/0.6285, allocations: 0.6341 MB / 0.893 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002128/0.6306, allocations: 1.964 MB / 0.8949 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.6306, allocations: 1.781 kB / 0.8949 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.743e-06/0.6306, allocations: 0 / 0.8949 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.867e-05/0.6307, allocations: 4 kB / 0.8949 GB, free: 10.8 MB / 0.6075 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.002236/0.6329, allocations: 1.456 MB / 0.8963 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.633, allocations: 9.875 kB / 0.8964 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001619/0.6331, allocations: 146.6 kB / 0.8965 GB, free: 9.574 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.6345, allocations: 254 kB / 0.8967 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.6355, allocations: 0.7548 MB / 0.8975 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.864e-05/0.6355, allocations: 70 kB / 0.8975 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.6357, allocations: 92 kB / 0.8976 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.6373, allocations: 1.173 MB / 0.8988 GB, free: 7.32 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.6374, allocations: 7.938 kB / 0.8988 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.589e-05/0.6374, allocations: 43.94 kB / 0.8988 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.097e-05/0.6375, allocations: 33.98 kB / 0.8989 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.6388, allocations: 0.9015 MB / 0.8997 GB, free: 6.332 MB / 0.6075 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.004971/0.6438, allocations: 5.729 MB / 0.9053 GB, free: 148 kB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007936/0.6446, allocations: 0.5374 MB / 0.9059 GB, free: 15.6 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003947/0.645, allocations: 318.6 kB / 0.9062 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005546/0.6456, allocations: 311.7 kB / 0.9065 GB, free: 14.93 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.6456, allocations: 39 kB / 0.9065 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.924e-06/0.6456, allocations: 0 / 0.9065 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001357/0.647, allocations: 0.7987 MB / 0.9073 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.647, allocations: 59.84 kB / 0.9073 GB, free: 14 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007936/0.6478, allocations: 0.7471 MB / 0.9081 GB, free: 13.25 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.904e-05/0.6479, allocations: 37.7 kB / 0.9081 GB, free: 13.2 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003211/0.6482, allocations: 0.5142 MB / 0.9086 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.6483, allocations: 177.5 kB / 0.9088 GB, free: 12.51 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001878/0.6485, allocations: 142.5 kB / 0.9089 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.6486, allocations: 337.9 kB / 0.9092 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003443/0.649, allocations: 241.9 kB / 0.9095 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000567/0.6496, allocations: 0.5624 MB / 0.91 GB, free: 11.1 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009059/0.6505, allocations: 0.7995 MB / 0.9108 GB, free: 10.19 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.6505, allocations: 4.875 kB / 0.9108 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001147/0.6517, allocations: 0.8428 MB / 0.9116 GB, free: 9.336 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.6517, allocations: 10.5 kB / 0.9116 GB, free: 9.328 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.6517, allocations: 12 kB / 0.9116 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.6517, allocations: 12 kB / 0.9117 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.6523, allocations: 155.8 kB / 0.9118 GB, free: 9.152 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/0.6523, allocations: 21.41 kB / 0.9118 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008308/0.6531, allocations: 147.1 kB / 0.912 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.6532, allocations: 35.98 kB / 0.912 GB, free: 8.953 MB / 0.6231 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.0003681/0.6536, allocations: 329.5 kB / 0.9123 GB, free: 8.617 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.6537, allocations: 94.86 kB / 0.9124 GB, free: 8.523 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009201/0.6546, allocations: 0.614 MB / 0.913 GB, free: 7.898 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.6547, allocations: 11.94 kB / 0.913 GB, free: 7.887 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.6547, allocations: 0 / 0.913 GB, free: 7.887 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006673/0.6553, allocations: 0.5251 MB / 0.9135 GB, free: 7.352 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.6575, allocations: 1.663 MB / 0.9151 GB, free: 5.609 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.6576, allocations: 3.938 kB / 0.9151 GB, free: 5.605 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005201/0.6581, allocations: 115.8 kB / 0.9153 GB, free: 5.492 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.6581, allocations: 4 kB / 0.9153 GB, free: 5.488 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.275e-05/0.6581, allocations: 16 kB / 0.9153 GB, free: 5.473 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.778e-06/0.6582, allocations: 3.984 kB / 0.9153 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6582, allocations: 4 kB / 0.9153 GB, free: 5.465 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.6594, allocations: 1.015 MB / 0.9163 GB, free: 4.41 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002762/0.6597, allocations: 227.9 kB / 0.9165 GB, free: 4.168 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.6598, allocations: 15.98 kB / 0.9165 GB, free: 4.152 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005678/0.6603, allocations: 63.08 kB / 0.9166 GB, free: 4.094 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.6604, allocations: 35.89 kB / 0.9166 GB, free: 4.059 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.6605, allocations: 16 kB / 0.9166 GB, free: 4.043 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005522/0.661, allocations: 0.5146 MB / 0.9171 GB, free: 3.531 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.3e-07/0.661, allocations: 0 / 0.9171 GB, free: 3.531 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007679/0.6618, allocations: 303.3 kB / 0.9174 GB, free: 3.234 MB / 0.6231 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.001726/0.6635, allocations: 1.678 MB / 0.9191 GB, free: 1.523 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.001026/0.6646, allocations: 0.7054 MB / 0.9197 GB, free: 0.8203 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.6646, allocations: 0 / 0.9197 GB, free: 0.8203 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.6649, allocations: 267.7 kB / 0.92 GB, free: 0.5586 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.6668, allocations: 446.7 kB / 0.9204 GB, free: 140 kB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009114/0.6759, allocations: 7.86 MB / 0.9281 GB, free: 7.859 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006613/0.6766, allocations: 1.122 MB / 0.9292 GB, free: 6.707 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008067/0.6774, allocations: 267.1 kB / 0.9294 GB, free: 6.441 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.6778, allocations: 359.3 kB / 0.9298 GB, free: 6.09 MB / 0.6387 GB Notification: Performance of SimCode: time 5.11e-07/0.6778, allocations: 4 kB / 0.9298 GB, free: 6.086 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03574/0.7136, allocations: 22.73 MB / 0.952 GB, free: 15.77 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/0.7138, allocations: 259.9 kB / 0.9522 GB, free: 15.51 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.283/2.997, allocations: 0 / 0.9522 GB, free: 15.51 MB / 0.67 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)