Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001383/0.001383, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 247 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2229/0.2229, allocations: 46.11 MB / 344.4 MB, free: 11.45 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 76.16 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3418, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1816/0.5235, allocations: 152.3 MB / 0.6793 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001549/0.5251, allocations: 1.059 MB / 0.6803 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.872e-05/0.5251, allocations: 0 / 0.6803 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.5255, allocations: 35.77 kB / 0.6804 GB, free: 7.781 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0007415/0.5262, allocations: 274.5 kB / 0.6806 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003747/0.5266, allocations: 119.6 kB / 0.6807 GB, free: 7.395 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.5269, allocations: 175.2 kB / 0.6809 GB, free: 7.223 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 4.025e-05/0.5269, allocations: 7.938 kB / 0.6809 GB, free: 7.215 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.5271, allocations: 91.69 kB / 0.681 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.5272, allocations: 63.75 kB / 0.6811 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.125e-05/0.5273, allocations: 11.94 kB / 0.6811 GB, free: 7.051 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005469/0.5278, allocations: 271.7 kB / 0.6813 GB, free: 6.785 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.214e-05/0.5279, allocations: 15.98 kB / 0.6814 GB, free: 6.77 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.889e-05/0.528, allocations: 51.78 kB / 0.6814 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.5284, allocations: 282.9 kB / 0.6817 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.5284, allocations: 4 kB / 0.6817 GB, free: 6.441 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5285, allocations: 0 / 0.6817 GB, free: 6.441 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.5285, allocations: 0 / 0.6817 GB, free: 6.441 MB / 0.5294 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.0005649/0.529, allocations: 418.9 kB / 0.6821 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.5291, allocations: 8.031 kB / 0.6821 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.891e-05/0.5291, allocations: 38.75 kB / 0.6821 GB, free: 5.93 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002055/0.5312, allocations: 192.6 kB / 0.6823 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.5315, allocations: 211.5 kB / 0.6825 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.5315, allocations: 7.938 kB / 0.6825 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.401e-05/0.5316, allocations: 15.98 kB / 0.6825 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005075/0.5321, allocations: 220 kB / 0.6827 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.5321, allocations: 0 / 0.6827 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.293e-05/0.5322, allocations: 8 kB / 0.6827 GB, free: 5.234 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.5322, allocations: 0 / 0.6827 GB, free: 5.234 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004599/0.5326, allocations: 171.8 kB / 0.6829 GB, free: 5.066 MB / 0.5294 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.001039/0.5337, allocations: 0.5794 MB / 0.6835 GB, free: 4.43 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003358/0.534, allocations: 142.5 kB / 0.6836 GB, free: 4.281 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.5342, allocations: 68.83 kB / 0.6837 GB, free: 4.211 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.5342, allocations: 4 kB / 0.6837 GB, free: 4.207 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.5342, allocations: 34.55 kB / 0.6837 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.5343, allocations: 0 / 0.6837 GB, free: 4.164 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.005268/0.5395, allocations: 1.317 MB / 0.685 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.936e-05/0.5396, allocations: 55.41 kB / 0.6851 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.65e-05/0.5397, allocations: 105.8 kB / 0.6852 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.5397, allocations: 33.64 kB / 0.6852 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.5398, allocations: 95.98 kB / 0.6853 GB, free: 2.441 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.559e-05/0.5399, allocations: 75.36 kB / 0.6854 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.626e-05/0.54, allocations: 57.64 kB / 0.6854 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5401, allocations: 326.8 kB / 0.6857 GB, free: 1.977 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.5403, allocations: 71.95 kB / 0.6858 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.5405, allocations: 107.2 kB / 0.6859 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003688/0.5408, allocations: 175.4 kB / 0.6861 GB, free: 1.605 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5409, allocations: 4 kB / 0.6861 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005094/0.5414, allocations: 261.8 kB / 0.6863 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.5414, allocations: 4 kB / 0.6863 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.5414, allocations: 4 kB / 0.6863 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.5416, allocations: 52.92 kB / 0.6864 GB, free: 1.277 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.5419, allocations: 55.89 kB / 0.6864 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004524/0.5424, allocations: 0.5605 MB / 0.687 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.5426, allocations: 12.02 kB / 0.687 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-05/0.5426, allocations: 20 kB / 0.687 GB, free: 0.6055 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.0001319/0.5428, allocations: 129.9 kB / 0.6871 GB, free: 480 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.77e-05/0.5428, allocations: 11.89 kB / 0.6871 GB, free: 468 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007489/0.5436, allocations: 351 kB / 0.6875 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.5436, allocations: 4 kB / 0.6875 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5436, allocations: 0 / 0.6875 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.5436, allocations: 0 / 0.6875 GB, free: 108 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001029/0.5446, allocations: 0.6269 MB / 0.6881 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.5446, allocations: 4 kB / 0.6881 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.545, allocations: 59.95 kB / 0.6881 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.323e-05/0.5451, allocations: 16.84 kB / 0.6882 GB, free: 15.33 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.5451, allocations: 15.98 kB / 0.6882 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.5462, allocations: 1.376 MB / 0.6895 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5462, allocations: 0 / 0.6895 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007087/0.5469, allocations: 430.6 kB / 0.6899 GB, free: 13.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.547, allocations: 85.22 kB / 0.69 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.256e-05/0.547, allocations: 11.94 kB / 0.69 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002059/0.5473, allocations: 8 kB / 0.69 GB, free: 13.22 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.788e-05/0.5473, allocations: 27.91 kB / 0.6901 GB, free: 13.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.5474, allocations: 23.98 kB / 0.6901 GB, free: 13.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.921e-05/0.5474, allocations: 95.2 kB / 0.6902 GB, free: 13.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5474, allocations: 0 / 0.6902 GB, free: 13.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004022/0.5478, allocations: 79.94 kB / 0.6902 GB, free: 13 MB / 0.545 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.001304/0.5492, allocations: 1.006 MB / 0.6912 GB, free: 11.95 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005101/0.5497, allocations: 222.8 kB / 0.6914 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.644e-06/0.5497, allocations: 0 / 0.6914 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003421/0.55, allocations: 214.6 kB / 0.6916 GB, free: 11.52 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004288/0.5505, allocations: 47.03 kB / 0.6917 GB, free: 11.47 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.5533, allocations: 2.086 MB / 0.6937 GB, free: 9.266 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003308/0.5537, allocations: 0.7085 MB / 0.6944 GB, free: 8.531 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002961/0.554, allocations: 77.39 kB / 0.6945 GB, free: 8.457 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.5542, allocations: 63.41 kB / 0.6946 GB, free: 8.395 MB / 0.545 GB Notification: Performance of SimCode: time 5.51e-07/0.5542, allocations: 0 / 0.6946 GB, free: 8.395 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.5874, allocations: 7.329 MB / 0.7017 GB, free: 1.164 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.57, allocations: 0 / 0.7017 GB, free: 1.164 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches