Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.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.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001105/0.001105, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001201/0.001201, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2157/0.2157, allocations: 46.09 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 77.03 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.118, allocations: 62.44 MB / 480.1 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.4132/0.5313, allocations: 177.3 MB / 0.642 GB, free: 1.816 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0088/0.5402, allocations: 5.331 MB / 0.6472 GB, free: 12.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.5416, allocations: 19.88 kB / 0.6473 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.5429, allocations: 314 kB / 0.6476 GB, free: 12.14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004679/0.5476, allocations: 1.258 MB / 0.6488 GB, free: 10.89 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003066/0.5507, allocations: 0.9675 MB / 0.6497 GB, free: 9.926 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002437/0.5531, allocations: 1.848 MB / 0.6515 GB, free: 8.074 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007288/0.5539, allocations: 459.3 kB / 0.652 GB, free: 7.621 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002292/0.5562, allocations: 1.082 MB / 0.653 GB, free: 6.535 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00098/0.5572, allocations: 0.6539 MB / 0.6537 GB, free: 5.879 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001432/0.5573, allocations: 60 kB / 0.6537 GB, free: 5.82 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.5588, allocations: 0.5852 MB / 0.6543 GB, free: 5.234 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000285/0.5591, allocations: 267.3 kB / 0.6545 GB, free: 4.973 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004398/0.5595, allocations: 394.2 kB / 0.6549 GB, free: 4.586 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001612/0.5611, allocations: 1.297 MB / 0.6562 GB, free: 3.285 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.5611, allocations: 0 / 0.6562 GB, free: 3.285 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.5611, allocations: 0 / 0.6562 GB, free: 3.285 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.5612, allocations: 0 / 0.6562 GB, free: 3.285 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002173/0.5633, allocations: 1.107 MB / 0.6573 GB, free: 2.125 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.5634, allocations: 8.031 kB / 0.6573 GB, free: 2.117 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001343/0.5635, allocations: 94.52 kB / 0.6574 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008173/0.5644, allocations: 139.1 kB / 0.6575 GB, free: 1.879 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007819/0.5651, allocations: 0.5079 MB / 0.658 GB, free: 1.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.5653, allocations: 100.4 kB / 0.6581 GB, free: 1.219 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.011e-05/0.5654, allocations: 55.98 kB / 0.6581 GB, free: 1.164 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001225/0.5666, allocations: 0.8126 MB / 0.6589 GB, free: 292 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.5666, allocations: 11.92 kB / 0.659 GB, free: 280 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.638e-05/0.5667, allocations: 24 kB / 0.659 GB, free: 256 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.318e-05/0.5668, allocations: 36.98 kB / 0.659 GB, free: 220 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.5678, allocations: 0.6243 MB / 0.6596 GB, free: 15.59 MB / 0.4981 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.004678/0.5725, allocations: 3.955 MB / 0.6635 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005846/0.5731, allocations: 362 kB / 0.6638 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002962/0.5734, allocations: 169.3 kB / 0.664 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001197/0.5735, allocations: 93.38 kB / 0.6641 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.5736, allocations: 38.84 kB / 0.6641 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=34): time 2.044e-06/0.5736, allocations: 0 / 0.6641 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=39): time 0.005653/0.5792, allocations: 1.661 MB / 0.6657 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.264e-05/0.5793, allocations: 140.5 kB / 0.6659 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007969/0.5801, allocations: 0.6133 MB / 0.6665 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.5802, allocations: 33.7 kB / 0.6665 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003053/0.5805, allocations: 374.8 kB / 0.6669 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.5807, allocations: 138 kB / 0.667 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000233/0.5809, allocations: 154.5 kB / 0.6671 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000198/0.5811, allocations: 374.8 kB / 0.6675 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.5815, allocations: 205.9 kB / 0.6677 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000617/0.5821, allocations: 0.5202 MB / 0.6682 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.5832, allocations: 0.7475 MB / 0.6689 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.886e-06/0.5832, allocations: 7.938 kB / 0.6689 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001564/0.5848, allocations: 0.8877 MB / 0.6698 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.5848, allocations: 8 kB / 0.6698 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.5849, allocations: 16.12 kB / 0.6698 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.5862, allocations: 304.5 kB / 0.6701 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003915/0.5866, allocations: 127.8 kB / 0.6702 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001192/0.5878, allocations: 0.9375 MB / 0.6712 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005137/0.5883, allocations: 28.88 kB / 0.6712 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.737e-05/0.5884, allocations: 63.98 kB / 0.6712 GB, free: 2.934 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003798/0.5888, allocations: 245.9 kB / 0.6715 GB, free: 2.684 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.589, allocations: 67.16 kB / 0.6715 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001796/0.5908, allocations: 0.8598 MB / 0.6724 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.5908, allocations: 8 kB / 0.6724 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/0.5908, allocations: 7.984 kB / 0.6724 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.5908, allocations: 3.984 kB / 0.6724 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.593, allocations: 1.465 MB / 0.6738 GB, free: 128 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.5931, allocations: 7.938 kB / 0.6738 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.5941, allocations: 203.8 kB / 0.674 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-05/0.5942, allocations: 24.78 kB / 0.6741 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.738e-05/0.5943, allocations: 19.98 kB / 0.6741 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002321/0.5966, allocations: 2.878 MB / 0.6769 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5966, allocations: 4.031 kB / 0.6769 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001298/0.5979, allocations: 0.8208 MB / 0.6777 GB, free: 11.85 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003267/0.5983, allocations: 180.3 kB / 0.6779 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001337/0.5984, allocations: 12 kB / 0.6779 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/0.5988, allocations: 16 kB / 0.6779 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001169/0.599, allocations: 51.95 kB / 0.6779 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.811e-05/0.5991, allocations: 43.97 kB / 0.678 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005846/0.5997, allocations: 435 kB / 0.6784 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5997, allocations: 0 / 0.6784 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000935/0.6006, allocations: 252 kB / 0.6786 GB, free: 10.87 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (volume.medium.p,volume.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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.002385/0.603, allocations: 1.568 MB / 0.6802 GB, free: 9.258 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001312/0.6043, allocations: 0.5943 MB / 0.6807 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/0.6044, allocations: 4 kB / 0.6808 GB, free: 8.66 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001033/0.6054, allocations: 426.2 kB / 0.6812 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.6072, allocations: 363.8 kB / 0.6815 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.6176, allocations: 6.557 MB / 0.6879 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008186/0.6185, allocations: 0.9222 MB / 0.6888 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001624/0.6201, allocations: 465.9 kB / 0.6893 GB, free: 15.53 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006184/0.6208, allocations: 295.3 kB / 0.6895 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of SimCode: time 1.292e-06/0.6208, allocations: 0 / 0.6895 GB, free: 15.25 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.249/0.8698, allocations: 24.14 MB / 0.7131 GB, free: 199.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/13.11, allocations: 5.406 kB / 0.7131 GB, free: 199.1 MB / 0.5294 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,volume.medium.T,volume.medium.p Variables in the result:time,volume.medium.T,volume.medium.p