Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001981/0.001981, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.469/1.469, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2271/0.2271, allocations: 46.92 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002919/0.002919, allocations: 67.89 kB / 0.4909 GB, free: 7.934 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1541, allocations: 65.99 MB / 0.5554 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air): time 0.5305/0.6846, allocations: 177.9 MB / 0.7291 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.008475/0.6931, allocations: 5.346 MB / 0.7343 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007706/0.6939, allocations: 27.75 kB / 0.7343 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0009972/0.6949, allocations: 322 kB / 0.7346 GB, free: 9.742 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003612/0.6985, allocations: 1.278 MB / 0.7359 GB, free: 8.465 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002735/0.7012, allocations: 0.9516 MB / 0.7368 GB, free: 7.52 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002737/0.7039, allocations: 1.86 MB / 0.7386 GB, free: 5.652 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000747/0.7047, allocations: 413.4 kB / 0.739 GB, free: 5.246 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.7074, allocations: 1.098 MB / 0.7401 GB, free: 4.145 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001245/0.7086, allocations: 0.6969 MB / 0.7408 GB, free: 3.445 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001305/0.7087, allocations: 60 kB / 0.7408 GB, free: 3.387 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.7103, allocations: 0.632 MB / 0.7415 GB, free: 2.754 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003364/0.7107, allocations: 275.1 kB / 0.7417 GB, free: 2.484 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004969/0.7112, allocations: 398.2 kB / 0.7421 GB, free: 2.094 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002154/0.7133, allocations: 1.308 MB / 0.7434 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.7133, allocations: 0 / 0.7434 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.793e-06/0.7133, allocations: 0 / 0.7434 GB, free: 0.7812 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.7133, allocations: 4 kB / 0.7434 GB, free: 0.7773 MB / 0.545 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.002594/0.7159, allocations: 1.113 MB / 0.7445 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.716, allocations: 12.03 kB / 0.7445 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.7161, allocations: 98.45 kB / 0.7446 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008921/0.717, allocations: 147.3 kB / 0.7447 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009487/0.718, allocations: 0.5396 MB / 0.7452 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.7181, allocations: 96.41 kB / 0.7453 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001034/0.7182, allocations: 51.98 kB / 0.7454 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001382/0.7196, allocations: 0.8136 MB / 0.7462 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.7196, allocations: 3.938 kB / 0.7462 GB, free: 13.72 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.861e-05/0.7197, allocations: 20 kB / 0.7462 GB, free: 13.7 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.882e-05/0.7198, allocations: 40.98 kB / 0.7462 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.7209, allocations: 0.6243 MB / 0.7469 GB, free: 13.04 MB / 0.5606 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.005112/0.726, allocations: 3.937 MB / 0.7507 GB, free: 8.855 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006492/0.7266, allocations: 345.8 kB / 0.751 GB, free: 8.512 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.7269, allocations: 165.3 kB / 0.7512 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001298/0.7271, allocations: 89.38 kB / 0.7513 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.7271, allocations: 42.83 kB / 0.7513 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=34): time 2.244e-06/0.7271, allocations: 0 / 0.7513 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of matching and sorting (n=39): time 0.0064/0.7335, allocations: 1.676 MB / 0.7529 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.7336, allocations: 136.5 kB / 0.7531 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008813/0.7345, allocations: 0.6134 MB / 0.7537 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.464e-05/0.7346, allocations: 33.7 kB / 0.7537 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003248/0.7349, allocations: 383.8 kB / 0.7541 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.7351, allocations: 146.8 kB / 0.7542 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002553/0.7353, allocations: 158.6 kB / 0.7544 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002131/0.7355, allocations: 374.8 kB / 0.7547 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003994/0.7359, allocations: 201.9 kB / 0.7549 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007247/0.7366, allocations: 0.5163 MB / 0.7554 GB, free: 3.691 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.7379, allocations: 0.7438 MB / 0.7561 GB, free: 2.809 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.7379, allocations: 4 kB / 0.7561 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00173/0.7396, allocations: 0.8836 MB / 0.757 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.7396, allocations: 8 kB / 0.757 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.7397, allocations: 12.05 kB / 0.757 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.7411, allocations: 326.7 kB / 0.7573 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004051/0.7415, allocations: 123.8 kB / 0.7575 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001256/0.7428, allocations: 0.9359 MB / 0.7584 GB, free: 500 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005172/0.7433, allocations: 20.88 kB / 0.7584 GB, free: 480 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.7434, allocations: 71.98 kB / 0.7585 GB, free: 408 kB / 0.5606 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.0004519/0.7439, allocations: 250 kB / 0.7587 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.744, allocations: 71.58 kB / 0.7588 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.7458, allocations: 0.8611 MB / 0.7596 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.7458, allocations: 4 kB / 0.7596 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.002e-06/0.7458, allocations: 0 / 0.7596 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/0.7458, allocations: 7.969 kB / 0.7596 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.7481, allocations: 1.461 MB / 0.761 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.7481, allocations: 7.984 kB / 0.7611 GB, free: 13.58 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.7492, allocations: 203.8 kB / 0.7613 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.7493, allocations: 24.84 kB / 0.7613 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.201e-05/0.7493, allocations: 28.8 kB / 0.7613 GB, free: 13.33 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.7518, allocations: 2.872 MB / 0.7641 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.7518, allocations: 4.031 kB / 0.7641 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.7532, allocations: 0.823 MB / 0.7649 GB, free: 9.312 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003089/0.7535, allocations: 184.6 kB / 0.7651 GB, free: 9.113 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.283e-05/0.7536, allocations: 11.98 kB / 0.7651 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003857/0.754, allocations: 20 kB / 0.7651 GB, free: 9.082 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.7541, allocations: 43.95 kB / 0.7652 GB, free: 9.039 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.413e-05/0.7541, allocations: 43.98 kB / 0.7652 GB, free: 8.996 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006021/0.7547, allocations: 439 kB / 0.7656 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.7547, allocations: 0 / 0.7656 GB, free: 8.574 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001007/0.7558, allocations: 259.7 kB / 0.7659 GB, free: 8.32 MB / 0.5762 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.002381/0.7581, allocations: 1.557 MB / 0.7674 GB, free: 6.719 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001285/0.7594, allocations: 0.5376 MB / 0.7679 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.7594, allocations: 4 kB / 0.7679 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.7605, allocations: 408.1 kB / 0.7683 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/0.7622, allocations: 366.2 kB / 0.7687 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009407/0.7716, allocations: 6.312 MB / 0.7748 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006227/0.7722, allocations: 0.9415 MB / 0.7757 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001116/0.7734, allocations: 458.4 kB / 0.7762 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005302/0.7739, allocations: 287.2 kB / 0.7765 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of SimCode: time 9.62e-07/0.7739, allocations: 4 kB / 0.7765 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06367/0.8376, allocations: 24.47 MB / 0.8004 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/14.16, allocations: 11.09 kB / 0.8004 GB, free: 4.785 MB / 0.6075 GB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_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.000201919 ModelicaTest_4_1_0_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_Air.fmu > ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/Air/Air.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv. Warning: Get data of variable Time from file ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.Air_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.390042781000375]