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.28/2.28, allocations: 387.4 MB / 394.9 MB, free: 13.34 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.001427/0.001427, allocations: 176.8 kB / 487.4 MB, free: 5.031 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.634/1.634, allocations: 221.5 MB / 0.7824 GB, free: 0.9766 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008609/0.0008607, allocations: 83.97 kB / 0.9219 GB, free: 2.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.302e-05/2.299e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3034, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.815/6.118, allocations: 1.979 GB / 3.185 GB, free: 370.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/6.118, allocations: 84.55 kB / 3.185 GB, free: 370.7 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 7.426/13.54, allocations: 2.049 GB / 5.235 GB, free: 70.47 MB / 1.198 GB Notification: Performance of FrontEnd: time 1.693e-06/13.54, allocations: 3.75 kB / 5.235 GB, free: 70.47 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0002977/13.54, allocations: 95.97 kB / 5.235 GB, free: 70.38 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.009429/13.55, allocations: 3.491 MB / 5.238 GB, free: 66.83 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/13.55, allocations: 8.031 kB / 5.238 GB, free: 66.82 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006719/13.56, allocations: 0.923 MB / 5.239 GB, free: 65.9 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007485/13.57, allocations: 2.889 MB / 5.242 GB, free: 62.95 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002114/13.57, allocations: 172.8 kB / 5.242 GB, free: 62.76 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005316/13.57, allocations: 183.8 kB / 5.242 GB, free: 62.58 MB / 1.198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004282/13.57, allocations: 2.443 MB / 5.245 GB, free: 60.13 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00436/13.58, allocations: 2.75 MB / 5.247 GB, free: 57.3 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.278e-05/13.58, allocations: 7.938 kB / 5.247 GB, free: 57.3 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002419/13.58, allocations: 4 kB / 5.247 GB, free: 57.29 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-05/13.58, allocations: 105.3 kB / 5.247 GB, free: 57.19 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.01541/13.59, allocations: 12.7 MB / 5.26 GB, free: 43.36 MB / 1.198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/13.6, allocations: 1.582 MB / 5.261 GB, free: 41.77 MB / 1.198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/13.6, allocations: 1.005 MB / 5.262 GB, free: 40.77 MB / 1.198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004165/13.6, allocations: 329.2 kB / 5.263 GB, free: 40.4 MB / 1.198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/13.6, allocations: 56.56 kB / 5.263 GB, free: 40.33 MB / 1.198 GB Notification: Performance of pre-optimization done (n=182): time 2.915e-06/13.6, allocations: 0 / 5.263 GB, free: 40.33 MB / 1.198 GB Notification: Performance of matching and sorting (n=182): time 0.003329/13.6, allocations: 1.87 MB / 5.265 GB, free: 38.45 MB / 1.198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/13.6, allocations: 69.41 kB / 5.265 GB, free: 38.38 MB / 1.198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001779/13.6, allocations: 1.435 MB / 5.266 GB, free: 36.92 MB / 1.198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002006/13.6, allocations: 29.7 kB / 5.266 GB, free: 36.89 MB / 1.198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008104/13.6, allocations: 1.403 MB / 5.267 GB, free: 35.46 MB / 1.198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005025/13.6, allocations: 0.6197 MB / 5.268 GB, free: 34.83 MB / 1.198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.585e-05/13.6, allocations: 0 / 5.268 GB, free: 34.83 MB / 1.198 GB Notification: Performance of setup shared object (initialization): time 0.0001033/13.6, allocations: 389.8 kB / 5.268 GB, free: 34.45 MB / 1.198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009237/13.6, allocations: 0.7225 MB / 5.269 GB, free: 33.72 MB / 1.198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001167/13.61, allocations: 1.361 MB / 5.27 GB, free: 32.07 MB / 1.198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/13.61, allocations: 0.9838 MB / 5.271 GB, free: 31.1 MB / 1.198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/13.61, allocations: 4 kB / 5.271 GB, free: 31.09 MB / 1.198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.00326/13.61, allocations: 2.233 MB / 5.274 GB, free: 28.85 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 0.000954/13.61, allocations: 5.478 MB / 5.279 GB, free: 22.82 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/13.61, allocations: 16 kB / 5.279 GB, free: 22.81 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.912e-05/13.61, allocations: 24 kB / 5.279 GB, free: 22.79 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002221/13.61, allocations: 0.5261 MB / 5.279 GB, free: 22.27 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001331/13.62, allocations: 4.184 MB / 5.284 GB, free: 17.92 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/13.62, allocations: 350.1 kB / 5.284 GB, free: 17.57 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001647/13.62, allocations: 87.98 kB / 5.284 GB, free: 17.49 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/13.62, allocations: 4 kB / 5.284 GB, free: 17.48 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002536/13.62, allocations: 1.929 MB / 5.286 GB, free: 15.56 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/13.62, allocations: 16.25 kB / 5.286 GB, free: 15.54 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.265e-05/13.62, allocations: 24 kB / 5.286 GB, free: 15.52 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/13.62, allocations: 471.3 kB / 5.286 GB, free: 15.06 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.825e-05/13.62, allocations: 35.86 kB / 5.286 GB, free: 15.02 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003281/13.63, allocations: 334.1 kB / 5.287 GB, free: 14.7 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/13.63, allocations: 87.98 kB / 5.287 GB, free: 14.61 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.0005111/13.63, allocations: 156.4 kB / 5.287 GB, free: 14.45 MB / 1.198 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00259/13.63, allocations: 1.765 MB / 5.289 GB, free: 12.68 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003319/13.63, allocations: 260.6 kB / 5.289 GB, free: 12.43 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002668/13.63, allocations: 1.907 MB / 5.291 GB, free: 10.5 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/13.63, allocations: 23.95 kB / 5.291 GB, free: 10.48 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/13.63, allocations: 0 / 5.291 GB, free: 10.48 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001793/13.63, allocations: 1.73 MB / 5.292 GB, free: 8.703 MB / 1.198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007126/13.64, allocations: 4.66 MB / 5.297 GB, free: 3.953 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/13.64, allocations: 7.203 kB / 5.297 GB, free: 3.949 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/13.64, allocations: 0.4911 MB / 5.298 GB, free: 3.465 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.708e-05/13.64, allocations: 12 kB / 5.298 GB, free: 3.453 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/13.64, allocations: 27.98 kB / 5.298 GB, free: 3.426 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/13.65, allocations: 4.134 MB / 5.302 GB, free: 15.13 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/13.65, allocations: 7.938 kB / 5.302 GB, free: 15.12 MB / 1.214 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004571/13.65, allocations: 3.217 MB / 5.305 GB, free: 11.76 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/13.65, allocations: 0.5521 MB / 5.305 GB, free: 11.19 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003869/13.65, allocations: 12 kB / 5.305 GB, free: 11.18 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002336/13.65, allocations: 215.4 kB / 5.305 GB, free: 10.96 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/13.65, allocations: 121.8 kB / 5.306 GB, free: 10.85 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001449/13.65, allocations: 71.95 kB / 5.306 GB, free: 10.78 MB / 1.214 GB Notification: Performance of sorting global known variables: time 0.001699/13.66, allocations: 1.061 MB / 5.307 GB, free: 9.703 MB / 1.214 GB Notification: Performance of sort global known variables: time 1.4e-07/13.66, allocations: 0 / 5.307 GB, free: 9.703 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.005222/13.66, allocations: 1.924 MB / 5.309 GB, free: 7.773 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 () * 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.7583/14.42, allocations: 9.609 MB / 5.318 GB, free: 146.1 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.007378/14.43, allocations: 3.066 MB / 5.321 GB, free: 146.1 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-05/14.43, allocations: 3.906 kB / 5.321 GB, free: 146.1 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.001992/14.43, allocations: 0.9473 MB / 5.322 GB, free: 146.1 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008816/14.44, allocations: 1.44 MB / 5.323 GB, free: 146.1 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/14.45, allocations: 6.201 MB / 5.329 GB, free: 144.8 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00267/14.46, allocations: 2.255 MB / 5.332 GB, free: 144 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.006584/14.46, allocations: 1.265 MB / 5.333 GB, free: 144 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002287/14.47, allocations: 1.236 MB / 5.334 GB, free: 144 MB / 1.214 GB Notification: Performance of SimCode: time 2.124e-06/14.47, allocations: 3.031 kB / 5.334 GB, free: 144 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1821/14.65, allocations: 104.7 MB / 5.436 GB, free: 140.6 MB / 1.214 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/14.65, allocations: 175.2 kB / 5.436 GB, free: 140.4 MB / 1.214 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.127/20.77, allocations: 0 / 5.436 GB, free: 140.4 MB / 1.214 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