Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 203.8 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 226.5 MB / 243.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007512/0.0007515, allocations: 95.03 kB / 295.5 MB, free: 6.703 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3625/0.3625, allocations: 44.81 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004145/0.0004146, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3876, allocations: 62.95 MB / 0.5159 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.1873/0.575, allocations: 159.1 MB / 0.6713 GB, free: 9.965 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.007971/0.583, allocations: 5.099 MB / 0.6763 GB, free: 4.855 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.5842, allocations: 23.81 kB / 0.6763 GB, free: 4.832 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.5854, allocations: 254.4 kB / 0.6765 GB, free: 4.582 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003978/0.5894, allocations: 1.127 MB / 0.6776 GB, free: 3.453 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00255/0.592, allocations: 0.7754 MB / 0.6784 GB, free: 2.684 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.002853/0.5949, allocations: 2.261 MB / 0.6806 GB, free: 428 kB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009138/0.5958, allocations: 393.8 kB / 0.681 GB, free: 24 kB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3591/0.9549, allocations: 0.9447 MB / 0.6819 GB, free: 5.973 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001127/0.9561, allocations: 0.6541 MB / 0.6825 GB, free: 5.973 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.9562, allocations: 30.94 kB / 0.6826 GB, free: 5.973 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001523/0.9577, allocations: 0.506 MB / 0.6831 GB, free: 5.973 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002695/0.958, allocations: 238.7 kB / 0.6833 GB, free: 5.973 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004341/0.9585, allocations: 384.9 kB / 0.6837 GB, free: 5.938 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.9595, allocations: 0.9532 MB / 0.6846 GB, free: 5.91 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.9595, allocations: 0 / 0.6846 GB, free: 5.91 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.9595, allocations: 0 / 0.6846 GB, free: 5.91 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.9595, allocations: 0 / 0.6846 GB, free: 5.91 MB / 490.7 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.002573/0.9621, allocations: 0.9526 MB / 0.6855 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.901e-05/0.9622, allocations: 9.094 kB / 0.6855 GB, free: 21.34 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008385/0.963, allocations: 138 kB / 0.6857 GB, free: 21.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000805/0.9638, allocations: 0.4959 MB / 0.6861 GB, free: 21.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.964, allocations: 100 kB / 0.6862 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.129e-05/0.9641, allocations: 54.28 kB / 0.6863 GB, free: 20.98 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.9652, allocations: 0.8174 MB / 0.6871 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.9652, allocations: 0 / 0.6871 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.31e-05/0.9653, allocations: 26.89 kB / 0.6871 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.316e-05/0.9654, allocations: 42.59 kB / 0.6871 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009431/0.9663, allocations: 0.6179 MB / 0.6878 GB, free: 20.75 MB / 0.4948 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.004081/0.9704, allocations: 3.929 MB / 0.6916 GB, free: 18.18 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005521/0.971, allocations: 356.6 kB / 0.6919 GB, free: 18.14 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002555/0.9713, allocations: 173.6 kB / 0.6921 GB, free: 18.13 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.9714, allocations: 93.47 kB / 0.6922 GB, free: 18.04 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.9714, allocations: 41.7 kB / 0.6922 GB, free: 18 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=34): time 2.003e-06/0.9715, allocations: 4 kB / 0.6922 GB, free: 18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.004932/0.9764, allocations: 1.675 MB / 0.6939 GB, free: 17.48 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.9765, allocations: 132.7 kB / 0.694 GB, free: 17.32 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006406/0.9771, allocations: 0.6089 MB / 0.6946 GB, free: 17.18 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.9772, allocations: 31.14 kB / 0.6946 GB, free: 17.15 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.9774, allocations: 375 kB / 0.695 GB, free: 16.95 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 9.622e-05/0.9775, allocations: 140.7 kB / 0.6951 GB, free: 16.87 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.743e-05/0.9776, allocations: 15.19 kB / 0.6951 GB, free: 16.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001528/0.9777, allocations: 374.6 kB / 0.6955 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.978, allocations: 199.3 kB / 0.6957 GB, free: 16.55 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004521/0.9785, allocations: 0.5088 MB / 0.6962 GB, free: 16.16 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008238/0.9793, allocations: 0.745 MB / 0.6969 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.9793, allocations: 5.781 kB / 0.6969 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001294/0.9806, allocations: 0.8769 MB / 0.6978 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.9807, allocations: 15.95 kB / 0.6978 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.9807, allocations: 8.5 kB / 0.6978 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001304/0.982, allocations: 319.5 kB / 0.6981 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003627/0.9824, allocations: 121.6 kB / 0.6982 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001037/0.9834, allocations: 0.9286 MB / 0.6991 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000503/0.9839, allocations: 59.56 kB / 0.6992 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.589e-05/0.984, allocations: 64.25 kB / 0.6992 GB, free: 15.13 MB / 0.4948 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 (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 17} Notification: Performance of prepare postOptimizeDAE: time 0.0003216/0.9844, allocations: 243 kB / 0.6995 GB, free: 15.01 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.9845, allocations: 73.12 kB / 0.6995 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/0.9863, allocations: 0.8596 MB / 0.7004 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.9863, allocations: 8 kB / 0.7004 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.9864, allocations: 5.156 kB / 0.7004 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.9864, allocations: 2.812 kB / 0.7004 GB, free: 14.84 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002168/0.9885, allocations: 1.45 MB / 0.7018 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.9886, allocations: 8.203 kB / 0.7018 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.9896, allocations: 209.7 kB / 0.702 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.578e-05/0.9897, allocations: 22.5 kB / 0.702 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-05/0.9898, allocations: 25.39 kB / 0.702 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/0.9919, allocations: 2.679 MB / 0.7047 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.9919, allocations: 2 kB / 0.7047 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.9934, allocations: 0.8179 MB / 0.7055 GB, free: 11.37 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003093/0.9937, allocations: 189.5 kB / 0.7056 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.973e-05/0.9938, allocations: 14.91 kB / 0.7057 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.9942, allocations: 26.14 kB / 0.7057 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.9944, allocations: 45.19 kB / 0.7057 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.998e-05/0.9945, allocations: 43.27 kB / 0.7058 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006112/0.9951, allocations: 431.8 kB / 0.7062 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9951, allocations: 1.125 kB / 0.7062 GB, free: 11.13 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001016/0.9961, allocations: 258.9 kB / 0.7064 GB, free: 11.12 MB / 0.4948 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008286/0.9969, allocations: 294.6 kB / 0.7067 GB, free: 11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.001254/0.9982, allocations: 0.5483 MB / 0.7072 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.9982, allocations: 1.094 kB / 0.7072 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.9993, allocations: 405.3 kB / 0.7076 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/1.001, allocations: 344.7 kB / 0.708 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/1.004, allocations: 1.622 MB / 0.7095 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000636/1.004, allocations: 0.9228 MB / 0.7104 GB, free: 9.34 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004632/1.005, allocations: 124.5 kB / 0.7106 GB, free: 9.324 MB / 0.4948 GB Notification: Performance of SimCode: time 4.4e-07/1.005, allocations: 1.859 kB / 0.7106 GB, free: 9.324 MB / 0.4948 GB Notification: Performance of Templates: time 0.02239/1.027, allocations: 16.34 MB / 0.7265 GB, free: 4.703 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches