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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 209.8 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2216/0.2216, allocations: 44.93 MB / 358.8 MB, free: 6.141 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 67.89 kB / 0.493 GB, free: 10.56 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3231, allocations: 65.48 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1752/0.4983, allocations: 131.3 MB / 0.6852 GB, free: 3.676 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.5, allocations: 0.8644 MB / 0.6861 GB, free: 2.809 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.5001, allocations: 3.938 kB / 0.6861 GB, free: 2.805 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0003161/0.5004, allocations: 23.84 kB / 0.6861 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0008762/0.5013, allocations: 252.5 kB / 0.6863 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004048/0.5017, allocations: 119.4 kB / 0.6864 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.502, allocations: 179.2 kB / 0.6866 GB, free: 2.246 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.921e-05/0.502, allocations: 11.94 kB / 0.6866 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002565/0.5023, allocations: 83.69 kB / 0.6867 GB, free: 2.152 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.5024, allocations: 59.69 kB / 0.6868 GB, free: 2.094 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.5024, allocations: 8 kB / 0.6868 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005743/0.503, allocations: 251.7 kB / 0.687 GB, free: 1.84 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.5031, allocations: 15.98 kB / 0.687 GB, free: 1.824 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 7.878e-05/0.5031, allocations: 43.84 kB / 0.6871 GB, free: 1.781 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0006057/0.5037, allocations: 291.1 kB / 0.6873 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.5037, allocations: 0 / 0.6873 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.222e-06/0.5037, allocations: 4 kB / 0.6873 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.5037, allocations: 0 / 0.6873 GB, free: 1.492 MB / 0.5137 GB 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.0006229/0.5044, allocations: 341.8 kB / 0.6877 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.585e-05/0.5044, allocations: 12.03 kB / 0.6877 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.565e-05/0.5045, allocations: 34.75 kB / 0.6877 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/0.5067, allocations: 196.6 kB / 0.6879 GB, free: 0.8828 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.5071, allocations: 149.6 kB / 0.688 GB, free: 0.7109 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.5071, allocations: 8 kB / 0.6881 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.5072, allocations: 8 kB / 0.6881 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005694/0.5077, allocations: 301.1 kB / 0.6883 GB, free: 376 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.5077, allocations: 3.984 kB / 0.6884 GB, free: 372 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.5078, allocations: 4 kB / 0.6884 GB, free: 368 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.5078, allocations: 3.984 kB / 0.6884 GB, free: 364 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000458/0.5082, allocations: 178 kB / 0.6885 GB, free: 188 kB / 0.5137 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.001135/0.5094, allocations: 0.5318 MB / 0.689 GB, free: 15.6 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.5097, allocations: 142.4 kB / 0.6892 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.5099, allocations: 64.83 kB / 0.6892 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.5099, allocations: 0 / 0.6892 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.5099, allocations: 34.56 kB / 0.6893 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.5099, allocations: 0 / 0.6893 GB, free: 15.34 MB / 0.5294 GB 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.005475/0.5154, allocations: 1.153 MB / 0.6904 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.689e-05/0.5155, allocations: 59.39 kB / 0.6905 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.5156, allocations: 117.7 kB / 0.6906 GB, free: 13.94 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.764e-05/0.5156, allocations: 29.7 kB / 0.6906 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 7.714e-05/0.5157, allocations: 99.98 kB / 0.6907 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 7.112e-05/0.5158, allocations: 71.38 kB / 0.6908 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001095/0.5159, allocations: 49.7 kB / 0.6908 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.5161, allocations: 326.8 kB / 0.6911 GB, free: 13.35 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001785/0.5162, allocations: 75.95 kB / 0.6912 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.5164, allocations: 100.9 kB / 0.6913 GB, free: 13.17 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.5168, allocations: 183.3 kB / 0.6915 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.5168, allocations: 0 / 0.6915 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005466/0.5173, allocations: 263.4 kB / 0.6917 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.5173, allocations: 4 kB / 0.6917 GB, free: 12.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.5174, allocations: 4 kB / 0.6917 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.5176, allocations: 52.81 kB / 0.6918 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003412/0.5179, allocations: 51.91 kB / 0.6918 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005278/0.5184, allocations: 0.564 MB / 0.6924 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001785/0.5186, allocations: 8.031 kB / 0.6924 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/0.5187, allocations: 28.17 kB / 0.6924 GB, free: 11.97 MB / 0.5294 GB 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.000151/0.5188, allocations: 125.8 kB / 0.6925 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.5189, allocations: 15.84 kB / 0.6925 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000807/0.5197, allocations: 353.1 kB / 0.6929 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.5197, allocations: 0 / 0.6929 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.5197, allocations: 0 / 0.6929 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.5197, allocations: 4 kB / 0.6929 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.5207, allocations: 0.5676 MB / 0.6934 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5207, allocations: 3.938 kB / 0.6934 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.5211, allocations: 63.95 kB / 0.6935 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.428e-05/0.5212, allocations: 16.84 kB / 0.6935 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-05/0.5212, allocations: 15.98 kB / 0.6935 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.5223, allocations: 1.275 MB / 0.6948 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.113e-06/0.5223, allocations: 0 / 0.6948 GB, free: 9.355 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007337/0.523, allocations: 437.9 kB / 0.6952 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 2.204e-05/0.523, allocations: 11.92 kB / 0.6952 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.5231, allocations: 8 kB / 0.6952 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002194/0.5233, allocations: 8 kB / 0.6952 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.5233, allocations: 23.95 kB / 0.6952 GB, free: 8.852 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.554e-05/0.5234, allocations: 27.98 kB / 0.6953 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.527e-05/0.5235, allocations: 107.6 kB / 0.6954 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.5235, allocations: 0 / 0.6954 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004048/0.5239, allocations: 83.92 kB / 0.6955 GB, free: 8.637 MB / 0.5294 GB 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.001269/0.5251, allocations: 1.007 MB / 0.6964 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0005207/0.5256, allocations: 187.8 kB / 0.6966 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5257, allocations: 0 / 0.6966 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003821/0.526, allocations: 226.8 kB / 0.6968 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004659/0.5265, allocations: 46.92 kB / 0.6969 GB, free: 7.129 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.5295, allocations: 2.081 MB / 0.6989 GB, free: 4.922 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.5296, allocations: 93.97 kB / 0.699 GB, free: 4.812 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003176/0.5299, allocations: 69.39 kB / 0.6991 GB, free: 4.742 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.5301, allocations: 75.39 kB / 0.6991 GB, free: 4.668 MB / 0.5294 GB Notification: Performance of SimCode: time 5.51e-07/0.5301, allocations: 3.938 kB / 0.6991 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03799/0.5681, allocations: 7.88 MB / 0.7068 GB, free: 12.95 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.06/13.63, allocations: 9.891 kB / 0.7069 GB, free: 12.94 MB / 0.545 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.559394873213023]