Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001183/0.001183, allocations: 107 kB / 17.33 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 193.3 kB / 18.25 MB, free: 5.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2213/0.2213, allocations: 44.19 MB / 336.2 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001867/0.001867, allocations: 69.23 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1203, allocations: 60.82 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3533/0.4737, allocations: 147.3 MB / 0.6015 GB, free: 13.84 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.4749, allocations: 0.9675 MB / 0.6025 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.065e-05/0.475, allocations: 0 / 0.6025 GB, free: 12.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.4753, allocations: 41.69 kB / 0.6025 GB, free: 12.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005692/0.4758, allocations: 209.2 kB / 0.6027 GB, free: 12.63 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003448/0.4762, allocations: 111.7 kB / 0.6028 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002293/0.4765, allocations: 163.3 kB / 0.603 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.793e-05/0.4765, allocations: 8 kB / 0.603 GB, free: 12.36 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.4767, allocations: 87.06 kB / 0.6031 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.932e-05/0.4768, allocations: 59.7 kB / 0.6031 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.4769, allocations: 8 kB / 0.6031 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004674/0.4773, allocations: 267.7 kB / 0.6034 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.342e-05/0.4774, allocations: 27.95 kB / 0.6034 GB, free: 11.92 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 5.811e-05/0.4775, allocations: 43.81 kB / 0.6035 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000429/0.4779, allocations: 283.3 kB / 0.6037 GB, free: 11.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.4779, allocations: 0 / 0.6037 GB, free: 11.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4779, allocations: 4 kB / 0.6037 GB, free: 11.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.4779, allocations: 0 / 0.6037 GB, free: 11.59 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0005019/0.4784, allocations: 407.8 kB / 0.6041 GB, free: 11.15 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4785, allocations: 12.03 kB / 0.6041 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002127/0.4806, allocations: 188.6 kB / 0.6043 GB, free: 10.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002349/0.4809, allocations: 212 kB / 0.6045 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.302e-05/0.4809, allocations: 8 kB / 0.6045 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.4809, allocations: 6.344 kB / 0.6045 GB, free: 10.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005206/0.4815, allocations: 226.4 kB / 0.6048 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.4815, allocations: 0 / 0.6048 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.633e-05/0.4815, allocations: 8 kB / 0.6048 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-06/0.4815, allocations: 0 / 0.6048 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004367/0.482, allocations: 171.8 kB / 0.6049 GB, free: 10.29 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.001025/0.483, allocations: 0.5757 MB / 0.6055 GB, free: 9.652 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/0.4834, allocations: 134.5 kB / 0.6056 GB, free: 9.512 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.4835, allocations: 73.55 kB / 0.6057 GB, free: 9.438 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.65e-05/0.4836, allocations: 4.25 kB / 0.6057 GB, free: 9.434 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.4836, allocations: 34.56 kB / 0.6057 GB, free: 9.391 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.944e-06/0.4836, allocations: 0 / 0.6057 GB, free: 9.391 MB / 446.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.005687/0.4893, allocations: 1.306 MB / 0.607 GB, free: 8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.4894, allocations: 55.41 kB / 0.6071 GB, free: 7.934 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.4895, allocations: 113.8 kB / 0.6072 GB, free: 7.812 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.4895, allocations: 29.7 kB / 0.6072 GB, free: 7.777 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.922e-05/0.4896, allocations: 95.94 kB / 0.6073 GB, free: 7.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.208e-05/0.4897, allocations: 71.02 kB / 0.6073 GB, free: 7.609 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.891e-05/0.4898, allocations: 53.7 kB / 0.6074 GB, free: 7.551 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4899, allocations: 330.7 kB / 0.6077 GB, free: 7.219 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.4901, allocations: 63.97 kB / 0.6078 GB, free: 7.156 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.4903, allocations: 118.9 kB / 0.6079 GB, free: 7.031 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003387/0.4906, allocations: 180.8 kB / 0.6081 GB, free: 6.844 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.4906, allocations: 0 / 0.6081 GB, free: 6.844 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005065/0.4911, allocations: 267.4 kB / 0.6083 GB, free: 6.574 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.4912, allocations: 4 kB / 0.6083 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.4912, allocations: 4 kB / 0.6083 GB, free: 6.566 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001756/0.4914, allocations: 48.83 kB / 0.6084 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003456/0.4917, allocations: 51.97 kB / 0.6084 GB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000422/0.4921, allocations: 0.568 MB / 0.609 GB, free: 5.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.4923, allocations: 8.031 kB / 0.609 GB, free: 5.863 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.4924, allocations: 23.98 kB / 0.609 GB, free: 5.84 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * 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 {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000134/0.4925, allocations: 125.8 kB / 0.6091 GB, free: 5.707 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.491e-05/0.4926, allocations: 11.91 kB / 0.6091 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008647/0.4935, allocations: 345.4 kB / 0.6095 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.4935, allocations: 0 / 0.6095 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4935, allocations: 0.5 kB / 0.6095 GB, free: 5.348 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.4935, allocations: 3.984 kB / 0.6095 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.4945, allocations: 0.6239 MB / 0.6101 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4945, allocations: 0 / 0.6101 GB, free: 4.652 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003706/0.4949, allocations: 60.77 kB / 0.6101 GB, free: 4.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.509e-05/0.495, allocations: 24.84 kB / 0.6102 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.067e-05/0.495, allocations: 15.98 kB / 0.6102 GB, free: 4.551 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009435/0.496, allocations: 1.36 MB / 0.6115 GB, free: 3.051 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.496, allocations: 4.156 kB / 0.6115 GB, free: 3.047 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006988/0.4967, allocations: 440.4 kB / 0.6119 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.507e-05/0.4968, allocations: 85.05 kB / 0.612 GB, free: 2.492 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.7e-05/0.4968, allocations: 16.05 kB / 0.612 GB, free: 2.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002318/0.497, allocations: 8 kB / 0.612 GB, free: 2.469 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.349e-05/0.4971, allocations: 19.97 kB / 0.6121 GB, free: 2.449 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.4972, allocations: 35.98 kB / 0.6121 GB, free: 2.414 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.614e-05/0.4972, allocations: 91.2 kB / 0.6122 GB, free: 2.324 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4972, allocations: 0 / 0.6122 GB, free: 2.324 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004178/0.4976, allocations: 83.92 kB / 0.6123 GB, free: 2.242 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,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 (21): * Single equations (assignments): 20 * 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): 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.0003539/0.498, allocations: 147.7 kB / 0.6124 GB, free: 2.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005104/0.4985, allocations: 223.7 kB / 0.6126 GB, free: 1.871 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4985, allocations: 0 / 0.6126 GB, free: 1.871 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.4989, allocations: 222.6 kB / 0.6128 GB, free: 1.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004483/0.4993, allocations: 44.28 kB / 0.6129 GB, free: 1.598 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008397/0.5002, allocations: 0.507 MB / 0.6134 GB, free: 1.055 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.5005, allocations: 0.7124 MB / 0.6141 GB, free: 324 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004432/0.5009, allocations: 73.61 kB / 0.6141 GB, free: 252 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.5011, allocations: 51.41 kB / 0.6142 GB, free: 200 kB / 446.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5011, allocations: 0 / 0.6142 GB, free: 200 kB / 446.1 MB Notification: Performance of Templates: time 0.009377/0.5105, allocations: 5.597 MB / 0.6196 GB, free: 10.62 MB / 462.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches