Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.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.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir",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.001642/0.001642, allocations: 111.7 kB / 17.78 MB, free: 5.281 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.001863/0.001863, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.361/1.361, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2043/0.2043, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 67.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.333, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir): time 0.174/0.507, allocations: 147.6 MB / 0.6626 GB, free: 8.016 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.008597/0.5156, allocations: 5.586 MB / 0.668 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.5168, allocations: 19.88 kB / 0.668 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001572/0.5184, allocations: 329.9 kB / 0.6683 GB, free: 2.066 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002652/0.5211, allocations: 0.8707 MB / 0.6692 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003185/0.5243, allocations: 1.028 MB / 0.6702 GB, free: 176 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002568/0.5269, allocations: 1.798 MB / 0.672 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009251/0.5279, allocations: 469.3 kB / 0.6724 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001842/0.5297, allocations: 0.763 MB / 0.6731 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00139/0.5312, allocations: 0.7086 MB / 0.6738 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002501/0.5314, allocations: 60 kB / 0.6739 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.5329, allocations: 0.5458 MB / 0.6744 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003926/0.5333, allocations: 259.3 kB / 0.6747 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0007079/0.534, allocations: 398.2 kB / 0.6751 GB, free: 11.18 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002085/0.5361, allocations: 1.144 MB / 0.6762 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.5361, allocations: 3.938 kB / 0.6762 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.964e-06/0.5362, allocations: 0 / 0.6762 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.291e-05/0.5362, allocations: 0 / 0.6762 GB, free: 10.03 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002701/0.5389, allocations: 1.078 MB / 0.6772 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.539, allocations: 12.03 kB / 0.6772 GB, free: 8.891 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001682/0.5391, allocations: 102.6 kB / 0.6773 GB, free: 8.781 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004216/0.5396, allocations: 88.47 kB / 0.6774 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.5406, allocations: 0.541 MB / 0.6779 GB, free: 8.113 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.5407, allocations: 101 kB / 0.678 GB, free: 8.004 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.5408, allocations: 56.09 kB / 0.6781 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.5422, allocations: 0.8072 MB / 0.6789 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.661e-05/0.5422, allocations: 7.938 kB / 0.6789 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.904e-05/0.5423, allocations: 23.98 kB / 0.6789 GB, free: 7.047 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.098e-05/0.5424, allocations: 40.98 kB / 0.679 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001144/0.5435, allocations: 0.6556 MB / 0.6796 GB, free: 6.348 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.004952/0.5485, allocations: 3.952 MB / 0.6835 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008683/0.5494, allocations: 436.2 kB / 0.6839 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.5498, allocations: 205.4 kB / 0.6841 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006656/0.5504, allocations: 0.7327 MB / 0.6848 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.558e-05/0.5505, allocations: 42.89 kB / 0.6848 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=40): time 3.056e-06/0.5505, allocations: 0 / 0.6848 GB, free: 0.5234 MB / 0.5294 GB Notification: Performance of matching and sorting (n=45): time 0.003443/0.5539, allocations: 1.562 MB / 0.6863 GB, free: 14.89 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.411e-05/0.554, allocations: 132.5 kB / 0.6865 GB, free: 14.73 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007496/0.5548, allocations: 0.5694 MB / 0.687 GB, free: 14.15 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.41e-05/0.5549, allocations: 37.7 kB / 0.6871 GB, free: 14.11 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002735/0.5552, allocations: 351.9 kB / 0.6874 GB, free: 13.76 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.5553, allocations: 174.5 kB / 0.6876 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.5555, allocations: 142.6 kB / 0.6877 GB, free: 13.44 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.5557, allocations: 374.8 kB / 0.6881 GB, free: 13.07 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/0.5561, allocations: 221.9 kB / 0.6883 GB, free: 12.85 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005876/0.5567, allocations: 0.5162 MB / 0.6888 GB, free: 12.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009983/0.5577, allocations: 0.7561 MB / 0.6895 GB, free: 11.31 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.5577, allocations: 7.938 kB / 0.6895 GB, free: 11.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001792/0.5595, allocations: 0.9144 MB / 0.6904 GB, free: 10.38 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.5595, allocations: 8 kB / 0.6904 GB, free: 10.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.107e-05/0.5596, allocations: 12.09 kB / 0.6904 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/0.561, allocations: 288.6 kB / 0.6907 GB, free: 10.07 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004407/0.5615, allocations: 119.8 kB / 0.6908 GB, free: 9.957 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.5626, allocations: 0.8941 MB / 0.6917 GB, free: 9.039 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005262/0.5632, allocations: 23.98 kB / 0.6917 GB, free: 9.016 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-05/0.5633, allocations: 36 kB / 0.6918 GB, free: 8.98 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (71): * Single equations (assignments): 70 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0003848/0.5637, allocations: 253.4 kB / 0.692 GB, free: 8.723 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.5638, allocations: 67.58 kB / 0.6921 GB, free: 8.656 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.5652, allocations: 0.7677 MB / 0.6928 GB, free: 7.863 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.5652, allocations: 8 kB / 0.6928 GB, free: 7.855 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.5653, allocations: 3.984 kB / 0.6928 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.5653, allocations: 3.938 kB / 0.6928 GB, free: 7.848 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.5675, allocations: 1.413 MB / 0.6942 GB, free: 6.34 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.5676, allocations: 4 kB / 0.6942 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.5686, allocations: 204 kB / 0.6944 GB, free: 6.137 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.5687, allocations: 20.84 kB / 0.6944 GB, free: 6.113 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.013e-05/0.5688, allocations: 19.98 kB / 0.6944 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00217/0.571, allocations: 2.877 MB / 0.6973 GB, free: 2.941 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.571, allocations: 0 / 0.6973 GB, free: 2.941 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001593/0.5726, allocations: 1.009 MB / 0.6982 GB, free: 1.871 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004158/0.5731, allocations: 208.6 kB / 0.6984 GB, free: 1.648 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001482/0.5732, allocations: 20 kB / 0.6985 GB, free: 1.629 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004653/0.5737, allocations: 20 kB / 0.6985 GB, free: 1.609 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.5738, allocations: 47.59 kB / 0.6985 GB, free: 1.562 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.823e-05/0.5739, allocations: 19.98 kB / 0.6985 GB, free: 1.543 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005577/0.5744, allocations: 431 kB / 0.699 GB, free: 1.121 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5745, allocations: 0 / 0.699 GB, free: 1.121 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008864/0.5753, allocations: 219.8 kB / 0.6992 GB, free: 0.9062 MB / 0.545 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 (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.002324/0.5777, allocations: 1.715 MB / 0.7008 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001366/0.5791, allocations: 0.6068 MB / 0.7014 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.5791, allocations: 0 / 0.7014 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.5802, allocations: 458.8 kB / 0.7019 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.5821, allocations: 376.8 kB / 0.7022 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.5928, allocations: 6.502 MB / 0.7086 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007114/0.5935, allocations: 0.9346 MB / 0.7095 GB, free: 5.852 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0008539/0.5944, allocations: 213.2 kB / 0.7097 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004279/0.5949, allocations: 235.4 kB / 0.7099 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of SimCode: time 1.062e-06/0.5949, allocations: 0 / 0.7099 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3061/0.901, allocations: 22.54 MB / 0.7319 GB, free: 182.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.76, allocations: 17.31 kB / 0.7319 GB, free: 182.2 MB / 0.5606 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_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_4_0_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_SimpleAir.fmu > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Air/SimpleAir/SimpleAir.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.SimpleAir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches