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.001331/0.001331, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2095/0.2095, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 71.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3309/0.3325, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1672/0.4996, allocations: 152.3 MB / 0.6792 GB, free: 8.953 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001399/0.5011, allocations: 1.055 MB / 0.6802 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.592e-05/0.5012, allocations: 0 / 0.6802 GB, free: 7.898 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002617/0.5015, allocations: 43.75 kB / 0.6803 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0007658/0.5022, allocations: 270.5 kB / 0.6805 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004093/0.5027, allocations: 115.2 kB / 0.6806 GB, free: 7.48 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002788/0.503, allocations: 183.2 kB / 0.6808 GB, free: 7.301 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.078e-05/0.5031, allocations: 7.938 kB / 0.6808 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.5033, allocations: 99.61 kB / 0.6809 GB, free: 7.195 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.5034, allocations: 59.77 kB / 0.681 GB, free: 7.137 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.5035, allocations: 4 kB / 0.681 GB, free: 7.133 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006019/0.5041, allocations: 267.7 kB / 0.6812 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 7.489e-05/0.5042, allocations: 27.97 kB / 0.6812 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.394e-05/0.5042, allocations: 47.73 kB / 0.6813 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.5048, allocations: 282.9 kB / 0.6816 GB, free: 6.523 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.5048, allocations: 3.984 kB / 0.6816 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5048, allocations: 0 / 0.6816 GB, free: 6.52 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.084e-06/0.5048, allocations: 0 / 0.6816 GB, free: 6.52 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.0005836/0.5054, allocations: 410.9 kB / 0.682 GB, free: 6.07 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.5055, allocations: 8.031 kB / 0.682 GB, free: 6.062 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.24e-05/0.5055, allocations: 38.75 kB / 0.682 GB, free: 6.016 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001981/0.5075, allocations: 204.6 kB / 0.6822 GB, free: 5.816 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003157/0.5078, allocations: 215.4 kB / 0.6824 GB, free: 5.566 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.5079, allocations: 4 kB / 0.6824 GB, free: 5.562 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.8e-05/0.5079, allocations: 8 kB / 0.6824 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.5084, allocations: 222.3 kB / 0.6826 GB, free: 5.324 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.5084, allocations: 4 kB / 0.6826 GB, free: 5.32 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.5085, allocations: 4 kB / 0.6826 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.5085, allocations: 0 / 0.6826 GB, free: 5.316 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004501/0.5089, allocations: 171.8 kB / 0.6828 GB, free: 5.148 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.00103/0.51, allocations: 0.5832 MB / 0.6834 GB, free: 4.508 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003239/0.5103, allocations: 142.5 kB / 0.6835 GB, free: 4.359 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.5104, allocations: 64.83 kB / 0.6836 GB, free: 4.293 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.5105, allocations: 4 kB / 0.6836 GB, free: 4.289 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.5105, allocations: 38.81 kB / 0.6836 GB, free: 4.242 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.5105, allocations: 0 / 0.6836 GB, free: 4.242 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.005092/0.5156, allocations: 1.3 MB / 0.6849 GB, free: 2.848 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.612e-05/0.5157, allocations: 59.41 kB / 0.6849 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.933e-05/0.5158, allocations: 109.8 kB / 0.685 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.5158, allocations: 33.7 kB / 0.6851 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.516e-05/0.5159, allocations: 103.9 kB / 0.6852 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.537e-05/0.5159, allocations: 67.42 kB / 0.6852 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.516, allocations: 57.64 kB / 0.6853 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5162, allocations: 326.8 kB / 0.6856 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.5163, allocations: 71.91 kB / 0.6857 GB, free: 1.988 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.5165, allocations: 110.3 kB / 0.6858 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.5169, allocations: 182.7 kB / 0.6859 GB, free: 1.684 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.5169, allocations: 4 kB / 0.686 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004713/0.5174, allocations: 254.3 kB / 0.6862 GB, free: 1.422 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.5174, allocations: 6.188 kB / 0.6862 GB, free: 1.418 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5174, allocations: 4 kB / 0.6862 GB, free: 1.414 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001668/0.5176, allocations: 48.83 kB / 0.6863 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.5179, allocations: 55.89 kB / 0.6863 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003982/0.5183, allocations: 0.5683 MB / 0.6869 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.5185, allocations: 8.031 kB / 0.6869 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.095e-05/0.5185, allocations: 20 kB / 0.6869 GB, free: 0.6875 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.0001129/0.5186, allocations: 129.8 kB / 0.687 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.584e-05/0.5187, allocations: 11.89 kB / 0.687 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000709/0.5194, allocations: 358.7 kB / 0.6874 GB, free: 192 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.5194, allocations: 4 kB / 0.6874 GB, free: 188 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5194, allocations: 0 / 0.6874 GB, free: 188 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5194, allocations: 3.984 kB / 0.6874 GB, free: 184 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009306/0.5204, allocations: 0.6178 MB / 0.688 GB, free: 15.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.5204, allocations: 4 kB / 0.688 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003497/0.5208, allocations: 59.95 kB / 0.688 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.385e-05/0.5208, allocations: 20.78 kB / 0.6881 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.5209, allocations: 15.98 kB / 0.6881 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009146/0.5218, allocations: 1.369 MB / 0.6894 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5218, allocations: 3.938 kB / 0.6894 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006724/0.5225, allocations: 430.8 kB / 0.6898 GB, free: 13.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.549e-05/0.5226, allocations: 89.03 kB / 0.6899 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.324e-05/0.5226, allocations: 4 kB / 0.6899 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.5228, allocations: 11.98 kB / 0.6899 GB, free: 13.31 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.947e-05/0.5229, allocations: 31.97 kB / 0.69 GB, free: 13.28 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.5229, allocations: 20 kB / 0.69 GB, free: 13.26 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.185e-05/0.523, allocations: 95.2 kB / 0.6901 GB, free: 13.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.523, allocations: 0 / 0.6901 GB, free: 13.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000418/0.5234, allocations: 79.94 kB / 0.6901 GB, free: 13.09 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.001264/0.5247, allocations: 1.012 MB / 0.6911 GB, free: 12.03 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005349/0.5253, allocations: 214.7 kB / 0.6913 GB, free: 11.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5253, allocations: 0 / 0.6913 GB, free: 11.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003658/0.5256, allocations: 219 kB / 0.6915 GB, free: 11.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004399/0.5261, allocations: 48.11 kB / 0.6916 GB, free: 11.55 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002682/0.5288, allocations: 2.082 MB / 0.6936 GB, free: 9.344 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.5291, allocations: 0.7046 MB / 0.6943 GB, free: 8.613 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002858/0.5294, allocations: 73.39 kB / 0.6944 GB, free: 8.543 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.5296, allocations: 67.41 kB / 0.6944 GB, free: 8.477 MB / 0.545 GB Notification: Performance of SimCode: time 5.61e-07/0.5296, allocations: 0 / 0.6944 GB, free: 8.477 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03137/0.561, allocations: 7.333 MB / 0.7016 GB, free: 1.246 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.91, allocations: 12.05 kB / 0.7016 GB, free: 1.234 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2_res.csv","/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