Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001147/0.001147, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001288/0.001288, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2295/0.2295, allocations: 46.1 MB / 344.8 MB, free: 11.6 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 71.5 kB / 418.3 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1265, allocations: 62.45 MB / 480.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4862/0.6127, allocations: 177.3 MB / 0.6426 GB, free: 1.871 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.007716/0.6205, allocations: 5.329 MB / 0.6478 GB, free: 12.53 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008483/0.6214, allocations: 19.88 kB / 0.6478 GB, free: 12.51 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001151/0.6226, allocations: 321.9 kB / 0.6481 GB, free: 12.2 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00377/0.6264, allocations: 1.253 MB / 0.6493 GB, free: 10.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002588/0.629, allocations: 0.9734 MB / 0.6503 GB, free: 9.973 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002298/0.6313, allocations: 1.84 MB / 0.6521 GB, free: 8.129 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009854/0.6323, allocations: 469.7 kB / 0.6525 GB, free: 7.664 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002648/0.6349, allocations: 1.067 MB / 0.6536 GB, free: 6.594 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.6363, allocations: 0.6656 MB / 0.6542 GB, free: 5.926 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002949/0.6366, allocations: 60 kB / 0.6543 GB, free: 5.867 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001644/0.6383, allocations: 0.5846 MB / 0.6548 GB, free: 5.285 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000437/0.6387, allocations: 259.3 kB / 0.6551 GB, free: 5.031 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007321/0.6394, allocations: 402.2 kB / 0.6555 GB, free: 4.637 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002164/0.6416, allocations: 1.301 MB / 0.6567 GB, free: 3.332 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6416, allocations: 0 / 0.6567 GB, free: 3.332 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6416, allocations: 0 / 0.6567 GB, free: 3.332 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.792e-05/0.6417, allocations: 0 / 0.6567 GB, free: 3.332 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002742/0.6444, allocations: 1.094 MB / 0.6578 GB, free: 2.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.6445, allocations: 16.02 kB / 0.6578 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009048/0.6454, allocations: 139 kB / 0.658 GB, free: 2.031 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009063/0.6463, allocations: 0.504 MB / 0.6585 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.6464, allocations: 104.4 kB / 0.6586 GB, free: 1.371 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.6466, allocations: 48 kB / 0.6586 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.6479, allocations: 0.8214 MB / 0.6594 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.6479, allocations: 3.938 kB / 0.6594 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.648, allocations: 24 kB / 0.6594 GB, free: 416 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-05/0.6481, allocations: 36.98 kB / 0.6595 GB, free: 380 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.6492, allocations: 0.6243 MB / 0.6601 GB, free: 15.74 MB / 0.4981 GB 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.004585/0.6538, allocations: 3.951 MB / 0.6639 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.6544, allocations: 358 kB / 0.6643 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.6547, allocations: 177.3 kB / 0.6644 GB, free: 11.01 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.6548, allocations: 93.38 kB / 0.6645 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.6548, allocations: 38.84 kB / 0.6646 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=34): time 1.954e-06/0.6548, allocations: 0 / 0.6646 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39): time 0.005847/0.6607, allocations: 1.664 MB / 0.6662 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.448e-05/0.6608, allocations: 140.5 kB / 0.6663 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007664/0.6616, allocations: 0.6055 MB / 0.6669 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.359e-05/0.6616, allocations: 37.7 kB / 0.667 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003072/0.662, allocations: 374.8 kB / 0.6673 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/0.6621, allocations: 142 kB / 0.6674 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002387/0.6624, allocations: 158.5 kB / 0.6676 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.6625, allocations: 374.8 kB / 0.668 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/0.6629, allocations: 205.9 kB / 0.6682 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005946/0.6635, allocations: 0.5124 MB / 0.6687 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.6645, allocations: 0.7514 MB / 0.6694 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.968e-06/0.6645, allocations: 4 kB / 0.6694 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001537/0.6661, allocations: 0.8951 MB / 0.6703 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.6661, allocations: 8 kB / 0.6703 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.6662, allocations: 12 kB / 0.6703 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001401/0.6676, allocations: 313 kB / 0.6706 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003858/0.668, allocations: 123.8 kB / 0.6707 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.6691, allocations: 0.933 MB / 0.6716 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005156/0.6696, allocations: 24 kB / 0.6716 GB, free: 3.156 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.965e-05/0.6697, allocations: 68.05 kB / 0.6717 GB, free: 3.09 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (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 (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * 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,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003685/0.6701, allocations: 245.9 kB / 0.6719 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.6703, allocations: 75.09 kB / 0.672 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001846/0.6721, allocations: 0.8629 MB / 0.6728 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.6721, allocations: 4 kB / 0.6729 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.6722, allocations: 0 / 0.6729 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.6722, allocations: 3.984 kB / 0.6729 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.6748, allocations: 1.461 MB / 0.6743 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.6748, allocations: 4 kB / 0.6743 GB, free: 292 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.6759, allocations: 211.9 kB / 0.6745 GB, free: 80 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001139/0.6761, allocations: 24.84 kB / 0.6745 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-05/0.6761, allocations: 24.86 kB / 0.6745 GB, free: 28 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002659/0.6788, allocations: 2.878 MB / 0.6773 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.6788, allocations: 8.094 kB / 0.6774 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001421/0.6803, allocations: 0.8169 MB / 0.6782 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000376/0.6807, allocations: 184.3 kB / 0.6783 GB, free: 11.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001732/0.6809, allocations: 8 kB / 0.6783 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004694/0.6813, allocations: 23.98 kB / 0.6784 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.6814, allocations: 39.84 kB / 0.6784 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.423e-05/0.6815, allocations: 47.97 kB / 0.6784 GB, free: 11.69 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006163/0.6822, allocations: 435.1 kB / 0.6789 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6822, allocations: 4 kB / 0.6789 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001103/0.6833, allocations: 256 kB / 0.6791 GB, free: 11.02 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.medium.T) * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009609/0.6843, allocations: 294.8 kB / 0.6794 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.6856, allocations: 0.6086 MB / 0.68 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.6856, allocations: 0 / 0.68 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.6867, allocations: 415.7 kB / 0.6804 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/0.6885, allocations: 360.2 kB / 0.6807 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.6911, allocations: 1.387 MB / 0.6821 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005548/0.6916, allocations: 0.9222 MB / 0.683 GB, free: 6.969 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004546/0.6921, allocations: 123.4 kB / 0.6831 GB, free: 6.848 MB / 0.5137 GB Notification: Performance of SimCode: time 6.91e-07/0.6921, allocations: 4 kB / 0.6831 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of Templates: time 0.02587/0.718, allocations: 16.55 MB / 0.6993 GB, free: 6.348 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p