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.001113/0.001113, allocations: 107 kB / 17.33 MB, free: 6 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.001153/0.001153, allocations: 193.3 kB / 18.25 MB, free: 5.09 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.37/1.37, allocations: 222.9 MB / 241.9 MB, free: 15.43 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.2256/0.2256, allocations: 44.18 MB / 336.2 MB, free: 2.945 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.28 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.144, allocations: 60.83 MB / 468.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.5505/0.6945, allocations: 147.3 MB / 0.6016 GB, free: 13.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.6958, allocations: 0.9688 MB / 0.6026 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.405e-05/0.6959, allocations: 1.969 kB / 0.6026 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.6962, allocations: 35.8 kB / 0.6026 GB, free: 12.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006037/0.6968, allocations: 216.2 kB / 0.6028 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004366/0.6973, allocations: 109.1 kB / 0.6029 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.6976, allocations: 167.3 kB / 0.6031 GB, free: 12.26 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.572e-05/0.6977, allocations: 6.25 kB / 0.6031 GB, free: 12.25 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.6979, allocations: 91.62 kB / 0.6032 GB, free: 12.16 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.698, allocations: 59.77 kB / 0.6033 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.6981, allocations: 4 kB / 0.6033 GB, free: 12.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005142/0.6986, allocations: 271.7 kB / 0.6035 GB, free: 11.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.89e-05/0.6987, allocations: 27.91 kB / 0.6035 GB, free: 11.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.6987, allocations: 39.86 kB / 0.6036 GB, free: 11.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004595/0.6992, allocations: 283.3 kB / 0.6038 GB, free: 11.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.6992, allocations: 0 / 0.6038 GB, free: 11.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6992, allocations: 0 / 0.6038 GB, free: 11.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.6993, allocations: 0 / 0.6038 GB, free: 11.49 MB / 446.1 MB 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.0006501/0.6999, allocations: 416 kB / 0.6042 GB, free: 11.04 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.7, allocations: 8.031 kB / 0.6043 GB, free: 11.03 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.228e-05/0.7, allocations: 42.73 kB / 0.6043 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002077/0.7021, allocations: 184.6 kB / 0.6045 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002348/0.7024, allocations: 203.8 kB / 0.6047 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.7024, allocations: 9.781 kB / 0.6047 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.7025, allocations: 12 kB / 0.6047 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.703, allocations: 220 kB / 0.6049 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.703, allocations: 3.984 kB / 0.6049 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.754e-05/0.703, allocations: 8 kB / 0.6049 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.703, allocations: 0 / 0.6049 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.7035, allocations: 171.8 kB / 0.6051 GB, free: 10.13 MB / 446.1 MB 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.001057/0.7045, allocations: 0.5796 MB / 0.6056 GB, free: 9.496 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003282/0.7049, allocations: 138.5 kB / 0.6058 GB, free: 9.352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.705, allocations: 76.77 kB / 0.6058 GB, free: 9.273 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.7051, allocations: 4 kB / 0.6058 GB, free: 9.27 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.7051, allocations: 30.56 kB / 0.6059 GB, free: 9.23 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 2.695e-06/0.7051, allocations: 0 / 0.6059 GB, free: 9.23 MB / 446.1 MB 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.005455/0.7106, allocations: 1.3 MB / 0.6071 GB, free: 7.844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.7106, allocations: 59.39 kB / 0.6072 GB, free: 7.773 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.7107, allocations: 113.8 kB / 0.6073 GB, free: 7.652 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.7108, allocations: 25.7 kB / 0.6073 GB, free: 7.621 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.184e-05/0.7109, allocations: 91.95 kB / 0.6074 GB, free: 7.527 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/0.7109, allocations: 75.02 kB / 0.6075 GB, free: 7.453 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.911e-05/0.711, allocations: 53.7 kB / 0.6075 GB, free: 7.395 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.7112, allocations: 322.8 kB / 0.6079 GB, free: 7.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/0.7113, allocations: 67.95 kB / 0.6079 GB, free: 7.004 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.7115, allocations: 116.8 kB / 0.608 GB, free: 6.883 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003275/0.7119, allocations: 186.3 kB / 0.6082 GB, free: 6.691 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.7119, allocations: 0 / 0.6082 GB, free: 6.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004926/0.7124, allocations: 258.1 kB / 0.6085 GB, free: 6.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.7124, allocations: 8 kB / 0.6085 GB, free: 6.422 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.7124, allocations: 96 / 0.6085 GB, free: 6.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.7126, allocations: 60.81 kB / 0.6085 GB, free: 6.359 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003231/0.7129, allocations: 47.97 kB / 0.6086 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004407/0.7134, allocations: 0.5643 MB / 0.6091 GB, free: 5.723 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.7136, allocations: 8.031 kB / 0.6091 GB, free: 5.715 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.7136, allocations: 36.08 kB / 0.6092 GB, free: 5.68 MB / 446.1 MB 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.0001302/0.7138, allocations: 123.8 kB / 0.6093 GB, free: 5.551 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.967e-05/0.7138, allocations: 7.906 kB / 0.6093 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008218/0.7147, allocations: 343.1 kB / 0.6096 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.7147, allocations: 0 / 0.6096 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.7147, allocations: 4 kB / 0.6096 GB, free: 5.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.7147, allocations: 4 kB / 0.6096 GB, free: 5.188 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009847/0.7157, allocations: 0.6238 MB / 0.6102 GB, free: 4.496 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.7157, allocations: 0 / 0.6102 GB, free: 4.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003534/0.7161, allocations: 59.89 kB / 0.6103 GB, free: 4.438 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-05/0.7161, allocations: 28.94 kB / 0.6103 GB, free: 4.406 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.7162, allocations: 18.56 kB / 0.6103 GB, free: 4.391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009593/0.7172, allocations: 1.363 MB / 0.6117 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7172, allocations: 0 / 0.6117 GB, free: 2.887 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006756/0.7178, allocations: 445.4 kB / 0.6121 GB, free: 2.426 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/0.7179, allocations: 89 kB / 0.6122 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/0.718, allocations: 4 kB / 0.6122 GB, free: 2.316 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.7182, allocations: 8 kB / 0.6122 GB, free: 2.309 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.7183, allocations: 19.97 kB / 0.6122 GB, free: 2.289 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.224e-05/0.7183, allocations: 36.05 kB / 0.6122 GB, free: 2.254 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.033e-05/0.7184, allocations: 87.28 kB / 0.6123 GB, free: 2.168 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7184, allocations: 0 / 0.6123 GB, free: 2.168 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004105/0.7188, allocations: 79.92 kB / 0.6124 GB, free: 2.09 MB / 446.1 MB 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.001272/0.7201, allocations: 1.023 MB / 0.6134 GB, free: 1.031 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005396/0.7206, allocations: 207.7 kB / 0.6136 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.7206, allocations: 4 kB / 0.6136 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003507/0.721, allocations: 219 kB / 0.6138 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/0.7215, allocations: 43.02 kB / 0.6138 GB, free: 0.5586 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.7242, allocations: 2.107 MB / 0.6159 GB, free: 14.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.7245, allocations: 0.7084 MB / 0.6166 GB, free: 13.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004336/0.725, allocations: 85.33 kB / 0.6167 GB, free: 13.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002315/0.7252, allocations: 67.39 kB / 0.6167 GB, free: 13.45 MB / 462.1 MB Notification: Performance of SimCode: time 7.21e-07/0.7252, allocations: 0 / 0.6167 GB, free: 13.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.7485, allocations: 7.146 MB / 0.6237 GB, free: 6.445 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.7488, allocations: 227 kB / 0.6239 GB, free: 6.191 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.982/2.731, allocations: 3.938 kB / 0.6239 GB, free: 6.188 MB / 462.1 MB (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