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: translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2") translateModel(ModelicaTest.Media.TestOnly.IdealGasN2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001461/0.001461, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2526/0.2526, allocations: 46.1 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3877/0.3893, allocations: 62.43 MB / 0.5316 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.1797/0.569, allocations: 152.3 MB / 0.6803 GB, free: 8.883 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001629/0.5707, allocations: 1.059 MB / 0.6814 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.773e-05/0.5708, allocations: 3.938 kB / 0.6814 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.5711, allocations: 27.81 kB / 0.6814 GB, free: 7.789 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.000922/0.5721, allocations: 278.5 kB / 0.6817 GB, free: 7.516 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004383/0.5725, allocations: 118.6 kB / 0.6818 GB, free: 7.402 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0003012/0.5728, allocations: 175.3 kB / 0.6819 GB, free: 7.23 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.494e-05/0.5729, allocations: 11.92 kB / 0.682 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002526/0.5732, allocations: 99.62 kB / 0.682 GB, free: 7.121 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001282/0.5733, allocations: 59.7 kB / 0.6821 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.5733, allocations: 4 kB / 0.6821 GB, free: 7.059 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007555/0.5741, allocations: 275.7 kB / 0.6824 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.286e-05/0.5742, allocations: 15.98 kB / 0.6824 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.363e-05/0.5742, allocations: 47.78 kB / 0.6824 GB, free: 6.727 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0005571/0.5748, allocations: 281.1 kB / 0.6827 GB, free: 6.457 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.5748, allocations: 4 kB / 0.6827 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.004e-06/0.5748, allocations: 0 / 0.6827 GB, free: 6.453 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.163e-06/0.5748, allocations: 0 / 0.6827 GB, free: 6.453 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.0005855/0.5754, allocations: 411.2 kB / 0.6831 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.5755, allocations: 8.031 kB / 0.6831 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002327/0.5778, allocations: 196.5 kB / 0.6833 GB, free: 5.805 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.5782, allocations: 211.6 kB / 0.6835 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.5782, allocations: 11.95 kB / 0.6835 GB, free: 5.547 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.168e-05/0.5783, allocations: 12 kB / 0.6835 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005258/0.5788, allocations: 222.2 kB / 0.6837 GB, free: 5.305 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.5788, allocations: 3.984 kB / 0.6837 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.5789, allocations: 8 kB / 0.6837 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.5789, allocations: 0 / 0.6837 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.5793, allocations: 171.9 kB / 0.6839 GB, free: 5.125 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.001074/0.5804, allocations: 0.5793 MB / 0.6845 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003436/0.5808, allocations: 130.5 kB / 0.6846 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.5809, allocations: 80.77 kB / 0.6847 GB, free: 4.27 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.392e-05/0.581, allocations: 0 / 0.6847 GB, free: 4.27 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.581, allocations: 34.56 kB / 0.6847 GB, free: 4.227 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.581, allocations: 0 / 0.6847 GB, free: 4.227 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.005619/0.5866, allocations: 1.313 MB / 0.686 GB, free: 2.824 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.315e-05/0.5867, allocations: 59.34 kB / 0.686 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.904e-05/0.5868, allocations: 113.8 kB / 0.6861 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.192e-05/0.5868, allocations: 33.64 kB / 0.6862 GB, free: 2.594 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.5869, allocations: 99.88 kB / 0.6863 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 5.759e-05/0.587, allocations: 63.11 kB / 0.6863 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.5871, allocations: 57.59 kB / 0.6864 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.5872, allocations: 330.8 kB / 0.6867 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.5874, allocations: 63.97 kB / 0.6868 GB, free: 1.973 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.5876, allocations: 106.5 kB / 0.6869 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.5879, allocations: 187.3 kB / 0.687 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.5879, allocations: 0 / 0.687 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005025/0.5884, allocations: 257.8 kB / 0.6873 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.5885, allocations: 4 kB / 0.6873 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.5885, allocations: 0 / 0.6873 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001829/0.5887, allocations: 52.77 kB / 0.6873 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.589, allocations: 60.05 kB / 0.6874 GB, free: 1.289 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004528/0.5895, allocations: 0.5679 MB / 0.688 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001842/0.5897, allocations: 4.031 kB / 0.688 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.379e-05/0.5897, allocations: 24 kB / 0.688 GB, free: 0.668 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.0001307/0.5899, allocations: 125.9 kB / 0.6881 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.281e-05/0.5899, allocations: 11.91 kB / 0.6881 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007486/0.5907, allocations: 339 kB / 0.6884 GB, free: 192 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.5907, allocations: 4 kB / 0.6884 GB, free: 188 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5907, allocations: 0 / 0.6884 GB, free: 188 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5907, allocations: 3.984 kB / 0.6885 GB, free: 184 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.5918, allocations: 0.6257 MB / 0.6891 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.5918, allocations: 4 kB / 0.6891 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.5921, allocations: 59.89 kB / 0.6891 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.591e-05/0.5922, allocations: 24.83 kB / 0.6891 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.5922, allocations: 15.98 kB / 0.6892 GB, free: 15.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.5933, allocations: 1.361 MB / 0.6905 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.5933, allocations: 8.094 kB / 0.6905 GB, free: 13.87 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006992/0.594, allocations: 430.5 kB / 0.6909 GB, free: 13.42 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.687e-05/0.594, allocations: 85.05 kB / 0.691 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.596e-05/0.5941, allocations: 19.94 kB / 0.691 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.5943, allocations: 11.98 kB / 0.691 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.947e-05/0.5944, allocations: 23.97 kB / 0.691 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.852e-05/0.5944, allocations: 20 kB / 0.6911 GB, free: 13.25 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.947e-05/0.5945, allocations: 91.27 kB / 0.6911 GB, free: 13.16 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5945, allocations: 0 / 0.6911 GB, free: 13.16 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0004133/0.5949, allocations: 87.88 kB / 0.6912 GB, free: 13.07 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.0003911/0.5953, allocations: 151.1 kB / 0.6914 GB, free: 12.91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0005161/0.5959, allocations: 201 kB / 0.6916 GB, free: 12.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5959, allocations: 0 / 0.6916 GB, free: 12.71 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.5962, allocations: 226.5 kB / 0.6918 GB, free: 12.48 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.5967, allocations: 55.36 kB / 0.6918 GB, free: 12.43 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008996/0.5976, allocations: 0.4967 MB / 0.6923 GB, free: 11.89 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.5979, allocations: 0.7046 MB / 0.693 GB, free: 11.16 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/0.5982, allocations: 59.41 kB / 0.6931 GB, free: 11.1 MB / 0.545 GB Notification: Performance of SimCode: time 2.9e-07/0.5982, allocations: 0 / 0.6931 GB, free: 11.1 MB / 0.545 GB Notification: Performance of Templates: time 0.006917/0.6051, allocations: 3.883 MB / 0.6969 GB, free: 7.215 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Media.TestOnly.IdealGasN2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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