Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, allocations: 173.5 kB / 16.72 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.278/1.278, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000719/0.0007196, allocations: 91.84 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2855/0.2855, allocations: 43.57 MB / 363.1 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003449, allocations: 12 kB / 432.1 MB, free: 5.484 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09735/0.09771, allocations: 58.84 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.2926/0.3904, allocations: 136.6 MB / 0.6128 GB, free: 14.07 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.3916, allocations: 0.9062 MB / 0.6137 GB, free: 13.17 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.042e-05/0.3917, allocations: 0 / 0.6137 GB, free: 13.17 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002121/0.3919, allocations: 31.81 kB / 0.6137 GB, free: 13.14 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005721/0.3925, allocations: 199.1 kB / 0.6139 GB, free: 12.95 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00032/0.3928, allocations: 96.39 kB / 0.614 GB, free: 12.86 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002425/0.3931, allocations: 183.2 kB / 0.6142 GB, free: 12.68 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.271e-05/0.3931, allocations: 6.922 kB / 0.6142 GB, free: 12.67 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.3933, allocations: 83.69 kB / 0.6143 GB, free: 12.59 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.3934, allocations: 54.36 kB / 0.6143 GB, free: 12.54 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.3935, allocations: 0 / 0.6143 GB, free: 12.54 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005185/0.394, allocations: 275.6 kB / 0.6146 GB, free: 12.27 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 5.265e-05/0.394, allocations: 11.98 kB / 0.6146 GB, free: 12.26 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 7.799e-05/0.3941, allocations: 77.48 kB / 0.6147 GB, free: 12.18 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.3944, allocations: 201.5 kB / 0.6149 GB, free: 11.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3945, allocations: 0 / 0.6149 GB, free: 11.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3945, allocations: 0 / 0.6149 GB, free: 11.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.3945, allocations: 4 kB / 0.6149 GB, free: 11.98 MB / 442.7 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.0004202/0.3949, allocations: 383.1 kB / 0.6152 GB, free: 11.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.3949, allocations: 12.03 kB / 0.6152 GB, free: 11.55 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.067e-05/0.395, allocations: 42.73 kB / 0.6153 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0019/0.3969, allocations: 183.3 kB / 0.6154 GB, free: 11.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002069/0.3971, allocations: 212.2 kB / 0.6156 GB, free: 11.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.3971, allocations: 11.94 kB / 0.6157 GB, free: 11.06 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.3972, allocations: 12 kB / 0.6157 GB, free: 11.05 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.3976, allocations: 217.1 kB / 0.6159 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3977, allocations: 0 / 0.6159 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.3977, allocations: 4 kB / 0.6159 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3977, allocations: 4 kB / 0.6159 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004044/0.3981, allocations: 171.8 kB / 0.6161 GB, free: 10.65 MB / 442.7 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.0009364/0.3991, allocations: 0.5698 MB / 0.6166 GB, free: 10.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.3994, allocations: 150.4 kB / 0.6168 GB, free: 9.867 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.3995, allocations: 64.83 kB / 0.6168 GB, free: 9.801 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.3996, allocations: 10.31 kB / 0.6168 GB, free: 9.793 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.3996, allocations: 38.55 kB / 0.6169 GB, free: 9.746 MB / 442.7 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.3996, allocations: 0 / 0.6169 GB, free: 9.746 MB / 442.7 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.00493/0.4045, allocations: 1.307 MB / 0.6181 GB, free: 8.355 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.4046, allocations: 51.41 kB / 0.6182 GB, free: 8.293 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.149e-05/0.4047, allocations: 114.6 kB / 0.6183 GB, free: 8.172 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.4047, allocations: 29.7 kB / 0.6183 GB, free: 8.137 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.125e-05/0.4048, allocations: 91.98 kB / 0.6184 GB, free: 8.043 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.567e-05/0.4048, allocations: 74.98 kB / 0.6185 GB, free: 7.969 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.193e-05/0.4049, allocations: 8 kB / 0.6185 GB, free: 7.961 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.085e-05/0.4049, allocations: 318.8 kB / 0.6188 GB, free: 7.641 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.4051, allocations: 63.97 kB / 0.6189 GB, free: 7.578 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.4053, allocations: 107.3 kB / 0.619 GB, free: 7.461 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.4056, allocations: 179.3 kB / 0.6191 GB, free: 7.273 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.4056, allocations: 0 / 0.6191 GB, free: 7.273 MB / 442.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004647/0.4061, allocations: 265.9 kB / 0.6194 GB, free: 7.008 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.4061, allocations: 4 kB / 0.6194 GB, free: 7.004 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.4061, allocations: 0 / 0.6194 GB, free: 7.004 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.4063, allocations: 53.8 kB / 0.6194 GB, free: 6.949 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003012/0.4066, allocations: 59.89 kB / 0.6195 GB, free: 6.891 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004074/0.407, allocations: 0.5641 MB / 0.62 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.4072, allocations: 8 kB / 0.6201 GB, free: 6.293 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.4072, allocations: 23.94 kB / 0.6201 GB, free: 6.27 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001154/0.4074, allocations: 133.8 kB / 0.6202 GB, free: 6.129 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.289e-05/0.4074, allocations: 11.91 kB / 0.6202 GB, free: 6.117 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008085/0.4082, allocations: 345.5 kB / 0.6205 GB, free: 5.773 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.4082, allocations: 7.938 kB / 0.6206 GB, free: 5.766 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4082, allocations: 0 / 0.6206 GB, free: 5.766 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4083, allocations: 0 / 0.6206 GB, free: 5.766 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009037/0.4092, allocations: 0.6331 MB / 0.6212 GB, free: 5.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.4092, allocations: 0 / 0.6212 GB, free: 5.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003168/0.4095, allocations: 55.95 kB / 0.6212 GB, free: 5.016 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.26e-05/0.4096, allocations: 28.94 kB / 0.6212 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.4096, allocations: 11.98 kB / 0.6213 GB, free: 4.973 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007791/0.4104, allocations: 1.269 MB / 0.6225 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.4104, allocations: 3.938 kB / 0.6225 GB, free: 3.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006202/0.411, allocations: 422.6 kB / 0.6229 GB, free: 3.129 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.4111, allocations: 89.2 kB / 0.623 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.954e-05/0.4111, allocations: 7.938 kB / 0.623 GB, free: 3.016 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.4114, allocations: 7.906 kB / 0.623 GB, free: 3.008 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.032e-05/0.4114, allocations: 31.91 kB / 0.623 GB, free: 2.977 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.794e-05/0.4115, allocations: 23.98 kB / 0.6231 GB, free: 2.953 MB / 442.7 MB Notification: Performance of sorting global known variables: time 5.784e-05/0.4115, allocations: 95.25 kB / 0.6232 GB, free: 2.859 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4115, allocations: 0 / 0.6232 GB, free: 2.859 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003769/0.4119, allocations: 80 kB / 0.6232 GB, free: 2.781 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.413, allocations: 1.009 MB / 0.6242 GB, free: 1.738 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004485/0.4135, allocations: 207.7 kB / 0.6244 GB, free: 1.539 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4135, allocations: 4 kB / 0.6244 GB, free: 1.535 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.4138, allocations: 222.5 kB / 0.6246 GB, free: 1.305 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.4143, allocations: 54.89 kB / 0.6247 GB, free: 1.254 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.4159, allocations: 1.122 MB / 0.6258 GB, free: 72 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.4161, allocations: 0.7049 MB / 0.6265 GB, free: 15.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.4164, allocations: 79.34 kB / 0.6265 GB, free: 15.27 MB / 458.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4164, allocations: 0 / 0.6265 GB, free: 15.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.188/3.605, allocations: 3.689 MB / 0.6301 GB, free: 11.58 MB / 458.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestOnly/IdealGasN2/IdealGasN2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestOnly.IdealGasN2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches