Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json 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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.4 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 95.8 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.81e-05/2.812e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.125, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.577/9.702, allocations: 3.552 GB / 3.938 GB, free: 144.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/9.703, allocations: 80.22 kB / 3.938 GB, free: 144.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.551/12.25, allocations: 0.5349 GB / 4.473 GB, free: 38.45 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.703e-06/12.25, allocations: 0 / 4.473 GB, free: 38.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001573/12.25, allocations: 24.38 kB / 4.473 GB, free: 38.45 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.01714/12.27, allocations: 2.865 MB / 4.475 GB, free: 37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.491e-05/12.27, allocations: 10.28 kB / 4.475 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001045/12.27, allocations: 155.2 kB / 4.476 GB, free: 36.95 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001392/12.27, allocations: 131.6 kB / 4.476 GB, free: 36.9 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003086/12.28, allocations: 0.7139 MB / 4.476 GB, free: 36.62 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/12.28, allocations: 136.8 kB / 4.476 GB, free: 36.56 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005844/12.28, allocations: 90.8 kB / 4.477 GB, free: 36.56 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004386/12.28, allocations: 1.423 MB / 4.478 GB, free: 36.32 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.685e-05/12.28, allocations: 11 kB / 4.478 GB, free: 36.32 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00032/12.28, allocations: 41.03 kB / 4.478 GB, free: 36.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000147/12.28, allocations: 65.97 kB / 4.478 GB, free: 36.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003137/12.29, allocations: 1.408 MB / 4.479 GB, free: 36.31 MB / 458.7 MB 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.009637/12.3, allocations: 6.047 MB / 4.485 GB, free: 33.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/12.3, allocations: 0.9558 MB / 4.486 GB, free: 33.29 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000746/12.3, allocations: 0.5069 MB / 4.487 GB, free: 33.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001544/12.3, allocations: 1.808 MB / 4.489 GB, free: 31.31 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/12.3, allocations: 41.19 kB / 4.489 GB, free: 31.27 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007947/12.3, allocations: 115.2 kB / 4.489 GB, free: 31.22 MB / 458.7 MB Notification: Performance of pre-optimization done (n=84): time 1.063e-05/12.3, allocations: 0 / 4.489 GB, free: 31.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.0163/12.32, allocations: 4.404 MB / 4.493 GB, free: 30.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.448e-05/12.32, allocations: 115.2 kB / 4.493 GB, free: 30.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/12.32, allocations: 0.6785 MB / 4.494 GB, free: 30.48 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002253/12.32, allocations: 45.48 kB / 4.494 GB, free: 30.45 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000467/12.32, allocations: 452.6 kB / 4.494 GB, free: 30.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/12.32, allocations: 338.7 kB / 4.495 GB, free: 30 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/12.32, allocations: 27.03 kB / 4.495 GB, free: 30 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002395/12.32, allocations: 405 kB / 4.495 GB, free: 29.69 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001097/12.32, allocations: 0.5514 MB / 4.496 GB, free: 29.69 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00137/12.32, allocations: 0.8948 MB / 4.496 GB, free: 29.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/12.32, allocations: 0.7368 MB / 4.497 GB, free: 29.23 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/12.32, allocations: 3.625 kB / 4.497 GB, free: 29.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003519/12.33, allocations: 1.763 MB / 4.499 GB, free: 29.05 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00127/12.33, allocations: 3.977 MB / 4.503 GB, free: 24.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.044e-05/12.33, allocations: 10.16 kB / 4.503 GB, free: 24.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/12.33, allocations: 242.8 kB / 4.503 GB, free: 24.91 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/12.33, allocations: 278.7 kB / 4.503 GB, free: 24.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009129/12.33, allocations: 0.8113 MB / 4.504 GB, free: 24.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/12.33, allocations: 115.3 kB / 4.504 GB, free: 24.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/12.33, allocations: 70 kB / 4.504 GB, free: 24.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/12.33, allocations: 3.438 kB / 4.504 GB, free: 24.38 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002993/12.34, allocations: 1.656 MB / 4.506 GB, free: 24.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.681e-05/12.34, allocations: 9.656 kB / 4.506 GB, free: 24.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009201/12.34, allocations: 246.4 kB / 4.506 GB, free: 24.26 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/12.34, allocations: 270.5 kB / 4.506 GB, free: 24.24 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008675/12.34, allocations: 0.8186 MB / 4.507 GB, free: 23.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001406/12.34, allocations: 115.4 kB / 4.507 GB, free: 23.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002003/12.34, allocations: 68.83 kB / 4.507 GB, free: 23.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005416/12.34, allocations: 184.5 kB / 4.507 GB, free: 23.58 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/12.34, allocations: 97.91 kB / 4.508 GB, free: 23.53 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/12.35, allocations: 1.836 MB / 4.509 GB, free: 23.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.058e-05/12.35, allocations: 16.44 kB / 4.509 GB, free: 23.37 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/12.35, allocations: 0 / 4.509 GB, free: 23.37 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/12.35, allocations: 13.17 kB / 4.509 GB, free: 23.37 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005568/12.35, allocations: 2.962 MB / 4.512 GB, free: 22.86 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/12.35, allocations: 3.844 kB / 4.512 GB, free: 22.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008587/12.35, allocations: 176.1 kB / 4.512 GB, free: 22.85 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001332/12.35, allocations: 323.2 kB / 4.513 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/12.35, allocations: 29.84 kB / 4.513 GB, free: 22.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007983/12.35, allocations: 0.7908 MB / 4.514 GB, free: 22.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/12.35, allocations: 6.156 kB / 4.514 GB, free: 22.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003747/12.36, allocations: 2.279 MB / 4.516 GB, free: 21.91 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000941/12.36, allocations: 333.4 kB / 4.516 GB, free: 21.76 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/12.36, allocations: 29.36 kB / 4.516 GB, free: 21.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/12.36, allocations: 89.91 kB / 4.516 GB, free: 21.75 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/12.36, allocations: 74.12 kB / 4.516 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001654/12.36, allocations: 57.06 kB / 4.516 GB, free: 21.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000973/12.36, allocations: 0.536 MB / 4.517 GB, free: 21.64 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.7e-07/12.36, allocations: 0 / 4.517 GB, free: 21.64 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006917/12.37, allocations: 1.297 MB / 4.518 GB, free: 21.43 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01178/12.38, allocations: 5.113 MB / 4.523 GB, free: 19.68 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005973/12.39, allocations: 2.494 MB / 4.526 GB, free: 18.82 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.789e-05/12.39, allocations: 448 / 4.526 GB, free: 18.82 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00156/12.39, allocations: 0.6803 MB / 4.526 GB, free: 18.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003617/12.39, allocations: 497.5 kB / 4.527 GB, free: 18.48 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/12.4, allocations: 2.629 MB / 4.529 GB, free: 17.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008653/12.4, allocations: 1.143 MB / 4.53 GB, free: 16.71 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002912/12.41, allocations: 0.7402 MB / 4.531 GB, free: 16.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007359/12.41, allocations: 396.1 kB / 4.531 GB, free: 16.4 MB / 458.7 MB Notification: Performance of SimCode: time 2.053e-06/12.41, allocations: 2.375 kB / 4.531 GB, free: 16.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5574/12.96, allocations: 64.71 MB / 4.595 GB, free: 50.54 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001958/12.96, allocations: 221.1 kB / 4.595 GB, free: 50.32 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.752/17.72, allocations: 2.953 kB / 4.595 GB, free: 50.32 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat