Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.494/2.494, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 182.7 kB / 0.4901 GB, free: 2.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.633/1.633, allocations: 223.1 MB / 0.7992 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 97 kB / 0.9396 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004526/0.0004524, allocations: 9.281 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3456, allocations: 143 MB / 1.229 GB, free: 85.38 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.434/4.78, allocations: 1.981 GB / 3.21 GB, free: 433.7 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/4.78, allocations: 92.67 kB / 3.21 GB, free: 433.7 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 6.463/11.24, allocations: 2.073 GB / 5.283 GB, free: 141.7 MB / 1.214 GB Notification: Performance of FrontEnd: time 2.755e-06/11.24, allocations: 0 / 5.283 GB, free: 141.7 MB / 1.214 GB Notification: Performance of Transformations before backend: time 0.0003425/11.24, allocations: 95.75 kB / 5.283 GB, free: 141.7 MB / 1.214 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.01266/11.26, allocations: 3.98 MB / 5.287 GB, free: 139.3 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/11.26, allocations: 11.47 kB / 5.287 GB, free: 139.3 MB / 1.214 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001666/11.26, allocations: 391 kB / 5.288 GB, free: 139.2 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006813/11.26, allocations: 0.9299 MB / 5.288 GB, free: 138.9 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0091/11.27, allocations: 2.905 MB / 5.291 GB, free: 137.6 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003115/11.27, allocations: 280 kB / 5.292 GB, free: 137.6 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008577/11.27, allocations: 292.8 kB / 5.292 GB, free: 137.6 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007733/11.28, allocations: 3.216 MB / 5.295 GB, free: 135.2 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.505e-05/11.28, allocations: 0 / 5.295 GB, free: 135.2 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004663/11.28, allocations: 117.8 kB / 5.295 GB, free: 135.1 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/11.28, allocations: 105.3 kB / 5.295 GB, free: 135 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00562/11.29, allocations: 2.648 MB / 5.298 GB, free: 132.3 MB / 1.214 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.01865/11.31, allocations: 13.23 MB / 5.311 GB, free: 118.1 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/11.31, allocations: 1.659 MB / 5.312 GB, free: 116.5 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004405/11.31, allocations: 325.1 kB / 5.313 GB, free: 116.1 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/11.31, allocations: 67.25 kB / 5.313 GB, free: 116 MB / 1.214 GB Notification: Performance of pre-optimization done (n=182): time 3.898e-06/11.31, allocations: 0 / 5.313 GB, free: 116 MB / 1.214 GB Notification: Performance of matching and sorting (n=182): time 0.004582/11.32, allocations: 2.695 MB / 5.315 GB, free: 113.3 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.005e-05/11.32, allocations: 69.41 kB / 5.315 GB, free: 113.3 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002159/11.32, allocations: 1.712 MB / 5.317 GB, free: 111.5 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.0002165/11.32, allocations: 65.7 kB / 5.317 GB, free: 111.5 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007407/11.32, allocations: 1.421 MB / 5.319 GB, free: 110 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005017/11.32, allocations: 0.6379 MB / 5.319 GB, free: 109.4 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/11.32, allocations: 44 kB / 5.319 GB, free: 109.4 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0001038/11.32, allocations: 389.8 kB / 5.32 GB, free: 109 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/11.32, allocations: 0.777 MB / 5.32 GB, free: 108.2 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/11.32, allocations: 1.443 MB / 5.322 GB, free: 106.5 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/11.32, allocations: 1.037 MB / 5.323 GB, free: 105.5 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/11.32, allocations: 4 kB / 5.323 GB, free: 105.5 MB / 1.214 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00349/11.33, allocations: 2.457 MB / 5.325 GB, free: 103 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.001085/11.33, allocations: 5.525 MB / 5.331 GB, free: 97.02 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/11.33, allocations: 15.62 kB / 5.331 GB, free: 97.01 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.23e-05/11.33, allocations: 24 kB / 5.331 GB, free: 96.99 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/11.33, allocations: 0.5157 MB / 5.331 GB, free: 96.48 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/11.33, allocations: 4.16 MB / 5.335 GB, free: 92.17 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00374/11.33, allocations: 407.1 kB / 5.336 GB, free: 91.79 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/11.33, allocations: 87.98 kB / 5.336 GB, free: 91.71 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/11.33, allocations: 4 kB / 5.336 GB, free: 91.7 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002915/11.34, allocations: 2.196 MB / 5.338 GB, free: 89.52 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/11.34, allocations: 12 kB / 5.338 GB, free: 89.51 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/11.34, allocations: 24 kB / 5.338 GB, free: 89.48 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001673/11.34, allocations: 475.3 kB / 5.338 GB, free: 89.02 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.544e-05/11.34, allocations: 31.92 kB / 5.338 GB, free: 88.99 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003607/11.34, allocations: 390.2 kB / 5.339 GB, free: 88.61 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/11.34, allocations: 87.98 kB / 5.339 GB, free: 88.52 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (257): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001888/11.35, allocations: 0.8634 MB / 5.34 GB, free: 87.64 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00062/11.35, allocations: 268.7 kB / 5.34 GB, free: 87.38 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003067/11.35, allocations: 2.087 MB / 5.342 GB, free: 85.28 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/11.35, allocations: 20 kB / 5.342 GB, free: 85.26 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/11.35, allocations: 0 / 5.342 GB, free: 85.26 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002118/11.35, allocations: 1.875 MB / 5.344 GB, free: 83.33 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008941/11.36, allocations: 5.148 MB / 5.349 GB, free: 78.13 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.769e-06/11.36, allocations: 4 kB / 5.349 GB, free: 78.13 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002239/11.36, allocations: 0.4954 MB / 5.349 GB, free: 77.64 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.873e-05/11.36, allocations: 12 kB / 5.349 GB, free: 77.63 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/11.36, allocations: 51.97 kB / 5.349 GB, free: 77.58 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/11.36, allocations: 4.122 MB / 5.353 GB, free: 73.29 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/11.36, allocations: 8 kB / 5.353 GB, free: 73.29 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004083/11.37, allocations: 3.417 MB / 5.357 GB, free: 69.74 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001631/11.37, allocations: 0.5717 MB / 5.357 GB, free: 69.14 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003481/11.37, allocations: 47.98 kB / 5.357 GB, free: 69.1 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002252/11.37, allocations: 247.3 kB / 5.358 GB, free: 68.86 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/11.37, allocations: 113.8 kB / 5.358 GB, free: 68.75 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/11.37, allocations: 75.95 kB / 5.358 GB, free: 68.67 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.001859/11.37, allocations: 1.31 MB / 5.359 GB, free: 67.35 MB / 1.214 GB Notification: Performance of sort global known variables: time 5.82e-07/11.37, allocations: 0 / 5.359 GB, free: 67.35 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.006971/11.38, allocations: 2.144 MB / 5.361 GB, free: 65.2 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.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 (182): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01104/11.39, allocations: 9.361 MB / 5.37 GB, free: 55.59 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.005241/11.4, allocations: 3.212 MB / 5.373 GB, free: 52.39 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/11.4, allocations: 4 kB / 5.373 GB, free: 52.39 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001415/11.4, allocations: 1.003 MB / 5.374 GB, free: 51.38 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007405/11.41, allocations: 1.584 MB / 5.376 GB, free: 49.85 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/11.42, allocations: 19.34 MB / 5.395 GB, free: 29.81 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00161/11.42, allocations: 2.248 MB / 5.397 GB, free: 27.54 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.004091/11.43, allocations: 1.093 MB / 5.398 GB, free: 26.47 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001531/11.43, allocations: 1.269 MB / 5.399 GB, free: 25.2 MB / 1.214 GB Notification: Performance of SimCode: time 8.52e-07/11.43, allocations: 0 / 5.399 GB, free: 25.2 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.054/12.48, allocations: 135.7 MB / 5.532 GB, free: 163.5 MB / 1.245 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000191/12.48, allocations: 263.1 kB / 5.532 GB, free: 163.2 MB / 1.245 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.172/19.66, allocations: 0 / 5.532 GB, free: 163.2 MB / 1.245 GB (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat does not exist to compare? outputFormat=mat