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.175/2.175, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.001044/0.001044, allocations: 168.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 221.3 MB / 0.7915 GB, free: 5.402 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.001066/0.001066, allocations: 87.95 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.305e-05/4.308e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2869, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.866/5.153, allocations: 1.981 GB / 3.199 GB, free: 332.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/5.153, allocations: 90.77 kB / 3.2 GB, free: 332 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 6.81/11.96, allocations: 2.072 GB / 5.271 GB, free: 22.27 MB / 1.198 GB Notification: Performance of FrontEnd: time 2.174e-06/11.96, allocations: 0 / 5.271 GB, free: 22.27 MB / 1.198 GB Notification: Performance of Transformations before backend: time 0.0002359/11.96, allocations: 101.9 kB / 5.271 GB, free: 22.17 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.008666/11.97, allocations: 3.488 MB / 5.275 GB, free: 18.62 MB / 1.198 GB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/11.97, allocations: 12.03 kB / 5.275 GB, free: 18.61 MB / 1.198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006521/11.97, allocations: 387.7 kB / 5.275 GB, free: 18.23 MB / 1.198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005784/11.98, allocations: 0.9243 MB / 5.276 GB, free: 17.3 MB / 1.198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006551/11.98, allocations: 2.897 MB / 5.279 GB, free: 14.33 MB / 1.198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/11.98, allocations: 269.4 kB / 5.279 GB, free: 14.05 MB / 1.198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004024/11.99, allocations: 302.5 kB / 5.279 GB, free: 13.76 MB / 1.198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/11.99, allocations: 3.133 MB / 5.282 GB, free: 10.54 MB / 1.198 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.757e-05/11.99, allocations: 3.938 kB / 5.282 GB, free: 10.54 MB / 1.198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000262/11.99, allocations: 120 kB / 5.282 GB, free: 10.42 MB / 1.198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.149e-05/11.99, allocations: 101.3 kB / 5.282 GB, free: 10.32 MB / 1.198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003833/11.99, allocations: 2.578 MB / 5.285 GB, free: 7.727 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.01826/12.01, allocations: 13.22 MB / 5.298 GB, free: 9.328 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/12.02, allocations: 1.627 MB / 5.299 GB, free: 7.691 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/12.02, allocations: 1.059 MB / 5.301 GB, free: 6.637 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005143/12.02, allocations: 333.2 kB / 5.301 GB, free: 6.254 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.047e-05/12.02, allocations: 68.2 kB / 5.301 GB, free: 6.184 MB / 1.214 GB Notification: Performance of pre-optimization done (n=182): time 5.059e-06/12.02, allocations: 0 / 5.301 GB, free: 6.184 MB / 1.214 GB Notification: Performance of matching and sorting (n=182): time 0.004087/12.02, allocations: 1.956 MB / 5.303 GB, free: 4.219 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/12.02, allocations: 69.41 kB / 5.303 GB, free: 4.137 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002628/12.02, allocations: 1.688 MB / 5.305 GB, free: 2.43 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.000251/12.03, allocations: 73.7 kB / 5.305 GB, free: 2.352 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.001209/12.03, allocations: 1.414 MB / 5.306 GB, free: 0.918 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007551/12.03, allocations: 0.647 MB / 5.307 GB, free: 268 kB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/12.03, allocations: 40 kB / 5.307 GB, free: 228 kB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0002363/12.03, allocations: 385.9 kB / 5.307 GB, free: 15.84 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/12.03, allocations: 0.7537 MB / 5.308 GB, free: 15.08 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/12.03, allocations: 1.416 MB / 5.309 GB, free: 13.38 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001649/12.03, allocations: 1.035 MB / 5.31 GB, free: 12.35 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/12.03, allocations: 4 kB / 5.31 GB, free: 12.34 MB / 1.229 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.004487/12.04, allocations: 2.412 MB / 5.312 GB, free: 9.922 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.003205/12.04, allocations: 5.523 MB / 5.318 GB, free: 3.895 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/12.04, allocations: 12 kB / 5.318 GB, free: 3.883 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.556e-05/12.04, allocations: 28 kB / 5.318 GB, free: 3.855 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/12.04, allocations: 0.5105 MB / 5.318 GB, free: 3.352 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.831/12.87, allocations: 4.143 MB / 5.322 GB, free: 145.6 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004094/12.88, allocations: 408.5 kB / 5.323 GB, free: 145.6 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/12.88, allocations: 89.06 kB / 5.323 GB, free: 145.6 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/12.88, allocations: 4.219 kB / 5.323 GB, free: 145.6 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003804/12.88, allocations: 2.145 MB / 5.325 GB, free: 145.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.303e-05/12.88, allocations: 13.67 kB / 5.325 GB, free: 145.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.756e-05/12.88, allocations: 27.89 kB / 5.325 GB, free: 145.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001833/12.88, allocations: 475.6 kB / 5.326 GB, free: 145.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.986e-05/12.88, allocations: 33.75 kB / 5.326 GB, free: 145.5 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003525/12.89, allocations: 383.4 kB / 5.326 GB, free: 145.5 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002218/12.89, allocations: 87.73 kB / 5.326 GB, free: 145.5 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.0005772/12.89, allocations: 232.1 kB / 5.326 GB, free: 145.4 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006389/12.89, allocations: 272.4 kB / 5.326 GB, free: 145.4 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00414/12.89, allocations: 2.065 MB / 5.329 GB, free: 145.3 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/12.89, allocations: 18.34 kB / 5.329 GB, free: 145.3 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/12.89, allocations: 0 / 5.329 GB, free: 145.3 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002941/12.9, allocations: 1.824 MB / 5.33 GB, free: 145 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/12.91, allocations: 5.107 MB / 5.335 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/12.91, allocations: 4.156 kB / 5.335 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/12.91, allocations: 0.4943 MB / 5.336 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.797e-05/12.91, allocations: 11.2 kB / 5.336 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/12.91, allocations: 54.11 kB / 5.336 GB, free: 144.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001169/12.91, allocations: 4.127 MB / 5.34 GB, free: 140.4 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/12.91, allocations: 3.938 kB / 5.34 GB, free: 140.4 MB / 1.229 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004848/12.91, allocations: 3.36 MB / 5.343 GB, free: 139.7 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/12.92, allocations: 0.5716 MB / 5.344 GB, free: 139.5 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/12.92, allocations: 45.66 kB / 5.344 GB, free: 139.5 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002205/12.92, allocations: 248 kB / 5.344 GB, free: 139.5 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/12.92, allocations: 118.4 kB / 5.344 GB, free: 139.5 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001739/12.92, allocations: 72 kB / 5.344 GB, free: 139.5 MB / 1.229 GB Notification: Performance of sorting global known variables: time 0.002036/12.92, allocations: 1.293 MB / 5.345 GB, free: 139.3 MB / 1.229 GB Notification: Performance of sort global known variables: time 1.4e-07/12.92, allocations: 0 / 5.345 GB, free: 139.3 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.007074/12.93, allocations: 2.136 MB / 5.348 GB, free: 139.2 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.01229/12.94, allocations: 9.311 MB / 5.357 GB, free: 135.1 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.007454/12.95, allocations: 3.231 MB / 5.36 GB, free: 135 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/12.95, allocations: 2.781 kB / 5.36 GB, free: 135 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.001872/12.95, allocations: 0.9809 MB / 5.361 GB, free: 135 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009131/12.96, allocations: 1.569 MB / 5.362 GB, free: 135 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01336/12.97, allocations: 6.401 MB / 5.369 GB, free: 133.6 MB / 1.229 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002328/12.98, allocations: 2.254 MB / 5.371 GB, free: 132.8 MB / 1.229 GB Notification: Performance of simCode: alias equations: time 0.005837/12.98, allocations: 1.345 MB / 5.372 GB, free: 132.8 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00161/12.98, allocations: 1.232 MB / 5.373 GB, free: 132.8 MB / 1.229 GB Notification: Performance of SimCode: time 1.292e-06/12.98, allocations: 0 / 5.373 GB, free: 132.8 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2167/13.2, allocations: 151 MB / 5.521 GB, free: 128 MB / 1.229 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/13.2, allocations: 227 kB / 5.521 GB, free: 127.7 MB / 1.229 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.129/20.33, allocations: 0 / 5.521 GB, free: 127.7 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