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.0009546/0.0009547, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.324/1.324, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007818/0.0007818, allocations: 86.64 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.276e-05/2.278e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06912/0.06916, allocations: 47.58 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.793/6.863, allocations: 3.612 GB / 3.973 GB, free: 81.41 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/6.863, allocations: 79.95 kB / 3.973 GB, free: 81.33 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.062/8.925, allocations: 0.5516 GB / 4.525 GB, free: 22.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.582e-06/8.925, allocations: 0 / 4.525 GB, free: 22.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.528e-05/8.925, allocations: 24.19 kB / 4.525 GB, free: 22.38 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.01048/8.935, allocations: 2.996 MB / 4.528 GB, free: 19.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/8.935, allocations: 12.03 kB / 4.528 GB, free: 19.32 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002104/8.936, allocations: 139.6 kB / 4.528 GB, free: 19.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004994/8.936, allocations: 130.7 kB / 4.528 GB, free: 19.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001404/8.937, allocations: 0.7168 MB / 4.529 GB, free: 18.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-05/8.938, allocations: 141.4 kB / 4.529 GB, free: 18.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/8.938, allocations: 87.98 kB / 4.529 GB, free: 18.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001931/8.94, allocations: 1.428 MB / 4.531 GB, free: 16.55 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/8.94, allocations: 7.938 kB / 4.531 GB, free: 16.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/8.94, allocations: 39.98 kB / 4.531 GB, free: 16.5 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.765e-05/8.94, allocations: 65.97 kB / 4.531 GB, free: 16.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/8.942, allocations: 1.417 MB / 4.532 GB, free: 15.02 MB / 442.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.007082/8.949, allocations: 6.063 MB / 4.538 GB, free: 8.621 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00151/8.95, allocations: 0.9494 MB / 4.539 GB, free: 7.668 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006037/8.951, allocations: 0.5107 MB / 4.539 GB, free: 7.152 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/8.952, allocations: 1.749 MB / 4.541 GB, free: 5.035 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/8.952, allocations: 47.33 kB / 4.541 GB, free: 4.98 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005446/8.953, allocations: 103 kB / 4.541 GB, free: 4.879 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.076e-06/8.953, allocations: 0 / 4.541 GB, free: 4.879 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.01355/8.966, allocations: 4.416 MB / 4.546 GB, free: 412 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/8.966, allocations: 115.6 kB / 4.546 GB, free: 272 kB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009338/8.967, allocations: 0.6756 MB / 4.546 GB, free: 15.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001286/8.967, allocations: 45.7 kB / 4.546 GB, free: 15.53 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/8.968, allocations: 451.2 kB / 4.547 GB, free: 15.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/8.968, allocations: 343.1 kB / 4.547 GB, free: 14.75 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.118e-05/8.968, allocations: 28 kB / 4.547 GB, free: 14.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/8.968, allocations: 402.7 kB / 4.547 GB, free: 14.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009019/8.969, allocations: 0.5531 MB / 4.548 GB, free: 13.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/8.971, allocations: 0.8906 MB / 4.549 GB, free: 12.73 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/8.972, allocations: 0.7421 MB / 4.55 GB, free: 11.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/8.972, allocations: 0 / 4.55 GB, free: 11.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003132/8.975, allocations: 1.782 MB / 4.551 GB, free: 10.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001869/8.977, allocations: 3.976 MB / 4.555 GB, free: 5.875 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/8.977, allocations: 16 kB / 4.555 GB, free: 5.859 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/8.978, allocations: 252.6 kB / 4.555 GB, free: 5.609 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/8.979, allocations: 271.6 kB / 4.556 GB, free: 5.344 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009748/8.98, allocations: 0.8139 MB / 4.557 GB, free: 4.504 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/8.981, allocations: 111.8 kB / 4.557 GB, free: 4.395 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/8.981, allocations: 75.97 kB / 4.557 GB, free: 4.32 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/8.981, allocations: 4 kB / 4.557 GB, free: 4.316 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002836/8.984, allocations: 1.664 MB / 4.558 GB, free: 2.633 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/8.984, allocations: 8 kB / 4.558 GB, free: 2.625 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009395/8.985, allocations: 248.7 kB / 4.559 GB, free: 2.379 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001055/8.986, allocations: 275.5 kB / 4.559 GB, free: 2.109 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008973/8.987, allocations: 0.8139 MB / 4.56 GB, free: 1.27 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/8.988, allocations: 99.91 kB / 4.56 GB, free: 1.172 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001533/8.989, allocations: 79.95 kB / 4.56 GB, free: 1.094 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.0004159/8.989, allocations: 198.3 kB / 4.56 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/8.989, allocations: 98.86 kB / 4.56 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3306/9.32, allocations: 1.798 MB / 4.562 GB, free: 48.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.764e-05/9.32, allocations: 13.72 kB / 4.562 GB, free: 48.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/9.32, allocations: 1.188 kB / 4.562 GB, free: 48.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/9.32, allocations: 5.484 kB / 4.562 GB, free: 48.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005501/9.325, allocations: 2.868 MB / 4.565 GB, free: 47.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.605e-06/9.325, allocations: 1.938 kB / 4.565 GB, free: 47.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009139/9.326, allocations: 184 kB / 4.565 GB, free: 47.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/9.328, allocations: 310.5 kB / 4.565 GB, free: 47.82 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001036/9.328, allocations: 39.81 kB / 4.565 GB, free: 47.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007547/9.329, allocations: 0.7829 MB / 4.566 GB, free: 47.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/9.329, allocations: 2.344 kB / 4.566 GB, free: 47.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003498/9.332, allocations: 2.27 MB / 4.568 GB, free: 46.99 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007743/9.333, allocations: 340.1 kB / 4.569 GB, free: 46.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/9.333, allocations: 25.34 kB / 4.569 GB, free: 46.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009312/9.334, allocations: 85.66 kB / 4.569 GB, free: 46.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001374/9.334, allocations: 76.62 kB / 4.569 GB, free: 46.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/9.334, allocations: 61.48 kB / 4.569 GB, free: 46.89 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007856/9.335, allocations: 0.5366 MB / 4.569 GB, free: 46.79 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/9.335, allocations: 1.625 kB / 4.569 GB, free: 46.79 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004692/9.34, allocations: 1.351 MB / 4.571 GB, free: 46.79 MB / 458.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 () * 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.00859/9.349, allocations: 5.158 MB / 4.576 GB, free: 45.41 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004355/9.353, allocations: 2.495 MB / 4.578 GB, free: 45.13 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/9.353, allocations: 4.281 kB / 4.578 GB, free: 45.13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/9.354, allocations: 0.6837 MB / 4.579 GB, free: 45.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/9.357, allocations: 498.7 kB / 4.579 GB, free: 45.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007221/9.364, allocations: 2.674 MB / 4.582 GB, free: 44.76 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006549/9.365, allocations: 1.138 MB / 4.583 GB, free: 44.05 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002411/9.367, allocations: 0.6734 MB / 4.584 GB, free: 44.04 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007022/9.368, allocations: 416.5 kB / 4.584 GB, free: 44.03 MB / 458.7 MB Notification: Performance of SimCode: time 1.874e-06/9.368, allocations: 0.9375 kB / 4.584 GB, free: 44.03 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.102/9.47, allocations: 66.25 MB / 4.649 GB, free: 41.3 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001964/9.47, allocations: 224.2 kB / 4.649 GB, free: 41.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.614/14.08, allocations: 0 / 4.649 GB, free: 41.06 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