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.001285/0.001286, allocations: 200.7 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.298/1.298, allocations: 226.5 MB / 243.1 MB, free: 12.37 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006904/0.0006904, allocations: 96.31 kB / 295.1 MB, free: 4.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1809/0.1809, allocations: 44.84 MB / 392 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002503/0.0002502, allocations: 4 kB / 464.7 MB, free: 68.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08774, allocations: 62.96 MB / 0.5153 GB, free: 5.086 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.3526/0.4403, allocations: 159.1 MB / 0.6707 GB, free: 6.391 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.006246/0.4466, allocations: 5.096 MB / 0.6757 GB, free: 1.285 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007344/0.4474, allocations: 23.81 kB / 0.6757 GB, free: 1.262 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008589/0.4482, allocations: 258.4 kB / 0.6759 GB, free: 1.008 MB / 458.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.002868/0.4511, allocations: 1.081 MB / 0.677 GB, free: 15.92 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001892/0.453, allocations: 0.7481 MB / 0.6777 GB, free: 15.18 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002244/0.4553, allocations: 2.254 MB / 0.6799 GB, free: 12.93 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000651/0.4559, allocations: 384.9 kB / 0.6803 GB, free: 12.54 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.4578, allocations: 0.9068 MB / 0.6812 GB, free: 11.63 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009688/0.4588, allocations: 0.6657 MB / 0.6818 GB, free: 10.96 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001402/0.4589, allocations: 32 kB / 0.6818 GB, free: 10.93 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.46, allocations: 455.3 kB / 0.6823 GB, free: 10.49 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002632/0.4603, allocations: 231.3 kB / 0.6825 GB, free: 10.26 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.4605, allocations: 165.4 kB / 0.6827 GB, free: 10.09 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.4615, allocations: 0.9368 MB / 0.6836 GB, free: 9.156 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4615, allocations: 0 / 0.6836 GB, free: 9.156 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4615, allocations: 0 / 0.6836 GB, free: 9.156 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.488e-05/0.4616, allocations: 4 kB / 0.6836 GB, free: 9.152 MB / 474.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.001909/0.4635, allocations: 0.9543 MB / 0.6845 GB, free: 8.148 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.4635, allocations: 8.031 kB / 0.6845 GB, free: 8.141 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007584/0.4643, allocations: 135 kB / 0.6846 GB, free: 8.008 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007476/0.4651, allocations: 0.4927 MB / 0.6851 GB, free: 7.473 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-05/0.4652, allocations: 96.41 kB / 0.6852 GB, free: 7.367 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.884e-05/0.4653, allocations: 47.98 kB / 0.6853 GB, free: 7.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.4664, allocations: 0.8174 MB / 0.6861 GB, free: 6.43 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.4665, allocations: 4 kB / 0.6861 GB, free: 6.426 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.29e-05/0.4665, allocations: 20 kB / 0.6861 GB, free: 6.406 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.189e-05/0.4666, allocations: 44.92 kB / 0.6861 GB, free: 6.359 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009827/0.4676, allocations: 0.6282 MB / 0.6867 GB, free: 5.734 MB / 474.7 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.003987/0.4716, allocations: 3.929 MB / 0.6906 GB, free: 1.555 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005222/0.4721, allocations: 359.6 kB / 0.6909 GB, free: 1.195 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002541/0.4724, allocations: 169.8 kB / 0.6911 GB, free: 1.027 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.4725, allocations: 97.36 kB / 0.6912 GB, free: 0.9141 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.696e-05/0.4725, allocations: 38.84 kB / 0.6912 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of pre-optimization done (n=34): time 1.402e-06/0.4725, allocations: 0 / 0.6912 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of matching and sorting (n=39): time 0.005091/0.4776, allocations: 1.666 MB / 0.6928 GB, free: 15.13 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/0.4777, allocations: 132.5 kB / 0.693 GB, free: 14.97 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007468/0.4785, allocations: 0.6094 MB / 0.6936 GB, free: 14.35 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.4785, allocations: 33.7 kB / 0.6936 GB, free: 14.31 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.4788, allocations: 374.8 kB / 0.694 GB, free: 13.94 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.4789, allocations: 134 kB / 0.6941 GB, free: 13.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.479, allocations: 12 kB / 0.6941 GB, free: 13.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.4791, allocations: 386.7 kB / 0.6945 GB, free: 13.41 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.4794, allocations: 197.9 kB / 0.6946 GB, free: 13.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.48, allocations: 0.5164 MB / 0.6952 GB, free: 12.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004592/0.4804, allocations: 292.4 kB / 0.6954 GB, free: 12.27 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4804, allocations: 0 / 0.6954 GB, free: 12.27 MB / 490.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00138/0.4818, allocations: 0.8833 MB / 0.6963 GB, free: 11.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.4819, allocations: 8.969 kB / 0.6963 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.4819, allocations: 12 kB / 0.6963 GB, free: 11.36 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.4832, allocations: 321.4 kB / 0.6966 GB, free: 11.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000409/0.4837, allocations: 119.8 kB / 0.6967 GB, free: 10.92 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.4847, allocations: 0.9303 MB / 0.6976 GB, free: 9.969 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004909/0.4852, allocations: 40.05 kB / 0.6977 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.398e-05/0.4853, allocations: 71.98 kB / 0.6977 GB, free: 9.859 MB / 490.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: 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.0002981/0.4856, allocations: 250.1 kB / 0.698 GB, free: 9.605 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.4857, allocations: 79.14 kB / 0.6981 GB, free: 9.527 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.4873, allocations: 0.8623 MB / 0.6989 GB, free: 8.648 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.4873, allocations: 4 kB / 0.6989 GB, free: 8.645 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.4873, allocations: 7.984 kB / 0.6989 GB, free: 8.637 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.4873, allocations: 0 / 0.6989 GB, free: 8.637 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.4892, allocations: 1.445 MB / 0.7003 GB, free: 7.059 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4892, allocations: 7.953 kB / 0.7003 GB, free: 7.051 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.4903, allocations: 207.8 kB / 0.7005 GB, free: 6.848 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.129e-05/0.4903, allocations: 29.03 kB / 0.7006 GB, free: 6.816 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.142e-05/0.4904, allocations: 19.98 kB / 0.7006 GB, free: 6.797 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001788/0.4922, allocations: 2.68 MB / 0.7032 GB, free: 3.855 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.4922, allocations: 4.281 kB / 0.7032 GB, free: 3.852 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.4933, allocations: 0.8215 MB / 0.704 GB, free: 2.992 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002408/0.4936, allocations: 192.2 kB / 0.7042 GB, free: 2.785 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.946e-05/0.4937, allocations: 12 kB / 0.7042 GB, free: 2.773 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.4941, allocations: 27.97 kB / 0.7042 GB, free: 2.746 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.367e-05/0.4942, allocations: 40.02 kB / 0.7043 GB, free: 2.707 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-05/0.4942, allocations: 47.94 kB / 0.7043 GB, free: 2.66 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004547/0.4947, allocations: 427 kB / 0.7047 GB, free: 2.246 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4947, allocations: 0 / 0.7047 GB, free: 2.246 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008219/0.4955, allocations: 259.9 kB / 0.705 GB, free: 1.992 MB / 490.7 MB 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.0007022/0.4962, allocations: 296.1 kB / 0.7052 GB, free: 1.699 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0009941/0.4972, allocations: 0.5476 MB / 0.7058 GB, free: 1.152 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4973, allocations: 0 / 0.7058 GB, free: 1.152 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000869/0.4981, allocations: 414.6 kB / 0.7062 GB, free: 0.7344 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.4997, allocations: 349.8 kB / 0.7065 GB, free: 416 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002079/0.5018, allocations: 1.612 MB / 0.7081 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.5022, allocations: 0.9261 MB / 0.709 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003953/0.5026, allocations: 123.4 kB / 0.7091 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of SimCode: time 3.21e-07/0.5026, allocations: 0 / 0.7091 GB, free: 13.67 MB / 0.4948 GB Notification: Performance of Templates: time 0.01862/0.5213, allocations: 16.33 MB / 0.7251 GB, free: 13.38 MB / 0.5105 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