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.001346/0.001346, allocations: 181.9 kB / 16.39 MB, free: 5.762 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.438/1.438, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 106.6 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.000306, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2851, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.286/9.571, allocations: 3.552 GB / 3.945 GB, free: 91.9 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/9.572, allocations: 91.14 kB / 3.945 GB, free: 91.86 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.172/11.74, allocations: 0.5359 GB / 4.481 GB, free: 39.47 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.833e-06/11.74, allocations: 0 / 4.481 GB, free: 39.47 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.304e-05/11.74, allocations: 26 kB / 4.481 GB, free: 39.46 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.01058/11.75, allocations: 2.964 MB / 4.484 GB, free: 37.71 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/11.75, allocations: 10.38 kB / 4.484 GB, free: 37.71 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003713/11.75, allocations: 159 kB / 4.484 GB, free: 37.67 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004388/11.76, allocations: 126.5 kB / 4.484 GB, free: 37.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/11.76, allocations: 0.7324 MB / 4.485 GB, free: 37.31 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/11.76, allocations: 126.5 kB / 4.485 GB, free: 37.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/11.76, allocations: 88.64 kB / 4.485 GB, free: 37.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/11.76, allocations: 1.446 MB / 4.486 GB, free: 37.01 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/11.76, allocations: 3.938 kB / 4.486 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001152/11.76, allocations: 44.17 kB / 4.486 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.136e-05/11.76, allocations: 62.72 kB / 4.486 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001899/11.76, allocations: 1.439 MB / 4.488 GB, free: 36.97 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.00798/11.77, allocations: 6.049 MB / 4.494 GB, free: 33.95 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/11.77, allocations: 0.9629 MB / 4.495 GB, free: 33.91 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001138/11.77, allocations: 1.807 MB / 4.496 GB, free: 31.94 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/11.77, allocations: 46.62 kB / 4.496 GB, free: 31.9 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005862/11.77, allocations: 107.7 kB / 4.496 GB, free: 31.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=84): time 3.707e-06/11.77, allocations: 0 / 4.496 GB, free: 31.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=96): time 0.01642/11.79, allocations: 5.138 MB / 4.501 GB, free: 31.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/11.79, allocations: 117.5 kB / 4.502 GB, free: 31.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008445/11.79, allocations: 0.6891 MB / 4.502 GB, free: 30.73 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/11.79, allocations: 45.61 kB / 4.502 GB, free: 30.68 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/11.79, allocations: 448.9 kB / 4.503 GB, free: 30.33 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/11.79, allocations: 345 kB / 4.503 GB, free: 30.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.265e-05/11.79, allocations: 27.19 kB / 4.503 GB, free: 30.05 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/11.79, allocations: 401.9 kB / 4.503 GB, free: 29.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/11.79, allocations: 0.6064 MB / 4.504 GB, free: 29.49 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/11.79, allocations: 0.9363 MB / 4.505 GB, free: 28.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/11.79, allocations: 0.7822 MB / 4.506 GB, free: 28.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/11.79, allocations: 3.438 kB / 4.506 GB, free: 28.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003262/11.8, allocations: 1.905 MB / 4.508 GB, free: 27.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007759/11.8, allocations: 3.977 MB / 4.511 GB, free: 23.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/11.8, allocations: 11.62 kB / 4.511 GB, free: 23.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001569/11.8, allocations: 329.6 kB / 4.512 GB, free: 23.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/11.8, allocations: 270.2 kB / 4.512 GB, free: 23.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/11.8, allocations: 0.9297 MB / 4.513 GB, free: 22.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/11.8, allocations: 114.8 kB / 4.513 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/11.8, allocations: 71.17 kB / 4.513 GB, free: 22.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/11.8, allocations: 6.188 kB / 4.513 GB, free: 22.77 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003087/11.81, allocations: 1.788 MB / 4.515 GB, free: 22.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/11.81, allocations: 11.41 kB / 4.515 GB, free: 22.08 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/11.81, allocations: 340.7 kB / 4.515 GB, free: 22.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/11.81, allocations: 272.3 kB / 4.516 GB, free: 21.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/11.81, allocations: 0.9244 MB / 4.516 GB, free: 21.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/11.81, allocations: 104.9 kB / 4.517 GB, free: 21.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/11.81, allocations: 73.77 kB / 4.517 GB, free: 21.31 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 () * Number of clocked 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.0007959/11.81, allocations: 426.9 kB / 4.517 GB, free: 21 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001836/11.81, allocations: 93.34 kB / 4.517 GB, free: 20.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003342/11.82, allocations: 1.975 MB / 4.519 GB, free: 19.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/11.82, allocations: 8 kB / 4.519 GB, free: 19.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/11.82, allocations: 0 / 4.519 GB, free: 19.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/11.82, allocations: 11.5 kB / 4.519 GB, free: 19.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/11.82, allocations: 3.106 MB / 4.522 GB, free: 17.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/11.82, allocations: 4 kB / 4.522 GB, free: 17.03 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007939/11.82, allocations: 173.4 kB / 4.522 GB, free: 16.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/11.82, allocations: 403.8 kB / 4.523 GB, free: 16.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/11.82, allocations: 39.17 kB / 4.523 GB, free: 16.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/11.83, allocations: 0.8873 MB / 4.524 GB, free: 15.71 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/11.83, allocations: 10.58 kB / 4.524 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003594/11.83, allocations: 2.458 MB / 4.526 GB, free: 13.45 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007616/11.83, allocations: 339.4 kB / 4.526 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/11.83, allocations: 31.66 kB / 4.526 GB, free: 13.12 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009195/11.83, allocations: 85.23 kB / 4.526 GB, free: 13.05 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/11.83, allocations: 70.67 kB / 4.526 GB, free: 13.01 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/11.83, allocations: 58.5 kB / 4.526 GB, free: 12.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0006911/11.83, allocations: 0.5391 MB / 4.527 GB, free: 12.51 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/11.83, allocations: 0 / 4.527 GB, free: 12.51 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004241/11.84, allocations: 1.298 MB / 4.528 GB, free: 11.25 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 () * Number of clocked 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.008594/11.84, allocations: 5.278 MB / 4.533 GB, free: 6.648 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004897/11.85, allocations: 2.611 MB / 4.536 GB, free: 4.316 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/11.85, allocations: 4.438 kB / 4.536 GB, free: 4.312 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/11.85, allocations: 0.7326 MB / 4.537 GB, free: 3.684 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/11.85, allocations: 0.4978 MB / 4.537 GB, free: 3.324 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/11.86, allocations: 10.8 MB / 4.548 GB, free: 8.762 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007824/11.86, allocations: 1.139 MB / 4.549 GB, free: 7.754 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002151/11.87, allocations: 0.6634 MB / 4.549 GB, free: 7.309 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006387/11.87, allocations: 408.2 kB / 4.55 GB, free: 6.949 MB / 474.7 MB Notification: Performance of SimCode: time 1.463e-06/11.87, allocations: 0 / 4.55 GB, free: 6.949 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3982/12.27, allocations: 60.47 MB / 4.609 GB, free: 49.12 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002306/12.27, allocations: 245 kB / 4.609 GB, free: 48.82 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.245/16.51, allocations: 0 / 4.609 GB, free: 48.82 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