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.0009302/0.0009301, allocations: 95.61 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 206.3 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.7 MB / 246.8 MB, free: 11.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002246, allocations: 8 kB / 307.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09915/0.09939, allocations: 51.53 MB / 359.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6293/0.7288, allocations: 205.5 MB / 0.5515 GB, free: 1.328 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.7412, allocations: 10.69 MB / 0.5619 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008944/0.7422, allocations: 26.62 kB / 0.562 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001055/0.7432, allocations: 409.6 kB / 0.5624 GB, free: 1.141 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006904/0.7501, allocations: 2.833 MB / 0.5651 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.7566, allocations: 2.303 MB / 0.5674 GB, free: 0.918 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004158/0.7608, allocations: 3.784 MB / 0.5711 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001101/0.7619, allocations: 0.6633 MB / 0.5717 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005657/0.7675, allocations: 2.541 MB / 0.5742 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00221/0.7698, allocations: 1.086 MB / 0.5753 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003971/0.7702, allocations: 57.31 kB / 0.5753 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01081/0.781, allocations: 6.519 MB / 0.5817 GB, free: 440 kB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008279/0.7818, allocations: 488.3 kB / 0.5821 GB, free: 280 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009154/0.7828, allocations: 0.6055 MB / 0.5827 GB, free: 16.19 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008234/0.791, allocations: 4.734 MB / 0.5874 GB, free: 14.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.7911, allocations: 4 kB / 0.5874 GB, free: 14.42 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.7911, allocations: 0 / 0.5874 GB, free: 14.42 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.7911, allocations: 0 / 0.5874 GB, free: 14.42 MB / 462.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.003975/0.7951, allocations: 1.842 MB / 0.5892 GB, free: 13.16 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.7951, allocations: 7.875 kB / 0.5892 GB, free: 13.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003876/0.7955, allocations: 129.1 kB / 0.5893 GB, free: 13.1 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009436/0.7965, allocations: 0.6765 MB / 0.5899 GB, free: 12.72 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001066/0.7966, allocations: 142.3 kB / 0.5901 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.7967, allocations: 82.78 kB / 0.5902 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002126/0.7989, allocations: 1.458 MB / 0.5916 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.7989, allocations: 6.156 kB / 0.5916 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.799, allocations: 40.59 kB / 0.5916 GB, free: 12.16 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.911e-05/0.7991, allocations: 71.58 kB / 0.5917 GB, free: 12.14 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002077/0.8012, allocations: 1.462 MB / 0.5931 GB, free: 11.89 MB / 462.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.007573/0.8088, allocations: 6.349 MB / 0.5993 GB, free: 7.688 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.8105, allocations: 0.9848 MB / 0.6003 GB, free: 7.516 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007059/0.8113, allocations: 0.5225 MB / 0.6008 GB, free: 7.438 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001229/0.8125, allocations: 1.805 MB / 0.6026 GB, free: 5.402 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.8125, allocations: 44.16 kB / 0.6026 GB, free: 5.363 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004008/0.813, allocations: 103.3 kB / 0.6027 GB, free: 5.305 MB / 462.1 MB Notification: Performance of pre-optimization done (n=84): time 2.414e-06/0.813, allocations: 0 / 0.6027 GB, free: 5.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.01564/0.8286, allocations: 4.95 MB / 0.6075 GB, free: 2.977 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.8287, allocations: 117.8 kB / 0.6076 GB, free: 2.836 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00088/0.8296, allocations: 0.7763 MB / 0.6084 GB, free: 2.238 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001026/0.8297, allocations: 44.52 kB / 0.6084 GB, free: 2.203 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002651/0.83, allocations: 445.6 kB / 0.6089 GB, free: 1.887 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002526/0.8302, allocations: 343.2 kB / 0.6092 GB, free: 1.598 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001556/0.8304, allocations: 100.4 kB / 0.6093 GB, free: 1.531 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.8306, allocations: 412.6 kB / 0.6097 GB, free: 1.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.8318, allocations: 0.6116 MB / 0.6103 GB, free: 0.75 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.8331, allocations: 0.9641 MB / 0.6112 GB, free: 15.88 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002566/0.8357, allocations: 1.671 MB / 0.6129 GB, free: 14.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.341e-06/0.8357, allocations: 7.938 kB / 0.6129 GB, free: 14.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003744/0.8395, allocations: 1.965 MB / 0.6148 GB, free: 13.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000271/0.8398, allocations: 452.6 kB / 0.6152 GB, free: 12.65 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.387e-05/0.8398, allocations: 12 kB / 0.6152 GB, free: 12.64 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/0.8415, allocations: 333.4 kB / 0.6155 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.8426, allocations: 268.9 kB / 0.6158 GB, free: 12.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/0.8441, allocations: 0.9264 MB / 0.6167 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.8453, allocations: 113 kB / 0.6168 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.8454, allocations: 71.66 kB / 0.6169 GB, free: 11.15 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.675e-06/0.8454, allocations: 4 kB / 0.6169 GB, free: 11.15 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003453/0.8489, allocations: 1.828 MB / 0.6187 GB, free: 9.727 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.8489, allocations: 12 kB / 0.6187 GB, free: 9.715 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.8505, allocations: 328.6 kB / 0.619 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.8516, allocations: 276.9 kB / 0.6193 GB, free: 9.141 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/0.8531, allocations: 0.9238 MB / 0.6202 GB, free: 8.199 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/0.8542, allocations: 104 kB / 0.6203 GB, free: 8.098 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.8544, allocations: 71.97 kB / 0.6203 GB, free: 8.027 MB / 478.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0006156/0.855, allocations: 424.9 kB / 0.6207 GB, free: 7.625 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.8552, allocations: 98.81 kB / 0.6208 GB, free: 7.527 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003786/0.859, allocations: 1.98 MB / 0.6228 GB, free: 5.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.859, allocations: 8 kB / 0.6228 GB, free: 5.512 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.859, allocations: 3.984 kB / 0.6228 GB, free: 5.508 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.859, allocations: 7.969 kB / 0.6228 GB, free: 5.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004995/0.864, allocations: 3.114 MB / 0.6258 GB, free: 2.332 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.243e-06/0.864, allocations: 4.219 kB / 0.6258 GB, free: 2.328 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008283/0.8649, allocations: 180.6 kB / 0.626 GB, free: 2.16 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002038/0.8669, allocations: 400 kB / 0.6264 GB, free: 1.77 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.71e-05/0.867, allocations: 39.98 kB / 0.6264 GB, free: 1.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.8684, allocations: 0.8909 MB / 0.6273 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.8684, allocations: 2.906 kB / 0.6273 GB, free: 0.8164 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004103/0.8726, allocations: 2.405 MB / 0.6296 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005523/0.8731, allocations: 339.6 kB / 0.63 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.8733, allocations: 25.86 kB / 0.63 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009936/0.8743, allocations: 83.83 kB / 0.6301 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.8745, allocations: 75.75 kB / 0.6301 GB, free: 13.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.8746, allocations: 59.95 kB / 0.6302 GB, free: 13.79 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000682/0.8753, allocations: 0.5693 MB / 0.6308 GB, free: 13.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8753, allocations: 0 / 0.6308 GB, free: 13.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003078/0.8784, allocations: 1.148 MB / 0.6319 GB, free: 12.08 MB / 494.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00256/0.8809, allocations: 1.073 MB / 0.6329 GB, free: 11.09 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00489/0.8858, allocations: 2.633 MB / 0.6355 GB, free: 8.484 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.8859, allocations: 448 / 0.6355 GB, free: 8.484 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.8872, allocations: 0.7487 MB / 0.6362 GB, free: 7.758 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/0.8901, allocations: 0.5239 MB / 0.6367 GB, free: 7.242 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00546/0.8956, allocations: 3.023 MB / 0.6397 GB, free: 4.184 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007385/0.8963, allocations: 1.116 MB / 0.6408 GB, free: 3.039 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002154/0.8985, allocations: 0.7098 MB / 0.6415 GB, free: 2.328 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003626/0.8989, allocations: 115.4 kB / 0.6416 GB, free: 2.215 MB / 494.1 MB Notification: Performance of SimCode: time 1.242e-06/0.8989, allocations: 0 / 0.6416 GB, free: 2.215 MB / 494.1 MB Notification: Performance of Templates: time 0.05908/0.958, allocations: 38.95 MB / 0.6796 GB, free: 11.55 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches