Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.225/2.225, allocations: 387.1 MB / 399.7 MB, free: 9.422 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.0009487/0.0009487, allocations: 176.4 kB / 492.3 MB, free: 0.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.645/1.645, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.0009434/0.0009433, allocations: 96.42 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.287e-05, allocations: 5.703 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2817, allocations: 142.4 MB / 1.212 GB, free: 38.42 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.215/5.496, allocations: 1.98 GB / 3.192 GB, free: 303.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/5.497, allocations: 88.02 kB / 3.192 GB, free: 303.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 7.163/12.66, allocations: 2.071 GB / 5.264 GB, free: 4.34 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.064e-06/12.66, allocations: 3.75 kB / 5.264 GB, free: 4.34 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0004899/12.66, allocations: 97.78 kB / 5.264 GB, free: 4.246 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.01269/12.67, allocations: 3.494 MB / 5.267 GB, free: 0.6953 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 6.637e-05/12.67, allocations: 13.47 kB / 5.267 GB, free: 0.6836 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002297/12.67, allocations: 387.7 kB / 5.268 GB, free: 304 kB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008436/12.68, allocations: 0.9204 MB / 5.269 GB, free: 15.37 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/12.69, allocations: 2.899 MB / 5.271 GB, free: 12.4 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000448/12.69, allocations: 281.4 kB / 5.272 GB, free: 12.11 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00155/12.7, allocations: 291.9 kB / 5.272 GB, free: 11.82 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/12.71, allocations: 3.133 MB / 5.275 GB, free: 8.605 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001539/12.71, allocations: 7.984 kB / 5.275 GB, free: 8.598 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009424/12.71, allocations: 116 kB / 5.275 GB, free: 8.484 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001565/12.71, allocations: 101.3 kB / 5.275 GB, free: 8.383 MB / 1.214 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007022/12.72, allocations: 2.582 MB / 5.278 GB, free: 5.789 MB / 1.214 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.02588/12.74, allocations: 13.22 MB / 5.291 GB, free: 7.391 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003564/12.75, allocations: 1.627 MB / 5.292 GB, free: 5.754 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/12.75, allocations: 1.063 MB / 5.293 GB, free: 4.688 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007314/12.75, allocations: 329.2 kB / 5.294 GB, free: 4.309 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.606e-05/12.75, allocations: 56.52 kB / 5.294 GB, free: 4.246 MB / 1.229 GB Notification: Performance of pre-optimization done (n=182): time 7.674e-06/12.75, allocations: 0 / 5.294 GB, free: 4.246 MB / 1.229 GB Notification: Performance of matching and sorting (n=182): time 0.005458/12.75, allocations: 1.956 MB / 5.296 GB, free: 2.285 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/12.75, allocations: 69.41 kB / 5.296 GB, free: 2.203 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004437/12.76, allocations: 1.691 MB / 5.297 GB, free: 0.4922 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.0003744/12.76, allocations: 73.7 kB / 5.297 GB, free: 424 kB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.8857/13.64, allocations: 1.407 MB / 5.299 GB, free: 147.8 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.001197/13.65, allocations: 0.6429 MB / 5.299 GB, free: 147.5 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/13.65, allocations: 38.78 kB / 5.299 GB, free: 147.5 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0001745/13.65, allocations: 386.8 kB / 5.3 GB, free: 147.2 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/13.65, allocations: 0.7595 MB / 5.301 GB, free: 147.2 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/13.65, allocations: 1.405 MB / 5.302 GB, free: 146.5 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/13.65, allocations: 1.028 MB / 5.303 GB, free: 146.4 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/13.65, allocations: 6.969 kB / 5.303 GB, free: 146.4 MB / 1.229 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00612/13.66, allocations: 2.412 MB / 5.305 GB, free: 146.2 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.002483/13.66, allocations: 5.517 MB / 5.311 GB, free: 140.4 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.323e-05/13.66, allocations: 15.44 kB / 5.311 GB, free: 140.4 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001051/13.66, allocations: 26.02 kB / 5.311 GB, free: 140.4 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002889/13.66, allocations: 0.5121 MB / 5.311 GB, free: 140.4 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/13.66, allocations: 4.159 MB / 5.315 GB, free: 136.3 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00501/13.67, allocations: 407.2 kB / 5.316 GB, free: 136.3 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003394/13.67, allocations: 89.33 kB / 5.316 GB, free: 136.3 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/13.67, allocations: 5.688 kB / 5.316 GB, free: 136.3 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005441/13.68, allocations: 2.144 MB / 5.318 GB, free: 136.2 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.574e-05/13.68, allocations: 15 kB / 5.318 GB, free: 136.2 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.543e-05/13.68, allocations: 25.03 kB / 5.318 GB, free: 136.2 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/13.68, allocations: 472.3 kB / 5.318 GB, free: 136.2 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001041/13.68, allocations: 35.38 kB / 5.318 GB, free: 136.2 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004084/13.68, allocations: 386.1 kB / 5.319 GB, free: 136.2 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002751/13.68, allocations: 87.08 kB / 5.319 GB, free: 136.2 MB / 1.229 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.0007735/13.68, allocations: 240.7 kB / 5.319 GB, free: 136.1 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001166/13.68, allocations: 267.8 kB / 5.319 GB, free: 135.9 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004869/13.69, allocations: 2.054 MB / 5.321 GB, free: 135.8 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.71e-05/13.69, allocations: 17.75 kB / 5.321 GB, free: 135.8 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/13.69, allocations: 1.094 kB / 5.321 GB, free: 135.8 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003109/13.69, allocations: 1.832 MB / 5.323 GB, free: 135.5 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/13.71, allocations: 5.117 MB / 5.328 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-05/13.71, allocations: 2.562 kB / 5.328 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0027/13.71, allocations: 0.4945 MB / 5.329 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.369e-05/13.71, allocations: 10.16 kB / 5.329 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000213/13.71, allocations: 46.16 kB / 5.329 GB, free: 135 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/13.71, allocations: 4.132 MB / 5.333 GB, free: 130.9 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/13.71, allocations: 5.406 kB / 5.333 GB, free: 130.9 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006364/13.72, allocations: 3.352 MB / 5.336 GB, free: 130.1 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002579/13.72, allocations: 0.5724 MB / 5.337 GB, free: 129.9 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009596/13.72, allocations: 48.59 kB / 5.337 GB, free: 129.9 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003503/13.72, allocations: 247.9 kB / 5.337 GB, free: 129.9 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/13.73, allocations: 118.2 kB / 5.337 GB, free: 129.9 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002772/13.73, allocations: 71.56 kB / 5.337 GB, free: 129.9 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.004098/13.73, allocations: 1.294 MB / 5.338 GB, free: 129.7 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.533e-06/13.73, allocations: 0 / 5.338 GB, free: 129.7 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.008739/13.74, allocations: 2.145 MB / 5.34 GB, free: 129.6 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.01479/13.75, allocations: 9.306 MB / 5.349 GB, free: 125.5 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.008464/13.76, allocations: 3.23 MB / 5.353 GB, free: 125.4 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/13.76, allocations: 0 / 5.353 GB, free: 125.4 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.002342/13.76, allocations: 0.9859 MB / 5.354 GB, free: 125.4 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01082/13.77, allocations: 1.578 MB / 5.355 GB, free: 125.4 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02096/13.8, allocations: 6.392 MB / 5.361 GB, free: 124 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003593/13.8, allocations: 2.255 MB / 5.364 GB, free: 123.3 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.007792/13.81, allocations: 1.343 MB / 5.365 GB, free: 123.2 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002422/13.81, allocations: 1.229 MB / 5.366 GB, free: 123.2 MB / 1.229 GB Notification: Performance of SimCode: time 1.894e-06/13.81, allocations: 0 / 5.366 GB, free: 123.2 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2476/14.06, allocations: 151 MB / 5.514 GB, free: 118.3 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001822/14.06, allocations: 228.7 kB / 5.514 GB, free: 118.1 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/21.47, allocations: 0 / 5.514 GB, free: 118.1 MB / 1.229 GB (rm -f Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat does not exist to compare? outputFormat=mat