Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008894/0.0008895, allocations: 94.06 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009378/0.0009379, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003443, allocations: 8 kB / 306.6 MB, free: 1.664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1244, allocations: 51.49 MB / 358.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.3542/0.4787, allocations: 166.2 MB / 0.512 GB, free: 6.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.4911, allocations: 10.08 MB / 0.5218 GB, free: 12.13 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000801/0.492, allocations: 23.81 kB / 0.5219 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009711/0.493, allocations: 370.2 kB / 0.5222 GB, free: 11.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006348/0.4993, allocations: 2.368 MB / 0.5245 GB, free: 9.375 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005088/0.5044, allocations: 1.906 MB / 0.5264 GB, free: 7.48 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002388/0.5068, allocations: 1.423 MB / 0.5278 GB, free: 6.055 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00106/0.5079, allocations: 0.6476 MB / 0.5284 GB, free: 5.395 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004896/0.5128, allocations: 2.124 MB / 0.5305 GB, free: 3.266 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001375/0.5142, allocations: 0.7517 MB / 0.5312 GB, free: 2.512 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001624/0.5144, allocations: 60 kB / 0.5313 GB, free: 2.453 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2446/0.759, allocations: 5.262 MB / 0.5364 GB, free: 6.227 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.7602, allocations: 451.5 kB / 0.5369 GB, free: 6.227 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006305/0.7609, allocations: 244.2 kB / 0.5371 GB, free: 6.195 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007541/0.7684, allocations: 2.949 MB / 0.54 GB, free: 5.977 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.7685, allocations: 0 / 0.54 GB, free: 5.977 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.7685, allocations: 0 / 0.54 GB, free: 5.977 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.51e-05/0.7685, allocations: 0 / 0.54 GB, free: 5.977 MB / 446.1 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.005561/0.7741, allocations: 1.818 MB / 0.5417 GB, free: 4.941 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.7741, allocations: 8.938 kB / 0.5418 GB, free: 4.941 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005133/0.7746, allocations: 128.6 kB / 0.5419 GB, free: 4.887 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.7759, allocations: 0.6613 MB / 0.5425 GB, free: 4.617 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001288/0.776, allocations: 132.8 kB / 0.5426 GB, free: 4.555 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.7762, allocations: 94.2 kB / 0.5427 GB, free: 4.555 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/0.7786, allocations: 1.438 MB / 0.5441 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.7787, allocations: 8.547 kB / 0.5442 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.7788, allocations: 38.77 kB / 0.5442 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-05/0.7789, allocations: 72.88 kB / 0.5443 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00236/0.7813, allocations: 1.458 MB / 0.5457 GB, free: 4.332 MB / 446.1 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.008423/0.7897, allocations: 6.371 MB / 0.5519 GB, free: 16.98 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.7915, allocations: 0.9857 MB / 0.5529 GB, free: 16.94 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001301/0.7928, allocations: 1.792 MB / 0.5546 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.707e-05/0.7929, allocations: 47.28 kB / 0.5547 GB, free: 14.92 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005917/0.7935, allocations: 99.98 kB / 0.5548 GB, free: 14.87 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.865e-06/0.7935, allocations: 1.781 kB / 0.5548 GB, free: 14.87 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01599/0.8095, allocations: 4.949 MB / 0.5596 GB, free: 14.31 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.406e-05/0.8096, allocations: 114.8 kB / 0.5597 GB, free: 14.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009148/0.8105, allocations: 0.7751 MB / 0.5605 GB, free: 14.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.8106, allocations: 44.11 kB / 0.5605 GB, free: 14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003242/0.811, allocations: 453.7 kB / 0.5609 GB, free: 13.77 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.8112, allocations: 339.2 kB / 0.5613 GB, free: 13.56 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.607e-05/0.8113, allocations: 26.47 kB / 0.5613 GB, free: 13.56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.8115, allocations: 400.2 kB / 0.5617 GB, free: 13.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.8125, allocations: 0.6125 MB / 0.5623 GB, free: 13.24 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.8137, allocations: 0.942 MB / 0.5632 GB, free: 12.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001261/0.815, allocations: 0.7969 MB / 0.564 GB, free: 12.75 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.815, allocations: 4.406 kB / 0.564 GB, free: 12.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003312/0.8183, allocations: 1.908 MB / 0.5658 GB, free: 12.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001667/0.82, allocations: 4.065 MB / 0.5698 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.82, allocations: 14.97 kB / 0.5698 GB, free: 8.301 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001564/0.8216, allocations: 330.9 kB / 0.5701 GB, free: 8.281 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.8227, allocations: 277.4 kB / 0.5704 GB, free: 8.277 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001514/0.8243, allocations: 0.9247 MB / 0.5713 GB, free: 7.742 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001301/0.8256, allocations: 108.2 kB / 0.5714 GB, free: 7.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001398/0.8257, allocations: 69.27 kB / 0.5715 GB, free: 7.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.8258, allocations: 5.719 kB / 0.5715 GB, free: 7.73 MB / 462.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003184/0.8289, allocations: 1.804 MB / 0.5732 GB, free: 7.617 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.829, allocations: 10.12 kB / 0.5732 GB, free: 7.617 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001483/0.8305, allocations: 327 kB / 0.5736 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009959/0.8315, allocations: 269.8 kB / 0.5738 GB, free: 7.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001428/0.8329, allocations: 0.9266 MB / 0.5747 GB, free: 7.066 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001203/0.8341, allocations: 111.2 kB / 0.5748 GB, free: 7.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/0.8343, allocations: 68.02 kB / 0.5749 GB, free: 7.051 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (148): * Single equations (assignments): 145 * 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.0009082/0.8352, allocations: 412.3 kB / 0.5753 GB, free: 6.859 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001982/0.8354, allocations: 99.39 kB / 0.5754 GB, free: 6.812 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003555/0.839, allocations: 1.983 MB / 0.5773 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.786e-05/0.839, allocations: 21.73 kB / 0.5773 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.575e-06/0.839, allocations: 0 / 0.5773 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.839, allocations: 5.672 kB / 0.5773 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005188/0.8442, allocations: 3.129 MB / 0.5804 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.8443, allocations: 0 / 0.5804 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007982/0.8451, allocations: 181.2 kB / 0.5806 GB, free: 6.109 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.847, allocations: 402.5 kB / 0.5809 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.8471, allocations: 38.02 kB / 0.581 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.8485, allocations: 0.8915 MB / 0.5819 GB, free: 5.547 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8485, allocations: 0 / 0.5819 GB, free: 5.547 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003923/0.8524, allocations: 2.475 MB / 0.5843 GB, free: 4.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008107/0.8533, allocations: 348.6 kB / 0.5846 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.8535, allocations: 26.72 kB / 0.5846 GB, free: 4.777 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009596/0.8544, allocations: 85.83 kB / 0.5847 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.8546, allocations: 78.06 kB / 0.5848 GB, free: 4.715 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.8547, allocations: 55.19 kB / 0.5848 GB, free: 4.703 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000658/0.8554, allocations: 0.5467 MB / 0.5854 GB, free: 4.523 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8554, allocations: 0 / 0.5854 GB, free: 4.523 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00391/0.8593, allocations: 1.143 MB / 0.5865 GB, free: 4.34 MB / 462.1 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.003294/0.8626, allocations: 1.047 MB / 0.5875 GB, free: 3.938 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004481/0.8671, allocations: 2.63 MB / 0.5901 GB, free: 3.316 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.8671, allocations: 448 / 0.5901 GB, free: 3.316 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001249/0.8684, allocations: 0.7459 MB / 0.5908 GB, free: 3.199 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/0.8708, allocations: 0.4884 MB / 0.5913 GB, free: 3.035 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004941/0.8758, allocations: 2.915 MB / 0.5941 GB, free: 1.508 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006972/0.8765, allocations: 1.141 MB / 0.5952 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002175/0.8787, allocations: 0.6798 MB / 0.5959 GB, free: 268 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003322/0.879, allocations: 121.5 kB / 0.596 GB, free: 156 kB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.879, allocations: 0 / 0.596 GB, free: 156 kB / 462.1 MB Notification: Performance of Templates: time 0.05728/0.9363, allocations: 37.51 MB / 0.6327 GB, free: 11.03 MB / 0.4981 GB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/TraceSubstances/RoomCO2/RoomCO2.csv","../files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches