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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 114.4 kB / 17.78 MB, free: 5.25 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.001492/0.001492, allocations: 187 kB / 18.71 MB, free: 4.324 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.392/1.392, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2558/0.2558, allocations: 44.19 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 63.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3651/0.3665, allocations: 60.83 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1743/0.5409, allocations: 149.4 MB / 0.6643 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.5422, allocations: 0.9656 MB / 0.6652 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.32e-05/0.5422, allocations: 4 kB / 0.6652 GB, free: 5.238 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002471/0.5425, allocations: 27.81 kB / 0.6652 GB, free: 5.211 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0005838/0.5432, allocations: 242.6 kB / 0.6655 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003582/0.5435, allocations: 119.6 kB / 0.6656 GB, free: 4.855 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.5438, allocations: 171.3 kB / 0.6658 GB, free: 4.688 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.257e-05/0.5438, allocations: 10.25 kB / 0.6658 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002257/0.5441, allocations: 87.62 kB / 0.6658 GB, free: 4.594 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.5442, allocations: 55.7 kB / 0.6659 GB, free: 4.539 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.5442, allocations: 8 kB / 0.6659 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005156/0.5447, allocations: 255.7 kB / 0.6661 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.635e-05/0.5448, allocations: 27.97 kB / 0.6662 GB, free: 4.254 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 6.378e-05/0.5449, allocations: 43.8 kB / 0.6662 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004648/0.5454, allocations: 279.4 kB / 0.6665 GB, free: 3.938 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.5454, allocations: 3.938 kB / 0.6665 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.074e-06/0.5454, allocations: 0 / 0.6665 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.172e-06/0.5454, allocations: 0 / 0.6665 GB, free: 3.934 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.0006166/0.546, allocations: 407.2 kB / 0.6669 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.145e-05/0.5461, allocations: 8.031 kB / 0.6669 GB, free: 3.48 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.692e-05/0.5462, allocations: 38.75 kB / 0.6669 GB, free: 3.434 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002081/0.5483, allocations: 196.5 kB / 0.6671 GB, free: 3.242 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.5486, allocations: 207.4 kB / 0.6673 GB, free: 3 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.5487, allocations: 4 kB / 0.6673 GB, free: 2.996 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.138e-05/0.5487, allocations: 8 kB / 0.6673 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000522/0.5493, allocations: 228 kB / 0.6675 GB, free: 2.75 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.5493, allocations: 0 / 0.6675 GB, free: 2.75 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.5493, allocations: 4 kB / 0.6675 GB, free: 2.746 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.5493, allocations: 4 kB / 0.6675 GB, free: 2.742 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004334/0.5498, allocations: 163.9 kB / 0.6677 GB, free: 2.582 MB / 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.001076/0.5508, allocations: 0.5949 MB / 0.6683 GB, free: 1.93 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003235/0.5512, allocations: 142.1 kB / 0.6684 GB, free: 1.785 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001315/0.5513, allocations: 64.83 kB / 0.6685 GB, free: 1.719 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.5514, allocations: 4 kB / 0.6685 GB, free: 1.715 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.5514, allocations: 42.5 kB / 0.6685 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.5514, allocations: 0 / 0.6685 GB, free: 1.664 MB / 0.5137 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.005258/0.5566, allocations: 1.297 MB / 0.6698 GB, free: 280 kB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.5567, allocations: 55.41 kB / 0.6698 GB, free: 212 kB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.849e-05/0.5568, allocations: 113.8 kB / 0.6699 GB, free: 88 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.72e-05/0.5568, allocations: 29.7 kB / 0.67 GB, free: 52 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.763e-05/0.5569, allocations: 103.9 kB / 0.6701 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.419e-05/0.557, allocations: 59.11 kB / 0.6701 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.502e-05/0.5571, allocations: 57.59 kB / 0.6702 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002027/0.5573, allocations: 322.8 kB / 0.6705 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.5575, allocations: 67.97 kB / 0.6706 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.5576, allocations: 107.3 kB / 0.6707 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003357/0.558, allocations: 187.3 kB / 0.6708 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.558, allocations: 0 / 0.6708 GB, free: 15.12 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005075/0.5585, allocations: 261.5 kB / 0.6711 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.5585, allocations: 6.812 kB / 0.6711 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.5586, allocations: 0 / 0.6711 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/0.5587, allocations: 52.77 kB / 0.6711 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.5591, allocations: 55.95 kB / 0.6712 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004852/0.5596, allocations: 0.5758 MB / 0.6718 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.5597, allocations: 4 kB / 0.6718 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.5598, allocations: 24 kB / 0.6718 GB, free: 14.12 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.0001095/0.5599, allocations: 121.8 kB / 0.6719 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.831e-05/0.56, allocations: 15.78 kB / 0.6719 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007119/0.5607, allocations: 343.2 kB / 0.6722 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.5607, allocations: 0 / 0.6722 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.5607, allocations: 4 kB / 0.6723 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5607, allocations: 3.984 kB / 0.6723 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009688/0.5617, allocations: 0.625 MB / 0.6729 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5617, allocations: 0 / 0.6729 GB, free: 12.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003382/0.5621, allocations: 67.89 kB / 0.6729 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.034e-05/0.5621, allocations: 16.84 kB / 0.6729 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-05/0.5622, allocations: 15.98 kB / 0.673 GB, free: 12.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009347/0.5631, allocations: 1.375 MB / 0.6743 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5631, allocations: 0 / 0.6743 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006837/0.5638, allocations: 443.3 kB / 0.6747 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 4.683e-05/0.5639, allocations: 85.05 kB / 0.6748 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.758e-05/0.5639, allocations: 0 / 0.6748 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.5641, allocations: 11.98 kB / 0.6748 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.64e-05/0.5642, allocations: 28.03 kB / 0.6748 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.953e-05/0.5643, allocations: 24 kB / 0.6749 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 6.073e-05/0.5643, allocations: 95.2 kB / 0.675 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5643, allocations: 0 / 0.675 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004109/0.5647, allocations: 79.94 kB / 0.675 GB, free: 10.52 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.001268/0.566, allocations: 1.008 MB / 0.676 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004934/0.5665, allocations: 207.8 kB / 0.6762 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.5665, allocations: 0 / 0.6762 GB, free: 9.266 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003476/0.5669, allocations: 226.9 kB / 0.6764 GB, free: 9.031 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004463/0.5673, allocations: 48.42 kB / 0.6765 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002897/0.5702, allocations: 2.073 MB / 0.6785 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.5706, allocations: 0.7046 MB / 0.6792 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002984/0.5709, allocations: 73.39 kB / 0.6793 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001977/0.5711, allocations: 67.41 kB / 0.6793 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of SimCode: time 2.245e-06/0.5711, allocations: 0 / 0.6793 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02841/0.5995, allocations: 7.376 MB / 0.6865 GB, free: 14.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/12.11, allocations: 9.141 kB / 0.6865 GB, free: 14.65 MB / 0.545 GB (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 --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) 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) Reference file matches