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.001011/0.001011, allocations: 108 kB / 15.6 MB, free: 132 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.001005/0.001005, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.234/1.234, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002005/0.002005, allocations: 291 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.892/0.892, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 101.2 kB / 0.5954 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1349, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.4655/0.6004, allocations: 195.1 MB / 0.8708 GB, free: 12.31 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01683/0.6173, allocations: 14.31 MB / 0.8848 GB, free: 0.7109 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.6187, allocations: 41.28 kB / 0.8848 GB, free: 0.6953 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001566/0.6203, allocations: 0.4958 MB / 0.8853 GB, free: 284 kB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004854/0.6252, allocations: 1.885 MB / 0.8871 GB, free: 14.83 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002292/0.6275, allocations: 0.8583 MB / 0.888 GB, free: 14.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003045/0.6305, allocations: 2.571 MB / 0.8905 GB, free: 12.73 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001565/0.6321, allocations: 1.114 MB / 0.8916 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003731/0.6358, allocations: 1.591 MB / 0.8931 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001556/0.6374, allocations: 0.9191 MB / 0.894 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.000284/0.6377, allocations: 105.5 kB / 0.8941 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002262/0.64, allocations: 1.094 MB / 0.8952 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005904/0.6406, allocations: 0.5057 MB / 0.8957 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.6416, allocations: 0.6364 MB / 0.8963 GB, free: 9.297 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002707/0.6443, allocations: 1.888 MB / 0.8981 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.6443, allocations: 0 / 0.8981 GB, free: 8.074 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.203e-06/0.6444, allocations: 3.938 kB / 0.8982 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.635e-05/0.6444, allocations: 0 / 0.8982 GB, free: 8.07 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.002522/0.6469, allocations: 1.453 MB / 0.8996 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.647, allocations: 12.03 kB / 0.8996 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001861/0.6472, allocations: 143.6 kB / 0.8997 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.6486, allocations: 250.4 kB / 0.9 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.6498, allocations: 0.7647 MB / 0.9007 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.272e-05/0.6499, allocations: 70 kB / 0.9008 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001371/0.65, allocations: 92 kB / 0.9009 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.6516, allocations: 1.177 MB / 0.902 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.443e-05/0.6517, allocations: 4 kB / 0.902 GB, free: 4.148 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.29e-05/0.6518, allocations: 39.94 kB / 0.902 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.94e-05/0.6518, allocations: 34 kB / 0.9021 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001336/0.6531, allocations: 0.9054 MB / 0.903 GB, free: 3.168 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.005206/0.6584, allocations: 5.767 MB / 0.9086 GB, free: 12.94 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008211/0.6592, allocations: 0.5406 MB / 0.9091 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004216/0.6596, allocations: 326.5 kB / 0.9094 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005555/0.6602, allocations: 311.7 kB / 0.9097 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.6602, allocations: 39 kB / 0.9098 GB, free: 11.67 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 1.924e-06/0.6602, allocations: 4 kB / 0.9098 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001427/0.6617, allocations: 0.7987 MB / 0.9106 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.6617, allocations: 55.84 kB / 0.9106 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008599/0.6626, allocations: 0.7548 MB / 0.9113 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.997e-05/0.6626, allocations: 37.7 kB / 0.9114 GB, free: 9.984 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003292/0.663, allocations: 0.5025 MB / 0.9119 GB, free: 9.473 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/0.6631, allocations: 181.5 kB / 0.912 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001866/0.6633, allocations: 142.5 kB / 0.9122 GB, free: 9.148 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.6634, allocations: 337.9 kB / 0.9125 GB, free: 8.812 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003627/0.6638, allocations: 253.8 kB / 0.9127 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005722/0.6644, allocations: 0.5507 MB / 0.9133 GB, free: 7.879 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000942/0.6653, allocations: 0.7956 MB / 0.9141 GB, free: 6.973 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.6654, allocations: 4 kB / 0.9141 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001303/0.6667, allocations: 0.8461 MB / 0.9149 GB, free: 6.117 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.6667, allocations: 8 kB / 0.9149 GB, free: 6.109 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.6667, allocations: 8 kB / 0.9149 GB, free: 6.102 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/0.6667, allocations: 12.75 kB / 0.9149 GB, free: 6.09 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005321/0.6673, allocations: 155.7 kB / 0.9151 GB, free: 5.938 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.019e-05/0.6673, allocations: 23.92 kB / 0.9151 GB, free: 5.914 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007116/0.668, allocations: 83.2 kB / 0.9152 GB, free: 5.832 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.485e-05/0.6681, allocations: 39.92 kB / 0.9152 GB, free: 5.793 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.0004013/0.6685, allocations: 325.5 kB / 0.9155 GB, free: 5.465 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.6687, allocations: 90.95 kB / 0.9156 GB, free: 5.375 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009534/0.6696, allocations: 0.6257 MB / 0.9162 GB, free: 4.738 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.6696, allocations: 4 kB / 0.9162 GB, free: 4.734 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.6696, allocations: 0 / 0.9162 GB, free: 4.734 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006864/0.6703, allocations: 0.5173 MB / 0.9167 GB, free: 4.207 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.6727, allocations: 1.674 MB / 0.9184 GB, free: 2.453 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.6727, allocations: 3.938 kB / 0.9184 GB, free: 2.449 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004926/0.6732, allocations: 107.9 kB / 0.9185 GB, free: 2.344 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.008e-05/0.6732, allocations: 7.984 kB / 0.9185 GB, free: 2.336 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.715e-05/0.6732, allocations: 8 kB / 0.9185 GB, free: 2.328 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.6733, allocations: 4 kB / 0.9185 GB, free: 2.324 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.6733, allocations: 4 kB / 0.9185 GB, free: 2.32 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.6746, allocations: 1.023 MB / 0.9195 GB, free: 1.258 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003166/0.6749, allocations: 227.9 kB / 0.9197 GB, free: 1.016 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.675, allocations: 16 kB / 0.9197 GB, free: 1 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004609/0.6755, allocations: 15.98 kB / 0.9197 GB, free: 0.9844 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.6756, allocations: 31.91 kB / 0.9198 GB, free: 0.9531 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.568e-05/0.6756, allocations: 23.98 kB / 0.9198 GB, free: 0.9297 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000621/0.6762, allocations: 0.5146 MB / 0.9203 GB, free: 428 kB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6762, allocations: 0 / 0.9203 GB, free: 428 kB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0008951/0.6771, allocations: 299.3 kB / 0.9206 GB, free: 128 kB / 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.001953/0.6791, allocations: 1.67 MB / 0.9222 GB, free: 14.42 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001081/0.6802, allocations: 0.71 MB / 0.9229 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.6802, allocations: 4 kB / 0.9229 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.6806, allocations: 275.8 kB / 0.9232 GB, free: 13.44 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001857/0.6824, allocations: 443.2 kB / 0.9236 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.6929, allocations: 7.506 MB / 0.9309 GB, free: 5.098 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008774/0.6939, allocations: 1.122 MB / 0.932 GB, free: 3.945 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0008879/0.6948, allocations: 271 kB / 0.9323 GB, free: 3.676 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006324/0.6954, allocations: 359.3 kB / 0.9326 GB, free: 3.328 MB / 0.6387 GB Notification: Performance of SimCode: time 7.72e-07/0.6954, allocations: 0 / 0.9326 GB, free: 3.328 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04904/0.7445, allocations: 22.87 MB / 0.955 GB, free: 12.83 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.559/8.303, allocations: 21.17 kB / 0.955 GB, free: 12.81 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)