Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2Mix,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2Mix",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001095/0.001095, allocations: 198.3 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 226.5 MB / 243.4 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000802/0.000802, allocations: 100.9 kB / 295.5 MB, free: 6.715 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3216/0.3216, allocations: 44.83 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.00031, allocations: 4 kB / 465.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2773, allocations: 62.97 MB / 0.516 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2Mix): time 0.1238/0.4011, allocations: 135.7 MB / 0.6485 GB, free: 1.41 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.4029, allocations: 1.477 MB / 0.6499 GB, free: 15.93 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.422e-05/0.4029, allocations: 7.938 kB / 0.6499 GB, free: 15.92 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.4032, allocations: 47.78 kB / 0.65 GB, free: 15.88 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007323/0.4039, allocations: 350.5 kB / 0.6503 GB, free: 15.53 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003972/0.4043, allocations: 147.1 kB / 0.6505 GB, free: 15.39 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002494/0.4046, allocations: 211.2 kB / 0.6507 GB, free: 15.18 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.4047, allocations: 4 kB / 0.6507 GB, free: 15.18 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.4048, allocations: 79.69 kB / 0.6508 GB, free: 15.1 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.4049, allocations: 51.83 kB / 0.6508 GB, free: 15.05 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.4049, allocations: 4 kB / 0.6508 GB, free: 15.05 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.4061, allocations: 0.7016 MB / 0.6515 GB, free: 14.34 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 5.984e-05/0.4061, allocations: 39.88 kB / 0.6515 GB, free: 14.3 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 6.924e-05/0.4062, allocations: 69.5 kB / 0.6516 GB, free: 14.23 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003911/0.4066, allocations: 297.1 kB / 0.6519 GB, free: 13.94 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4066, allocations: 0 / 0.6519 GB, free: 13.94 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4066, allocations: 0 / 0.6519 GB, free: 13.94 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.029e-06/0.4067, allocations: 4 kB / 0.6519 GB, free: 13.94 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005031/0.4072, allocations: 403.5 kB / 0.6523 GB, free: 13.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.4072, allocations: 12.03 kB / 0.6523 GB, free: 13.48 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.17e-05/0.4073, allocations: 34.75 kB / 0.6523 GB, free: 13.44 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002044/0.4093, allocations: 192.6 kB / 0.6525 GB, free: 13.25 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.4095, allocations: 215.6 kB / 0.6527 GB, free: 13 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.4096, allocations: 11.94 kB / 0.6527 GB, free: 12.99 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.4096, allocations: 11.94 kB / 0.6527 GB, free: 12.98 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004412/0.4101, allocations: 197.5 kB / 0.6529 GB, free: 12.78 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.4101, allocations: 4 kB / 0.6529 GB, free: 12.78 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.4101, allocations: 7.938 kB / 0.6529 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.119e-06/0.4101, allocations: 0 / 0.6529 GB, free: 12.77 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005543/0.4107, allocations: 235.8 kB / 0.6531 GB, free: 12.54 MB / 474.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.001631/0.4123, allocations: 0.6713 MB / 0.6538 GB, free: 11.82 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004059/0.4128, allocations: 182.4 kB / 0.654 GB, free: 11.63 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002041/0.413, allocations: 96.81 kB / 0.6541 GB, free: 11.53 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001447/0.4131, allocations: 89.09 kB / 0.6542 GB, free: 11.43 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.4132, allocations: 34.56 kB / 0.6542 GB, free: 11.38 MB / 474.7 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.4132, allocations: 0 / 0.6542 GB, free: 11.38 MB / 474.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.005435/0.4186, allocations: 1.536 MB / 0.6557 GB, free: 9.73 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.92e-05/0.4187, allocations: 55.41 kB / 0.6557 GB, free: 9.664 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.75e-05/0.4188, allocations: 105.8 kB / 0.6558 GB, free: 9.551 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.4188, allocations: 33.7 kB / 0.6559 GB, free: 9.512 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.534e-05/0.4189, allocations: 100.3 kB / 0.656 GB, free: 9.41 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.87e-05/0.4189, allocations: 70.94 kB / 0.656 GB, free: 9.34 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.4189, allocations: 11.94 kB / 0.656 GB, free: 9.328 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.4191, allocations: 318.8 kB / 0.6564 GB, free: 9.008 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.4193, allocations: 87.95 kB / 0.6564 GB, free: 8.922 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.4195, allocations: 123.2 kB / 0.6566 GB, free: 8.789 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000443/0.42, allocations: 230.6 kB / 0.6568 GB, free: 8.555 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.42, allocations: 0 / 0.6568 GB, free: 8.555 MB / 474.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005881/0.4206, allocations: 282.2 kB / 0.657 GB, free: 8.27 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.4206, allocations: 4 kB / 0.657 GB, free: 8.266 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.4206, allocations: 7.984 kB / 0.6571 GB, free: 8.258 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001153/0.4207, allocations: 20.84 kB / 0.6571 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004372/0.4212, allocations: 59.91 kB / 0.6571 GB, free: 8.176 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003276/0.4215, allocations: 0.5368 MB / 0.6577 GB, free: 7.613 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.4218, allocations: 8 kB / 0.6577 GB, free: 7.605 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-05/0.4218, allocations: 15.92 kB / 0.6577 GB, free: 7.59 MB / 474.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.0001099/0.422, allocations: 121.8 kB / 0.6578 GB, free: 7.461 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.688e-05/0.422, allocations: 15.8 kB / 0.6578 GB, free: 7.445 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007488/0.4228, allocations: 325.3 kB / 0.6581 GB, free: 7.117 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.4228, allocations: 0 / 0.6581 GB, free: 7.117 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4228, allocations: 8 kB / 0.6581 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4228, allocations: 0 / 0.6581 GB, free: 7.109 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001044/0.4239, allocations: 0.6719 MB / 0.6588 GB, free: 6.367 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.4239, allocations: 0 / 0.6588 GB, free: 6.367 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004274/0.4243, allocations: 47.95 kB / 0.6588 GB, free: 6.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.001e-05/0.4244, allocations: 32.88 kB / 0.6589 GB, free: 6.285 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.4244, allocations: 0 / 0.6589 GB, free: 6.285 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007922/0.4252, allocations: 1.269 MB / 0.6601 GB, free: 4.883 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.149e-06/0.4253, allocations: 7.969 kB / 0.6601 GB, free: 4.875 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008038/0.4261, allocations: 438.8 kB / 0.6605 GB, free: 4.418 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.4261, allocations: 96.91 kB / 0.6606 GB, free: 4.305 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.869e-05/0.4262, allocations: 8 kB / 0.6606 GB, free: 4.297 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/0.4265, allocations: 11.92 kB / 0.6606 GB, free: 4.285 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.4265, allocations: 19.92 kB / 0.6607 GB, free: 4.266 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.4266, allocations: 11.98 kB / 0.6607 GB, free: 4.254 MB / 474.7 MB Notification: Performance of sorting global known variables: time 4.363e-05/0.4266, allocations: 91.33 kB / 0.6608 GB, free: 4.164 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4266, allocations: 0 / 0.6608 GB, free: 4.164 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004957/0.4271, allocations: 139.9 kB / 0.6609 GB, free: 4.027 MB / 474.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 (19): * Single equations (assignments): 18 * 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.001556/0.4287, allocations: 1.125 MB / 0.662 GB, free: 2.871 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.000551/0.4292, allocations: 236.8 kB / 0.6622 GB, free: 2.641 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4293, allocations: 0 / 0.6622 GB, free: 2.641 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003666/0.4296, allocations: 234.9 kB / 0.6624 GB, free: 2.398 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004222/0.4301, allocations: 45.16 kB / 0.6625 GB, free: 2.355 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.4319, allocations: 1.203 MB / 0.6637 GB, free: 1.078 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.4322, allocations: 0.7087 MB / 0.6643 GB, free: 348 kB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.4324, allocations: 47.36 kB / 0.6644 GB, free: 300 kB / 474.7 MB Notification: Performance of SimCode: time 4.01e-07/0.4324, allocations: 4 kB / 0.6644 GB, free: 296 kB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.411/3.843, allocations: 4.893 MB / 0.6692 GB, free: 11.39 MB / 490.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2Mix_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Media_TestOnly_IdealGasN2Mix.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestOnly/IdealGasN2Mix/IdealGasN2Mix.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestOnly.IdealGasN2Mix.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches