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.16/2.16, allocations: 390.5 MB / 398 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.001187/0.001187, allocations: 183.8 kB / 491.2 MB, free: 1.625 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.474/1.474, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0009477/0.0009475, allocations: 93.92 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.816e-05/1.816e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2499, allocations: 143 MB / 1.212 GB, free: 39.47 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.243/5.493, allocations: 1.98 GB / 3.192 GB, free: 352 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/5.493, allocations: 80.7 kB / 3.192 GB, free: 351.9 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 7.166/12.66, allocations: 2.049 GB / 5.242 GB, free: 56.44 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.232e-06/12.66, allocations: 0 / 5.242 GB, free: 56.44 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0003809/12.66, allocations: 102.5 kB / 5.242 GB, free: 56.34 MB / 1.198 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.01051/12.67, allocations: 3.472 MB / 5.245 GB, free: 52.81 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/12.67, allocations: 15.31 kB / 5.245 GB, free: 52.8 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006623/12.68, allocations: 0.9243 MB / 5.246 GB, free: 51.87 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007955/12.68, allocations: 2.883 MB / 5.249 GB, free: 48.91 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002313/12.68, allocations: 180.8 kB / 5.249 GB, free: 48.72 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009753/12.69, allocations: 179.9 kB / 5.249 GB, free: 48.55 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004872/12.69, allocations: 2.439 MB / 5.252 GB, free: 46.11 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005643/12.7, allocations: 2.747 MB / 5.254 GB, free: 43.28 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.332e-05/12.7, allocations: 6.75 kB / 5.254 GB, free: 43.27 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003549/12.7, allocations: 7.984 kB / 5.254 GB, free: 43.27 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.351e-05/12.7, allocations: 97.34 kB / 5.255 GB, free: 43.17 MB / 1.198 GB Warning: The model contains alias variables with conflicting start and/or 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.0138/12.71, allocations: 12.71 MB / 5.267 GB, free: 29.34 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001909/12.71, allocations: 1.586 MB / 5.268 GB, free: 27.75 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/12.71, allocations: 1.008 MB / 5.269 GB, free: 26.74 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004288/12.71, allocations: 321.2 kB / 5.27 GB, free: 26.37 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/12.71, allocations: 64.56 kB / 5.27 GB, free: 26.3 MB / 1.198 GB Notification: Performance of pre-optimization done (n=182): time 3.707e-06/12.71, allocations: 1.859 kB / 5.27 GB, free: 26.3 MB / 1.198 GB Notification: Performance of matching and sorting (n=182): time 0.003344/12.72, allocations: 1.865 MB / 5.272 GB, free: 24.43 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/12.72, allocations: 69.41 kB / 5.272 GB, free: 24.35 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001705/12.72, allocations: 1.433 MB / 5.273 GB, free: 22.89 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0001848/12.72, allocations: 29.7 kB / 5.273 GB, free: 22.86 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007607/12.72, allocations: 1.41 MB / 5.275 GB, free: 21.43 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005045/12.72, allocations: 0.6197 MB / 5.275 GB, free: 20.8 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.548e-05/12.72, allocations: 0 / 5.275 GB, free: 20.8 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.000107/12.72, allocations: 385.9 kB / 5.276 GB, free: 20.41 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008834/12.72, allocations: 0.7263 MB / 5.276 GB, free: 19.68 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00117/12.72, allocations: 1.361 MB / 5.278 GB, free: 18.05 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/12.72, allocations: 0.9838 MB / 5.279 GB, free: 17.06 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/12.72, allocations: 8 kB / 5.279 GB, free: 17.05 MB / 1.198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.002932/12.73, allocations: 2.229 MB / 5.281 GB, free: 14.82 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001018/12.73, allocations: 5.484 MB / 5.286 GB, free: 8.785 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/12.73, allocations: 19.06 kB / 5.286 GB, free: 8.77 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.12e-05/12.73, allocations: 27.95 kB / 5.286 GB, free: 8.742 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002218/12.73, allocations: 0.5183 MB / 5.287 GB, free: 8.23 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001351/12.73, allocations: 4.177 MB / 5.291 GB, free: 3.891 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003455/12.73, allocations: 342 kB / 5.291 GB, free: 3.555 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001906/12.74, allocations: 87.98 kB / 5.291 GB, free: 3.469 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/12.74, allocations: 8 kB / 5.291 GB, free: 3.461 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002536/12.74, allocations: 1.921 MB / 5.293 GB, free: 1.539 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/12.74, allocations: 16 kB / 5.293 GB, free: 1.523 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/12.74, allocations: 24 kB / 5.293 GB, free: 1.5 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/12.74, allocations: 483.8 kB / 5.293 GB, free: 1.027 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.028e-05/12.74, allocations: 31.94 kB / 5.294 GB, free: 0.9961 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003358/12.74, allocations: 326.1 kB / 5.294 GB, free: 0.6758 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001771/12.74, allocations: 87.98 kB / 5.294 GB, free: 0.5898 MB / 1.198 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 () * 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.0005254/12.74, allocations: 160.4 kB / 5.294 GB, free: 436 kB / 1.198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00316/12.75, allocations: 1.769 MB / 5.296 GB, free: 14.64 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007185/12.75, allocations: 260.9 kB / 5.296 GB, free: 14.39 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003371/12.75, allocations: 1.903 MB / 5.298 GB, free: 12.48 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/12.75, allocations: 16 kB / 5.298 GB, free: 12.46 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/12.75, allocations: 0 / 5.298 GB, free: 12.46 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002319/12.75, allocations: 1.737 MB / 5.3 GB, free: 10.67 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01008/12.76, allocations: 4.67 MB / 5.304 GB, free: 5.918 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/12.76, allocations: 4 kB / 5.304 GB, free: 5.914 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002426/12.77, allocations: 499.2 kB / 5.305 GB, free: 5.434 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.22e-05/12.77, allocations: 8 kB / 5.305 GB, free: 5.426 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001522/12.77, allocations: 35.97 kB / 5.305 GB, free: 5.391 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002073/12.77, allocations: 4.13 MB / 5.309 GB, free: 1.098 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/12.77, allocations: 0 / 5.309 GB, free: 1.098 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004897/12.77, allocations: 3.22 MB / 5.312 GB, free: 13.74 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001939/12.77, allocations: 0.5521 MB / 5.312 GB, free: 13.17 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007753/12.78, allocations: 19.98 kB / 5.312 GB, free: 13.15 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003314/12.78, allocations: 223.3 kB / 5.313 GB, free: 12.93 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/12.78, allocations: 113.9 kB / 5.313 GB, free: 12.82 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001979/12.78, allocations: 71.95 kB / 5.313 GB, free: 12.75 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.002362/12.78, allocations: 1.065 MB / 5.314 GB, free: 11.67 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.5e-07/12.78, allocations: 0 / 5.314 GB, free: 11.67 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.007999/12.79, allocations: 1.921 MB / 5.316 GB, free: 9.742 MB / 1.229 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 () * 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.7807/13.57, allocations: 9.608 MB / 5.325 GB, free: 156.3 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.007067/13.58, allocations: 3.063 MB / 5.328 GB, free: 156.2 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/13.58, allocations: 6.984 kB / 5.328 GB, free: 156.2 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.002118/13.58, allocations: 0.942 MB / 5.329 GB, free: 156.2 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008907/13.59, allocations: 1.441 MB / 5.33 GB, free: 156.2 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/13.6, allocations: 6.2 MB / 5.336 GB, free: 154.9 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002394/13.61, allocations: 2.254 MB / 5.339 GB, free: 154.1 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.006021/13.61, allocations: 1.267 MB / 5.34 GB, free: 154.1 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002201/13.61, allocations: 1.233 MB / 5.341 GB, free: 154.1 MB / 1.229 GB Notification: Performance of SimCode: time 1.623e-06/13.61, allocations: 0 / 5.341 GB, free: 154.1 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1762/13.79, allocations: 104.7 MB / 5.443 GB, free: 151.1 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/13.79, allocations: 185 kB / 5.444 GB, free: 150.9 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.687/19.48, allocations: 1.75 kB / 5.444 GB, free: 150.9 MB / 1.229 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