Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001172/0.001172, allocations: 180 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.552/1.552, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009891/0.0009887, allocations: 92.11 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003006, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3113, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.771/9.083, allocations: 3.612 GB / 3.979 GB, free: 8.023 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/9.083, allocations: 90.64 kB / 3.979 GB, free: 7.977 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.298/11.38, allocations: 0.5526 GB / 4.532 GB, free: 39.26 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.515e-06/11.38, allocations: 0 / 4.532 GB, free: 39.26 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001248/11.38, allocations: 25.34 kB / 4.532 GB, free: 39.26 MB / 442.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.01331/11.39, allocations: 3.094 MB / 4.535 GB, free: 37.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/11.39, allocations: 7.562 kB / 4.535 GB, free: 37.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008264/11.4, allocations: 148 kB / 4.535 GB, free: 37.76 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/11.4, allocations: 130.6 kB / 4.535 GB, free: 37.71 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/11.4, allocations: 0.7225 MB / 4.536 GB, free: 37.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001997/11.4, allocations: 138.2 kB / 4.536 GB, free: 37.37 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004555/11.4, allocations: 86.92 kB / 4.536 GB, free: 37.37 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003371/11.4, allocations: 1.452 MB / 4.537 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.837e-05/11.4, allocations: 5.469 kB / 4.537 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/11.4, allocations: 38.31 kB / 4.537 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001023/11.4, allocations: 70.66 kB / 4.537 GB, free: 37.13 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002759/11.41, allocations: 1.45 MB / 4.539 GB, free: 37.12 MB / 442.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.01019/11.42, allocations: 6.054 MB / 4.545 GB, free: 34.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001822/11.42, allocations: 0.9664 MB / 4.546 GB, free: 34.1 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001296/11.42, allocations: 1.742 MB / 4.547 GB, free: 32.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.471e-05/11.42, allocations: 50.5 kB / 4.548 GB, free: 32.19 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007594/11.42, allocations: 107.4 kB / 4.548 GB, free: 32.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 7.795e-06/11.42, allocations: 2.125 kB / 4.548 GB, free: 32.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.01841/11.44, allocations: 5.148 MB / 4.553 GB, free: 31.56 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/11.44, allocations: 117 kB / 4.553 GB, free: 31.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001223/11.44, allocations: 0.6861 MB / 4.553 GB, free: 31.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002721/11.44, allocations: 48.48 kB / 4.553 GB, free: 31.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003854/11.44, allocations: 457.2 kB / 4.554 GB, free: 31.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004129/11.44, allocations: 335.9 kB / 4.554 GB, free: 30.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/11.44, allocations: 25.75 kB / 4.554 GB, free: 30.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/11.44, allocations: 407.2 kB / 4.555 GB, free: 30.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/11.44, allocations: 0.6043 MB / 4.555 GB, free: 30.51 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001453/11.44, allocations: 0.9426 MB / 4.556 GB, free: 30.12 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/11.45, allocations: 0.7826 MB / 4.557 GB, free: 30.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/11.45, allocations: 2.938 kB / 4.557 GB, free: 30.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003605/11.45, allocations: 1.91 MB / 4.559 GB, free: 29.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009847/11.45, allocations: 3.979 MB / 4.563 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.861e-05/11.45, allocations: 9.625 kB / 4.563 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001546/11.45, allocations: 327.3 kB / 4.563 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001113/11.45, allocations: 279 kB / 4.563 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/11.45, allocations: 0.9306 MB / 4.564 GB, free: 25.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/11.46, allocations: 109.9 kB / 4.564 GB, free: 25.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001601/11.46, allocations: 83.27 kB / 4.564 GB, free: 25.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/11.46, allocations: 3.938 kB / 4.564 GB, free: 25.2 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003243/11.46, allocations: 1.798 MB / 4.566 GB, free: 25.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.439e-05/11.46, allocations: 7.688 kB / 4.566 GB, free: 25.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/11.46, allocations: 337.2 kB / 4.566 GB, free: 25.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/11.46, allocations: 270.6 kB / 4.567 GB, free: 25.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/11.46, allocations: 0.9261 MB / 4.568 GB, free: 24.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/11.46, allocations: 107.3 kB / 4.568 GB, free: 24.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001458/11.46, allocations: 70.92 kB / 4.568 GB, free: 24.52 MB / 442.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.0008357/11.47, allocations: 430.6 kB / 4.568 GB, free: 24.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/11.47, allocations: 98.44 kB / 4.568 GB, free: 24.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/11.47, allocations: 1.926 MB / 4.57 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/11.47, allocations: 9.844 kB / 4.57 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/11.47, allocations: 3.281 kB / 4.57 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/11.47, allocations: 7.453 kB / 4.57 GB, free: 24.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005294/11.47, allocations: 3.01 MB / 4.573 GB, free: 23.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.686e-06/11.47, allocations: 3.531 kB / 4.573 GB, free: 23.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008339/11.48, allocations: 181.9 kB / 4.573 GB, free: 23.69 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/11.48, allocations: 397.9 kB / 4.574 GB, free: 23.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001213/11.48, allocations: 38.42 kB / 4.574 GB, free: 23.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/11.48, allocations: 0.8929 MB / 4.575 GB, free: 23.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/11.48, allocations: 3.656 kB / 4.575 GB, free: 23.16 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004103/11.48, allocations: 2.443 MB / 4.577 GB, free: 22.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/11.48, allocations: 344 kB / 4.577 GB, free: 22.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000332/11.48, allocations: 24.47 kB / 4.577 GB, free: 22.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00123/11.49, allocations: 84.34 kB / 4.577 GB, free: 22.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/11.49, allocations: 73.11 kB / 4.577 GB, free: 22.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/11.49, allocations: 68.28 kB / 4.578 GB, free: 22.62 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008914/11.49, allocations: 0.5453 MB / 4.578 GB, free: 22.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.71e-07/11.49, allocations: 0 / 4.578 GB, free: 22.52 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00567/11.49, allocations: 1.357 MB / 4.579 GB, free: 22.29 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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.01086/11.5, allocations: 5.346 MB / 4.585 GB, free: 20.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005495/11.51, allocations: 2.623 MB / 4.587 GB, free: 20.21 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/11.51, allocations: 6 kB / 4.587 GB, free: 20.21 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001434/11.51, allocations: 0.7296 MB / 4.588 GB, free: 19.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/11.51, allocations: 497 kB / 4.588 GB, free: 19.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/11.52, allocations: 10.82 MB / 4.599 GB, free: 26.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000693/11.53, allocations: 1.142 MB / 4.6 GB, free: 26.17 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002319/11.53, allocations: 0.604 MB / 4.601 GB, free: 26.09 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006236/11.53, allocations: 417.8 kB / 4.601 GB, free: 25.81 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/11.53, allocations: 0 / 4.601 GB, free: 25.81 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3632/11.89, allocations: 61.9 MB / 4.661 GB, free: 52.57 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/11.89, allocations: 243.5 kB / 4.662 GB, free: 52.33 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.047/15.94, allocations: 0 / 4.662 GB, free: 52.33 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_TraceSubstances_RoomCO2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat does not exist to compare? outputFormat=mat